Polybar: Curl + Met Éireann’s API


curl -s https://prodapi.metweb.ie/observations/Claremorris/today | jq [last] | jq '.[0]' | jq -r '.temperature'

[module/meteirannweather]
type = custom/script
exec = curl -s https://prodapi.metweb.ie/observations/Claremorris/today | jq [last] | jq '.[0]' | jq -r '.temperature'
interval = 500
interval-fail = 1000
format-prefix = ""
format-suffic = "°C"
format-background = ${colors.background}
format-foreground = ${colors.foreground}


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.