Skip to content

Instantly share code, notes, and snippets.

@Fokko
Last active August 5, 2019 11:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fokko/2f3c6db106eded3f4e9228a6b13b7060 to your computer and use it in GitHub Desktop.
Save Fokko/2f3c6db106eded3f4e9228a6b13b7060 to your computer and use it in GitHub Desktop.
version: "3.3"
services:
energy-monitor-pwr:
image: fokkodriesprong/docker-alpine-cron
restart: always
links:
- graphite
environment:
- CRON_STRINGS=* * * * * curl -s http://192.168.1.111/a?f=j | jq .pwr -r | tr ',' '.' | xargs printf "watt_current:0|g\\watt_current:%s|g" | nc -w 1 -u graphite 8125
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment