Last active
August 5, 2019 11:03
-
-
Save Fokko/2f3c6db106eded3f4e9228a6b13b7060 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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