LaMetric makes an app for easy access to their Time or Sky panels called My Data DIY
. To make the best of that, they (LeMetric) has made a data format for it. This is supported by this library.
- Create some "Frames"
- Add the handler to your webserver.
- Point the LaMetric device to your services as a HTTP pull endpoint
- Or use
MyDataFrames.Push(url, token)
to push data to the DIY app for more instant updates - Bob's your uncle (That is: Enjoy your data on the LaMetric display)
For a code example see the included webserver in cmd/web/main.go
go run cmd/web/main.go
# or
task run
This repo uses a taskfile to simplify things. Install task if you haven't already and run this to list available targets:
$ task --list
task: Available tasks for this project:
* build: Build the binary
* cleanup: Cleanup the project
* coverage: Generate coverage report and print it to the console
* default: Default task; Run tests, monitoring continuously for changes
* html-coverage: Generate HTML coverage report and open it in the browser
* run: Run the binary
* test: Run all tests