Skip to content

Instantly share code, notes, and snippets.

@rfb
Created December 7, 2021 17:45
Show Gist options
  • Save rfb/e114433a8035cf8cc366640574fa95bf to your computer and use it in GitHub Desktop.
Save rfb/e114433a8035cf8cc366640574fa95bf to your computer and use it in GitHub Desktop.
> rrdcreate temp.rrd DS:temp:GAUGE:30:-100:100 RRA:AVERAGE:0.5:1:1000
> rtl_433 -F "mqtt://localhost"
> mosquitto_sub -h localhost -t 'rtl_433/barley/events' | jq --unbuffered 'select(.id == 56 and .model == "Acurite-606TX") | .temperature_C' | xargs -I{} rrdtool update temp.rrd N:{}
> rrdtool graph temp.png DEF:temp=temp.rrd:temp:AVERAGE:step=1200 LINE1:temp#FF00FF:"Temp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment