myrobotlab
myrobotlab copied to clipboard
Better Parsing for OpenWeatherMap
http://myrobotlab.org/content/openweathermap-service-jsonexception-jsonobjectspeed-not-string#comment-10517
If raw json is not wanted and object would probably be a better idea than an array. E.g. weather = ow.forcast("Portland,US")
weather.getWindSpeed() weather.getTemp() ...
or a map even - so that values can be checked before exceptions thrown
ohh yeah I like weather.getTemp() ! need to sync some repo .. and test few things
it's cleaner now, I think