Commit Graph

109 Commits

Author SHA1 Message Date
Jason Kulatunga 0a9d364aea adding duration key to smart attributes api endpoint 2022-04-29 15:26:15 -07:00
Jason Kulatunga f60636a6aa broke scrutiny_repository.go into multiple files for easier exploration & maintenance. 2022-04-28 22:33:09 -07:00
Jason Kulatunga 7a7771981a broke scrutiny_repository.go into multiple files for easier exploration & maintenance. 2022-04-28 22:29:09 -07:00
Jason Kulatunga f569ab6474 [BROKEN COMMIT]
This code leverages the new `types.isType` functionality introduced in the flux language (https://github.com/influxdata/flux/issues/2159)

This code will fix https://github.com/AnalogJ/scrutiny/issues/22 and all related issues.

Unfortunately this code is broken because the influxdb go client library does not correctly handle import statments in the task defintion.

blocked by
https://github.com/influxdata/influxdb-client-go/issues/322
2022-04-27 22:41:56 -07:00
Jason Kulatunga 903d5713fc fixes for tests. 2021-11-21 14:39:39 -08:00
Jason Kulatunga 0872da57d7 fixes for tests. 2021-11-17 21:08:56 -08:00
Jason Kulatunga 47e8595c9d using constant vars for duration key magic strings. Fixing Errorf calls to correctly have template data. 2021-11-17 20:50:18 -08:00
Jason Kulatunga bff83de3a0 query temp data across multiple buckets 2021-11-17 18:35:50 -08:00
Jason Kulatunga 03bfdd3890 changing the duration dropdown for temp history data. adding an /api/summary/temp endpoint 2021-11-16 20:39:09 -08:00
Jason Kulatunga 772063a843 find the temp history for the last week (by default). Smooth out data using aggregate window for hourly numbers. Better temp casting during influx data inflating. 2021-11-16 19:07:37 -08:00
Jason Kulatunga b776fb8886 tweaking retention policy code so we can test downsampling scripts. 2021-11-16 18:32:29 -08:00
Jason Kulatunga ce032c5609 fixes for Scrutiny end-to-end testing. 2021-10-28 07:35:25 -07:00
Jason Kulatunga 7b7b4fe4e3 fixing test. 2021-10-24 19:30:29 -07:00
Jason Kulatunga 5789c836db make sure the status is always exposed in the json data. make sure display_name for metadata is included. Update mocked test data for frontend. 2021-10-24 17:09:44 -07:00
Jason Kulatunga deba21fe19 update timestamps for testing. 2021-10-24 16:26:41 -07:00
Jason Kulatunga 31b5dfa038 ensure that all buckets are created during init. Remove all references to "name" field for attributes (shoudl come from metadata instead). Status is now an int64 (0 is passing). 2021-10-24 16:01:53 -07:00
Jason Kulatunga 9878985fa3 adding aggregation code 2021-10-24 13:07:12 -07:00
Jason Kulatunga 975c034925 WIP downsample scripts. 2021-10-23 10:35:32 -07:00
Jason Kulatunga a60edfff26 fixing mocked data 2021-08-01 10:42:38 -07:00
Jason Kulatunga bd19230cbf make sure data is persisted to DB. 2021-07-25 22:32:13 -07:00
Jason Kulatunga 80f4660130 validate thresholds whenever SMART data is recieved. 2021-07-25 22:11:07 -07:00
Jason Kulatunga 694fc74ca0 fixing history. 2021-06-27 13:44:01 -07:00
Jason Kulatunga 8a46931399 !!!!WIP!!!!
adding InfluxDB

- influxdb added to dockerfile
- influxdb s6 service
- influxdb config
- adding defaults to config
- creating a DeviceRepo interface (multiple db backends)
- implemented DeviceRepo interface as ScruitnyRepository
2021-06-27 10:55:18 -07:00
Jason Kulatunga fd4f0429e4 (0.3.12) Automated packaging of release by Packagr
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
2021-04-26 17:13:21 +00:00
Jason Kulatunga 9be57f2271 (0.3.11) Automated packaging of release by Packagr
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
2021-04-26 06:33:28 +00:00
Jason Kulatunga 712119cb5e fixing ui when visible on small screen.
tweak local contrib instructions.
Fixing javascript mediaquery breakpoint for small screen.
2021-04-25 23:22:29 -07:00
Jason Kulatunga 644a9418dd (0.3.10) Automated packaging of release by Packagr
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
2021-04-26 05:22:22 +00:00
Jason Kulatunga df07261c57 (0.3.9) Automated packaging of release by Packagr
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
2021-04-26 04:59:43 +00:00
Jason Kulatunga 527214f38c (0.3.8) Automated packaging of release by Packagr
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
2021-04-26 03:58:09 +00:00
Jason Kulatunga 2fc24d0e76 fix error log. 2021-04-25 20:14:58 -07:00
Jason Kulatunga d92a21fbca Merge pull request #132 from telyn/patch-1
Change temperature graph to 24-hour formatting
2021-04-25 11:44:47 -07:00
Jason Kulatunga 4331f86ed4 fixing #164 telegram notification issue while I'm here.
TODO: do a full check of all notification params in shoutrrr and ensure they match what we use.
2021-04-25 11:38:17 -07:00
Jason Kulatunga 59d4a8e195 (0.3.7) Automated packaging of release by Packagr
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
2021-04-25 17:15:07 +00:00
Jason Kulatunga 79de0fed2b upgrade shoutrrr version. Fix duplicate notifications when more than one notification handler configured (closure iteration issue).
fixes #160
fixes #146
fixes #135
2021-04-25 09:47:12 -07:00
Jason Kulatunga 5ea9a75039 (0.3.6) Automated packaging of release by Packagr
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
2021-04-24 20:57:50 +00:00
Telyn 9778809cba Change temperature graph to 24-hour formatting 2020-12-27 14:57:27 +00:00
Jason Kulatunga 27b923b5e9 (0.3.5) Automated packaging of release by Packagr
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
2020-11-06 04:38:37 +00:00
Jason Kulatunga bab25de2f2 (0.3.4) Automated packaging of release by Packagr
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
2020-11-05 16:12:37 +00:00
Jason Kulatunga 520136a5ec fixing automated version bump, attempt 3. 2020-11-05 08:03:20 -08:00
Jason Kulatunga e364fe95d9 fixing verion bump for release. 2020-11-05 07:25:44 -08:00
Jason Kulatunga 93cf676818 added a "Success" test for script notifications.
bumping the version in version file? not sure why it wasnt correctly bumped already.
2020-11-03 08:20:02 -08:00
Ricardo Gonzalez 13d3d9f64e Show Host ID 2020-10-18 00:11:30 +01:00
Jason Kulatunga 77971edf5f Merge pull request #103 from ryck/feature/improve-humanize-duration 2020-10-17 12:00:00 -06:00
Ricardo Gonzalez 78d0dd8f3b Use humanizeDuration directly in the template 2020-10-16 21:52:03 +01:00
Ricardo Gonzalez 96534c44b7 Improve humanizeHours 2020-10-11 17:45:10 +01:00
Ricardo Gonzalez 95ef254b8c Add timestamp to last updated. Fixes #87 2020-10-11 16:14:43 +01:00
Jason Kulatunga bf07077154 fail if the parent directory for database does not exist. 2020-10-08 20:00:03 -06:00
Jason Kulatunga f27883ea4c remove requestcatcher live test. 2020-10-08 17:48:44 -06:00
Jason Kulatunga b04f1b07e8 (0.3.0) Automated packaging of release by Packagr
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
2020-10-08 23:37:10 +00:00
Jason Kulatunga 9fac3c6308 fix gorm dependency. 2020-10-07 22:07:51 -06:00