Commit Graph

112 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
Michael Stenta 87d9a97c84 Increase the character limit of Notes and Description fields in Views to 280. 2020-08-21 11:00:56 -04:00
paul121 b80cc84104 Change column label from "Sensor Type" to "Sensor type" for consistency. 2020-08-11 09:02:05 -04:00
paul121 c31750031b Move Sensor type filter so it appears after Name and before Location.
Also remove the remember_roles property from the default view code.
2020-08-11 09:02:05 -04:00
paul121 2d52458c64 Remove remember_roles property. 2020-08-11 09:02:05 -04:00
paul121 fa4342d096 Make sensor type click sortable. 2020-08-11 09:02:05 -04:00
paul121 a36ffec752 Add sensor type to sensor asset view and expose sensor type as a filter. 2020-08-11 09:02:05 -04:00
paul121 18b56e700d Make plotly graphs responsive to page size. 2020-07-30 14:48:38 -04:00
paul121 1addc94cae Add sensor_type and sensor_settings fields to sensor asset properties. 2020-07-27 10:58:52 -04:00
paul121 233af6d2c7 Implement hook_farm_sensor_view instead of hook_entity_view_alter. 2020-07-27 10:56:45 -04:00
paul121 338f103444 Recursive merge the build arrays to avoid overriding the views index.
Because farm_sensor_listener_farm_sensor_view returns a build array with
the 'views' index set, this causes other views already in the build
array to be overwritten.
2020-07-27 10:44:14 -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 aae298097e Issue #3049153: Duplicate assets when filtering by multiple groups or location 2020-04-20 15:17:40 -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 66c926f37b Fix sensor Views Features export. 2019-04-09 14:38:55 -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