Created
December 5, 2017 11:18
-
-
Save e-minguez/6e135aea7110c8b9cf5cfd913ba54c62 to your computer and use it in GitHub Desktop.
argos plugin for home assistant temperature
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
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