Aram Akhavan
f24abf254b
Add tests for not repeating notifications
2024-02-04 11:38:52 -08:00
Aram Akhavan
cc889f2a2d
fix notify tests
2024-02-04 11:38:52 -08:00
Jason Kulatunga
2aa242e364
update mockgen instructions
2024-02-04 11:38:52 -08:00
Jason Kulatunga
1c193aa043
add database interface mock
2024-02-04 11:38:52 -08:00
Aram Akhavan
01c5a7fdfe
Address review comments
2024-02-04 11:38:51 -08:00
Aram Akhavan
98d958888c
refactor common code
2024-02-04 11:38:51 -08:00
Aram Akhavan
4e5c76b259
Add support for disabling repeat notifications
...
* Add a new database function for getting the tail
* Update ShouldNotify() to handle ignoring repeat notifications if set
2024-02-04 11:38:51 -08:00
Aram Akhavan
6417d71311
Add a setting for repeating notifications or not
2024-02-04 11:38:50 -08:00
Aram Akhavan
3285eb659f
Fix some development issues
2024-02-04 11:38:50 -08:00
Jason Kulatunga
5bbd4c3b64
update delete device message to clarify that no data will actually be effected, only scrutiny data.
...
fixes #544
2023-11-22 14:25:26 -08:00
packagrio-bot
c3a0fb7fb5
(v0.7.2) Automated packaging of release by Packagr
2023-10-17 13:19:35 +00:00
Aram Akhavan
550cd59093
Fix parsing of attribute 188 on seagate drives
2023-10-14 21:39:12 -07:00
Aram Akhavan
31c2daedf7
fix smart 188 thresholds
2023-09-03 10:37:43 -07:00
packagrio-bot
ee893cc360
(v0.7.1) Automated packaging of release by Packagr
2023-04-08 23:01:22 +00:00
Jason Kulatunga
d76cdca4a5
Merge pull request #472 from adamantike/misc/add-support-for-yml-config-files
2023-04-06 17:46:03 -07:00
Michael Manganiello
932e191510
Allow configuration files with yml extension
...
If a `collector.yml` or `scrutiny.yml` configuration file is present,
use it as long as a `.yaml` version is not available too.
Fixes #79
2023-04-06 20:55:22 -03:00
Michael Manganiello
3a6c407fe7
Add support for ntfy notifications
...
Updates [`shoutrrr`](containrrr.dev/shoutrrr/) to `v0.7.1` to enable
support for [ntfy](https://ntfy.sh/ ) notifications.
Fixes #433 .
2023-04-06 17:04:48 -03:00
packagrio-bot
2e4ba44952
(v0.7.0) Automated packaging of release by Packagr
2023-04-06 05:22:42 +00:00
Jason Kulatunga
de21e611a3
fixing migration for line_stroke setting.
2023-04-05 21:06:09 -07:00
Jason Kulatunga
7b77519f49
trying to fix tests.
2023-04-05 20:48:07 -07:00
Jason Kulatunga
94df7e1ec3
trying to fix tests.
2023-04-05 20:44:07 -07:00
Jason Kulatunga
babd8d3089
trying to fix tests.
2023-04-05 20:35:18 -07:00
Jason Kulatunga
80d72f8a1b
regenerate package-lock with angular 13-lts packages.
2023-04-05 20:10:53 -07:00
Jason Kulatunga
f94e616d8d
Merge branch 'master' into angular-refactoring
2023-04-04 21:38:57 -07:00
Saswat Padhi
cb5226f6e4
Update backend tests failing on insecure_skip_verify
2023-02-07 08:24:39 +00:00
Saswat Padhi
e07a53046f
[FEAT] Allow insecure certificates on InfluxDB
...
This change allows users to skip TLS certificate verification on their
InfluxDB server, if they wish to do so, for instance when using self-
signed certificates.
Without this change, scrutiny failed to start and paniced with a
`x509: certificate signed by unknown authority` error.
2023-02-06 22:26:40 +00:00
packagrio-bot
1c7f299b98
(v0.6.0) Automated packaging of release by Packagr
2023-01-12 00:42:30 +00:00
Jason Kulatunga
f2856e0f26
adding a healthcheck endpoint that confirms communication with influxdb and sqlite.
...
ref: #381
2022-11-30 08:25:27 -08:00
Jason Kulatunga
fb760a9f6d
make sure we print an error if the config file is invalid.
...
fixes #408
2022-11-29 22:06:42 -08:00
adripo
e9cf8a9180
fix: igeneric types
2022-11-12 22:27:07 +01:00
adripo
64ad353628
fix: remove fullcalendar
2022-11-12 22:26:03 +01:00
adripo
5518865bc6
fix: remove outdated option
2022-11-12 22:24:38 +01:00
adripo
50321d897a
fix: prod build command
2022-11-12 22:24:02 +01:00
adripo
e18a7e9ce0
refactor: update dependencies version
2022-11-12 22:23:37 +01:00
adripo
536b590080
feat: dynamic line stroke settings
2022-11-11 00:19:51 +01:00
Jason Kulatunga
2677796322
fixing bug. Null value for temperatures should be ignored.
2022-11-06 07:54:32 -08:00
packagrio-bot
f1e5bd3ed4
(v0.5.0) Automated packaging of release by Packagr
2022-08-04 15:11:04 +00:00
Jason Kulatunga
26b221532e
fix tests.
2022-08-04 07:56:43 -07:00
Jason Kulatunga
15d3206f6f
remove settings dialog from Details page.
2022-08-04 07:30:14 -07:00
Jason Kulatunga
f823127825
simplify logger creation (move logic into a function in main packages)
...
Ensure logger creation is consistent between Web and Collector
Create logger in main, pass down to downstream functions (like gin)
In debug mode, print a copy of AppConfig
Better debugging for logger.
2022-08-03 22:51:44 -07:00
Jason Kulatunga
d41d535ab7
make sure that the device host id is provided in notifications (if available).
...
fixes #337
2022-08-03 20:55:34 -07:00
Jason Kulatunga
9a4a8de341
make sure the settings dialog width is 600px for readability.
2022-08-03 18:38:59 -07:00
Jason Kulatunga
2d6f60abaa
attrHistory needs to be reversed, so the newest data is on the right
...
fixes #339
2022-08-03 18:23:58 -07:00
Jason Kulatunga
a1b0108503
Added PRAGMA settings support when connecting to SQLITE db.
...
When a transaction cannot lock the database, because it is already locked by another one,
SQLite by default throws an error: database is locked. This behavior is usually not appropriate when
concurrent access is needed, typically when multiple processes write to the same database.
PRAGMA busy_timeout lets you set a timeout or a handler for these events. When setting a timeout,
SQLite will try the transaction multiple times within this timeout.
https://rsqlite.r-dbi.org/reference/sqlitesetbusyhandler
retrying for 30000 milliseconds, 30seconds - this would be unreasonable for a distributed multi-tenant application,
but should be fine for local usage.
added mechanism for global settings (PRAGMA and DB level instructions).
fixes #341
2022-08-02 22:14:23 -07:00
Jason Kulatunga
3f272b36d4
adding setting to allow users to customize between binary vs SI/Metric units in UI.
...
fixes #330
2022-07-30 08:50:23 -07:00
Jason Kulatunga
ce2f990eb1
consolidate device status to string logic in DeviceStatusPipe.
...
Ensure device status takes into account new settings.
2022-07-29 07:11:57 -07:00
Jason Kulatunga
2e768fb491
adding tests. Make sure that device status depends on the configured threshold.
2022-07-25 07:46:44 -07:00
Jason Kulatunga
e41ee47371
filter attributes after notify
2022-07-23 16:21:53 -07:00
Jason Kulatunga
7a68a68e76
frontend, determine the device status by checking against the configured thresholds.
2022-07-23 16:11:49 -07:00
Jason Kulatunga
94594db20a
on settings save, return the new settings.
...
update the frontend to persist settings to the database.
Using ScrutinyConfigService instead of TreoConfigService.
Using snake case settings in frontend.
Make sure we're using AppConfig type where possible.
2022-07-23 14:36:32 -07:00