Commit Graph

61 Commits

Author SHA1 Message Date
Michael Stenta ad4725c12f Change all relevant links from farmOS.org to v1.farmOS.org. 2021-12-21 19:18:39 -05:00
Michael Stenta ac67a1f239 Add a count to sensor summary info. 2020-08-27 08:01:43 -04:00
Michael Stenta f0bc6a8e6f Limit the maximum number of data points to 100k via API. 2020-08-27 08:01:43 -04:00
Michael Stenta d6e7a3deb4 Use isset() for all param and arg checks. 2020-08-27 08:01:43 -04:00
paul121 fcf006adf2 Use is_null to check if a limit query parameter is set. 2020-08-27 08:01:43 -04:00
paul121 f810938f08 Include hours minutes and seconds in date range so timestamps are not truncated to 12am each day. 2020-08-27 08:01:43 -04:00
paul121 cb57c29a93 Only display the graph fieldset if the sensor has data. 2020-08-27 08:01:43 -04:00
Michael Stenta 4a2eee85ec Show value summary if /summary is included at the end of the URL, instead of a ?summary=1 GET parameter. 2020-08-27 08:01:43 -04:00
Michael Stenta c6790e6886 Remove farm/sensor/listener/values/% menu item and page callback. 2020-08-27 08:01:43 -04:00
Michael Stenta 59301f948f If "summary" GET parameter is set, return sensor value summary information instead of values. 2020-08-27 08:01:43 -04:00
Michael Stenta 0f0cd5f023 Rename farm_sensor_listener_values() to farm_sensor_listener_values_info(). 2020-08-27 08:01:43 -04:00
Michael Stenta 34679aa475 Add missing return value and improve docblock. 2020-08-27 08:01:43 -04:00
Michael Stenta 8656d1a5d5 Only check if $limit is empty, not $offset. 2020-08-27 08:01:43 -04:00
paul121 0241b06c40 Add farm/sensor/listener/values page returning sensor value info. 2020-08-27 08:01:43 -04:00
paul121 a2e32c8638 Only capitalize first word in Sensor Graphs. 2020-08-27 08:01:43 -04:00
paul121 edeb7a53e0 Remove bootstrap styles from warning message. 2020-08-27 08:01:43 -04:00
paul121 72f15d3541 Display the most recent week of data by default. 2020-08-27 08:01:43 -04:00
paul121 2dcc0e861f Create farm_sensor_listener_values helper function. 2020-08-27 08:01:43 -04:00
paul121 378c27e062 Display message in place of graph is there is no data to display. 2020-08-27 08:01:43 -04:00
paul121 b5f996b53d Display graphs of sensor data in a form with options for filtering data. 2020-08-27 08:01:43 -04:00
paul121 6d66bb62dd Allow querying sensor data with no limit.
The query range() method does not support passing NULL. When NULL is
passed for both parameters the query is built with LIMIT 0 OFFSET 0.
When range() is called with no parameters, no LIMIT or OFFSET is set.

https://www.drupal.org/project/drupal/issues/1943754
https://api.drupal.org/comment/49938#comment-49938
2020-08-27 08:01:43 -04:00
paul121 18b56e700d Make plotly graphs responsive to page size. 2020-07-30 14:48:38 -04:00
paul121 233af6d2c7 Implement hook_farm_sensor_view instead of hook_entity_view_alter. 2020-07-27 10:56:45 -04:00
Michael Stenta 00b753a45b Move translatables code block in farm_sensor_data Views definition. 2020-04-23 14:59:43 -04:00
Michael Stenta 2e12d76553 Issue #3129409: Use click sorting instead of exposed sort in Views 2020-04-23 14:59:43 -04:00
Michael Stenta 327894095f Escape special characters in entity_label() usages. 2020-04-23 11:29:19 -04:00
Michael Stenta 9c392b93e8 Convert sensor data denominator to a signed int because PostgreSQL does not support unsigned. #213 2020-04-09 10:59:59 -04:00
Michael Stenta 65b58591da Display all results in sensor data CSV export. 2019-04-23 17:48:33 -04:00
Michael Stenta b8489b3ac0 Do not allow null timestamp values in sensor data table. 2019-01-26 11:20:24 -05:00
Michael Stenta c661954e36 Move timezone offset calculation out of for loop. 2018-11-10 09:55:24 -05:00
Michael Stenta cec49722b0 Remove console.log. 2018-11-10 09:51:36 -05:00
Michael Stenta 174286b876 Apply timezone offset to graphed sensor data. 2018-11-10 09:50:02 -05:00
Michael Stenta f45252d5b9 Fix missing closing parenthesis (follow up to Issue #2950499: CSV export of sensor data) 2018-11-08 09:44:57 -05:00
Michael Stenta 327603e9b0 Add contextual argument validation to sensor data view and override title. 2018-11-08 09:29:36 -05:00
Michael Stenta 2ca0485624 Issue #2950499: CSV export of sensor data 2018-11-08 09:29:20 -05:00
Michael Stenta 0115db0586 Issue #3011770: Add a setting that allows sensor data to be made public 2018-11-07 15:33:41 -05:00
Michael Stenta c522dd6485 Issue #2493511: Graph sensor data 2018-11-07 15:33:35 -05:00
Michael Stenta 3e10078bb0 Link to farmOS.org sensor documentation. 2018-11-07 15:33:02 -05:00
Michael Stenta 05d3a82383 Update listener callback docblock. 2018-11-07 15:33:02 -05:00
Michael Stenta 04f6d03d34 Access-Control-Allow-Origin' header to allow pulling this data into other domains. 2018-11-07 15:33:02 -05:00
Michael Stenta 591d07b09b Add start and end timestamp parameters. 2018-11-07 15:33:02 -05:00
Michael Stenta b10267e6f7 Add limit and offset parameters. 2018-11-03 12:41:41 -04:00
Michael Stenta 1b7c5fb635 Allow filtering by value name via query parameter. 2018-11-03 12:28:11 -04:00
Michael Stenta 9ae5bb5f6b Simplify sensor data query - only pull a single latest value. 2018-11-03 12:22:48 -04:00
Michael Stenta 13b43bd9e6 Explicitly check the request type in listener callback. 2018-11-03 12:05:00 -04:00
Michael Stenta 410e387bdc Move logic for loading sensor data to helper function. 2018-11-03 11:43:49 -04:00
Michael Stenta e1adae3dda Issue #2907879: Add row counter to asset/log lists 2018-04-16 13:48:41 -04:00
Michael Stenta 1a3ca112f6 Add exposed "Items per page" option to all Views. 2018-04-16 13:46:53 -04:00
drupalgin 0e5a226627 Issue #2950316 by drupalgin: Fixed coding standards 2018-04-07 12:40:16 -04:00
Michael Stenta 8b94441182 Disable AJAX in sensor data View. 2017-10-16 08:36:14 -04:00