Skip to content

Instantly share code, notes, and snippets.

@e-minguez
Created December 5, 2017 11:18
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 e-minguez/6e135aea7110c8b9cf5cfd913ba54c62 to your computer and use it in GitHub Desktop.
Save e-minguez/6e135aea7110c8b9cf5cfd913ba54c62 to your computer and use it in GitHub Desktop.
argos plugin for home assistant temperature
HASS="http://x.x.x.x:8123"
CURL="curl -s -X GET -H 'Content-Type: application/json' ${HASS}/api/states"
TI=$(${CURL}/sensor.temperature | jq -r '.state')
TO=$(${CURL}/sensor.temperature_outside | jq -r '.state')
HO=$(${CURL}/sensor.humidity_outside | jq -r '.state')
echo "${TI}º |"
echo "---"
echo "${TO}º outside"
echo "${HO}% humidity outside"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment