Support Center

Display Weather Info on your CT80 Screen - Via API code

Last Updated: Mar 28, 2017 07:28PM UTC
This Code is to Display Weather info on you CT80 Display:



Code provided by Kevin Matthew

On Linux

Requirements:
cURL https://curl.haxx.se/
jq https://stedolan.github.io/jq
WeatherUnderground API: https://www.wunderground.com/weather/api/

in crontab:
0,15,30,45 * * * * /tmp/tstat-uma0.sh
7 0,5,10,15,20 * * * /tmp/tstat-uma1.sh


created two script files:
tstat-uma0.sh : updates line 0 with current temp and humidity
#/bin/sh

/usr/bin/curl -s -o /tmp/cur-conditions.json https://api.wunderground.com/api/*************/conditions/q/zmw:00000.22.71431.json
/usr/bin/curl -d \{\"line\"\:0,\"message\":\"\Outdoor\ Temp:\ `cat /tmp/cur-conditions.json | jq -r .current_observation.temp_c`\ RH:\ `cat /tmp/cur-conditions.json | jq -r .current_observation.relative_humidity`\"\} http://tstat/tstat/uma

tstat-uma1.sh : pulls from weather underground the current days forecast, and displays it on line 1
#/bin/sh

curl -s -o /tmp/cur-forcast.json http://api.wunderground.com/api/*************/forecast/q/pws:IONTARIO1188.json
/usr/bin/curl -d \{\"line\"\:1,\"message\":\"\Today\ Hi:`cat /tmp/cur-forcast.json | jq -r .forecast.simpleforecast.forecastday[0].high.celsius`\ Lo:`cat /tmp/cur-forcast.json | jq -r .forecast.simpleforecast.forecastday[0].low.celsius`\ POP:`cat /tmp/cur-forcast.json | jq -r .forecast.simpleforecast.forecastday[0].pop`\%\"\} http://tstat/tstat/uma
 

Contact Us

  • Post a Public Question
  • Email Us
  • Contact Us @ support@radiothermostat.com 877.602.5028

    Support Hours EST

    Mon - Fri 9:30 - 22:30
    Sat 9:30 - 18:00
    Sun 10:30 - 21:00
radio@tstatsupport.com
https://cdn.desk.com/
false
RadioTstatHelp
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete