What's the config file I need to change from metric to standard for the cards?
Quote from Red on July 17, 2018, 11:18 amWhat's the config file I need to change from metric to standard for the cards? This and weather location config is all I really needed for now.
What's the config file I need to change from metric to standard for the cards? This and weather location config is all I really needed for now.
Quote from ihermit2 on July 17, 2018, 2:45 pmWeather location is currently hardcoded in /usr/bin/js/yahooWeather.js it's URL hex encoded so spaces need to be %20 and comma %2C the current location is Toronto, on
Still working on the value change to fahrenheit I can get degF displayed in /usr/bin/js/weather.js trivially but the decimal value displayed is still Celsius
Also more about the source of weather data:
https://developer.yahoo.com/weather/
Weather location is currently hardcoded in /usr/bin/js/yahooWeather.js it's URL hex encoded so spaces need to be %20 and comma %2C the current location is Toronto, on
Still working on the value change to fahrenheit I can get degF displayed in /usr/bin/js/weather.js trivially but the decimal value displayed is still Celsius
Also more about the source of weather data:
https://developer.yahoo.com/weather/
Quote from Red on July 17, 2018, 6:25 pmIt's part of the same string but doesn't stand out until you decode it:
Encoded:
https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22toronto%2C%20on%22)%20and%20u%3D'c'&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys"
Decoded:
https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid in (select woeid from geo.places(1) where text="toronto, on") and u='c'&format=json&env=store://datatables.org/alltableswithkeys"
Also, I know my woeid from another project but I'm to lazy to rejigger this to work with that. 🙁
It's part of the same string but doesn't stand out until you decode it:
Encoded:
Decoded:
https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid in (select woeid from geo.places(1) where text="toronto, on") and u='c'&format=json&env=store://datatables.org/alltableswithkeys"
Also, I know my woeid from another project but I'm to lazy to rejigger this to work with that. 🙁
Quote from Red on July 17, 2018, 7:00 pmGot the weather location and standard stuff working. Thanks for the help @ihermit2 !
Pro tip for anyone reading this in the early days: At this point, for the love of everything holy (mmm, donuts), do this stuff while the unit is plugged in and not on battery. It does not like being in that mode yet.
Got the weather location and standard stuff working. Thanks for the help @ihermit2 !
Pro tip for anyone reading this in the early days: At this point, for the love of everything holy (mmm, donuts), do this stuff while the unit is plugged in and not on battery. It does not like being in that mode yet.
Quote from htjohnson on July 18, 2018, 5:58 pmIn addition to the image that ihermit2 mentioned above, u='c' is in the query that Red decoded above. I've changed both and rebooted. It seems to take a while (next hour?) to update the temperature value.
In addition to the image that ihermit2 mentioned above, u='c' is in the query that Red decoded above. I've changed both and rebooted. It seems to take a while (next hour?) to update the temperature value.