Jason Kulatunga
2aa242e364
update mockgen instructions
10 months ago
Jason Kulatunga
1c193aa043
add database interface mock
10 months ago
Aram Akhavan
01c5a7fdfe
Address review comments
10 months ago
Aram Akhavan
98d958888c
refactor common code
10 months ago
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
10 months ago
Aram Akhavan
6417d71311
Add a setting for repeating notifications or not
10 months ago
Aram Akhavan
3285eb659f
Fix some development issues
10 months ago
Jason Kulatunga
5bbd4c3b64
update delete device message to clarify that no data will actually be effected, only scrutiny data.
...
fixes #544
1 year ago
packagrio-bot
c3a0fb7fb5
(v0.7.2) Automated packaging of release by Packagr
1 year ago
Aram Akhavan
550cd59093
Fix parsing of attribute 188 on seagate drives
1 year ago
Aram Akhavan
31c2daedf7
fix smart 188 thresholds
1 year ago
packagrio-bot
ee893cc360
(v0.7.1) Automated packaging of release by Packagr
2 years ago
Jason Kulatunga
d76cdca4a5
Merge pull request #472 from adamantike/misc/add-support-for-yml-config-files
2 years ago
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
2 years ago
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 .
2 years ago
packagrio-bot
2e4ba44952
(v0.7.0) Automated packaging of release by Packagr
2 years ago
Jason Kulatunga
de21e611a3
fixing migration for line_stroke setting.
2 years ago
Jason Kulatunga
7b77519f49
trying to fix tests.
2 years ago
Jason Kulatunga
94df7e1ec3
trying to fix tests.
2 years ago
Jason Kulatunga
babd8d3089
trying to fix tests.
2 years ago
Jason Kulatunga
80d72f8a1b
regenerate package-lock with angular 13-lts packages.
2 years ago
Jason Kulatunga
f94e616d8d
Merge branch 'master' into angular-refactoring
2 years ago
Saswat Padhi
cb5226f6e4
Update backend tests failing on insecure_skip_verify
2 years ago
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.
2 years ago
packagrio-bot
1c7f299b98
(v0.6.0) Automated packaging of release by Packagr
2 years ago
Jason Kulatunga
f2856e0f26
adding a healthcheck endpoint that confirms communication with influxdb and sqlite.
...
ref: #381
2 years ago
Jason Kulatunga
fb760a9f6d
make sure we print an error if the config file is invalid.
...
fixes #408
2 years ago
adripo
e9cf8a9180
fix: igeneric types
2 years ago
adripo
64ad353628
fix: remove fullcalendar
2 years ago
adripo
5518865bc6
fix: remove outdated option
2 years ago
adripo
50321d897a
fix: prod build command
2 years ago
adripo
e18a7e9ce0
refactor: update dependencies version
2 years ago
adripo
536b590080
feat: dynamic line stroke settings
2 years ago
Jason Kulatunga
2677796322
fixing bug. Null value for temperatures should be ignored.
2 years ago
packagrio-bot
f1e5bd3ed4
(v0.5.0) Automated packaging of release by Packagr
2 years ago
Jason Kulatunga
26b221532e
fix tests.
2 years ago
Jason Kulatunga
15d3206f6f
remove settings dialog from Details page.
2 years ago
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.
2 years ago
Jason Kulatunga
d41d535ab7
make sure that the device host id is provided in notifications (if available).
...
fixes #337
2 years ago
Jason Kulatunga
9a4a8de341
make sure the settings dialog width is 600px for readability.
2 years ago
Jason Kulatunga
2d6f60abaa
attrHistory needs to be reversed, so the newest data is on the right
...
fixes #339
2 years ago
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
2 years ago
Jason Kulatunga
3f272b36d4
adding setting to allow users to customize between binary vs SI/Metric units in UI.
...
fixes #330
2 years ago
Jason Kulatunga
ce2f990eb1
consolidate device status to string logic in DeviceStatusPipe.
...
Ensure device status takes into account new settings.
2 years ago
Jason Kulatunga
2e768fb491
adding tests. Make sure that device status depends on the configured threshold.
2 years ago
Jason Kulatunga
e41ee47371
filter attributes after notify
2 years ago
Jason Kulatunga
7a68a68e76
frontend, determine the device status by checking against the configured thresholds.
2 years ago
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.
2 years ago
Jason Kulatunga
7e672e8b8e
adding tests for config.MergeConfigMap functionality. (Set vs SetDefault).
...
Converted all settings keys to snakecase.
2 years ago
Jason Kulatunga
54e2cacb00
move frontend settings into the DB (for consistent settings handling).
...
Flattened settings object.
2 years ago