Skip to content

hilli/lametric-my-data-diy-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go types and http handler for LaMetric My Data DIY

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.

Usage

  • 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

Running example

go run cmd/web/main.go
# or
task run

Notes

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

About

LaMetric My Data DIY app support for Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages