Commit Graph

11 Commits

Author SHA1 Message Date
9ecd45dadd 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
520c23b75b Switch from zerolog to go.arsenm.dev/logger 2023-01-04 15:06:05 -08:00
27cd275ddb Run formatter 2023-01-03 09:18:57 -08:00
5f5c67f7cc 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
73a679d10b Move mpris out of pkg directory and run gofumpt 2022-11-24 17:36:25 -08:00
66618e5bf0 Add metrics collection via sqlite 2022-05-10 18:03:37 -07:00
52b85ab361 Allow changing bluetooth adapter ID 2022-05-02 20:17:38 -07:00
4b2694ee0d Switch from viper to koanf 2022-02-21 11:20:02 -08:00
50b17d3266 Update default values to reflect new config fields 2021-11-01 11:28:55 -07:00
7786ea1d58 Fix debug config paths 2021-08-24 08:55:22 -07:00
6e16aa7a7a Add config defaults and run go fmt 2021-08-24 08:54:08 -07:00