Commit Graph

13 Commits

Author SHA1 Message Date
Elara 9998915959 Update domain 2023-04-20 19:54:58 -07:00
Elara 510f183db2 Run formatter 2023-03-25 15:24:46 -07:00
yannickulrich 77680704e1 Added FUSE support (#55)
This exposes the watches' file system over FUSE. This way, we can access files on the watch without having to go through `itctl` or developing 3rd party tools.

**Features**

- [x] read/write access to the file system
- [x] read access to momentary sensor data
- [x] live access to sensor data (i.e. WatchMotion rather than Motion)
- [x] configuration of mount point

Co-authored-by: Yannick Ulrich <yannick.ulrich@durham.ac.uk>
Reviewed-on: https://gitea.arsenm.dev/Arsen6331/itd/pulls/55
Co-authored-by: yannickulrich <yannick.ulrich@protonmail.com>
Co-committed-by: yannickulrich <yannick.ulrich@protonmail.com>
2023-03-25 22:23:51 +00:00
Elara e858c43b5e Switch from zerolog to go.arsenm.dev/logger 2023-01-04 15:06:05 -08:00
Elara b8746cc924 Run formatter 2023-01-03 09:18:57 -08:00
Hunman 15b5d2888e Warn when Koanf read fails (#47)
Figured out the problem in issue #32, the toml file syntax was invalid (I had `'` instead of `"` at some values), but there was nothing in the logs about it.

Moved the config reading (and watching) into the same function, which logs the error as a warning.

I wanted to try moving the whole `if` into a separate function, but I kept getting errors when I tried to extract the `path` from the `File`, so I have that attempt in a separate branch not in this pull request: 5a84bf8148

Reviewed-on: https://gitea.arsenm.dev/Arsen6331/itd/pulls/47
Co-authored-by: Hunman <sanyi.exe@gmail.com>
Co-committed-by: Hunman <sanyi.exe@gmail.com>
2023-01-02 09:05:23 +00:00
Elara 9f0ca5a7df Move mpris out of pkg directory and run gofumpt 2022-11-24 17:36:25 -08:00
Elara 5043bb8cfe Add metrics collection via sqlite 2022-05-10 18:03:37 -07:00
Elara 711df70edc Allow changing bluetooth adapter ID 2022-05-02 20:17:38 -07:00
Elara 57768acb94 Switch from viper to koanf 2022-02-21 11:20:02 -08:00
Elara ed3b7b2a99 Update default values to reflect new config fields 2021-11-01 11:28:55 -07:00
Elara 0fe83fccc1 Fix debug config paths 2021-08-24 08:55:22 -07:00
Elara ef6c37c20b Add config defaults and run go fmt 2021-08-24 08:54:08 -07:00