- #!/usr/bin/env bash
- redishost="ramqtt"
- upyggdrasil="Yggdrasil:$(redis-cli -h ${redishost} get uptime/yggdrasil.lan |tr -d '"')min"
- upvingolf="Vingolf:$(redis-cli -h ${redishost} get uptime/vingolf.lan |tr -d '"')min"
- upodin="Odin:$(redis-cli -h ${redishost} get uptime/odin.lan |tr -d '"')min"
- #upyggdrasil=$(redis-cli -h ${redishost} get uptime/yggdrasil.lan |tr -d '"')
- #upvingolf=$(redis-cli -h ${redishost} get uptime/vingolf.lan |tr -d '"')
- #upodin=$(redis-cli -h ${redishost} get uptime/odin.lan |tr -d '"')
- echo ${upyggdrasil}
- echo ${upvingolf}
- echo ${upodin}
- convert -pointsize 30 -fill black -draw 'text 20 40 '\"${upyggdrasil}\"'' -draw 'text 20 80 '\"${upvingolf}\"'' -draw 'text 20 120 '\"${upodin}\"'' -size 240x240 xc: /tmp/weather/uptime.png
|