Closed evanrich closed 1 year ago
This is really great! I'm glad this project has been useful for you. Feel free to send a pull request with this documentation as a markdown file if you have some time, otherwise I'll copy/paste it from this issue over the weekend. Docker support has been requested a few times in the past, so it's nice to be able to give people a starting point on how to use it through Docker.
Will do! will submit a PR later today with this info.
Hey there! Great work on writing a bunch of these things out. I have a cat who was recently diagnosed as diabetic, and had a freestyle libre2 attached to him to monitor his blood sugar levels constantly. I work in DevOps, and so I immediately googled to see if there was an API available I could query to get his data, and came across your repo.
I took the liberty (hope you don't mind of taking the librelinkup and config python files, writing a requirements.txt, creating a docker file, and running it in Kubernetes.
The docker image: https://hub.docker.com/repository/docker/evanrich/freelibre2influx/general
requirements.txt:
Here's the dockerfile:
I run this in a cronjob on kubernetes with the following code:
All of the environmental variables (passwords, usernames, etc) are stored in DOPPLER, a free tier external secrets platform. I have external-secrets running in my home cluster and it automatically pulls in the credentials it needs with the following:
This all then gets visualized in Grafana using a single panel dashboard.
I didn't fork your repo or anything, but, @c99koder if you're interested, I will and throw my files in so you can add them for others to use. The container/etc can easily be expanded upon for the other python scripts, I just had no use for them.
Thanks again!