myrobotlab icon indicating copy to clipboard operation
myrobotlab copied to clipboard

Better Parsing for OpenWeatherMap

Open supertick opened this issue 7 years ago • 2 comments

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

supertick avatar Sep 04 '18 15:09 supertick

ohh yeah I like weather.getTemp() ! need to sync some repo .. and test few things

moz4r avatar Sep 09 '18 22:09 moz4r

it's cleaner now, I think

moz4r avatar Sep 10 '18 23:09 moz4r