Community

You need to log in to create posts and topics.

What's the config file I need to change from metric to standard for the cards?

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.

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/

It'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. 🙁

 

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.

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.