Hi guys,
I am happy to return to MRL after a long absence. I noticed a number of new functions. Well done! and I am happy to try to use them. As the first functionality, I try to use the OpenWeatherMap service and noticed a small problem. In the log there is an exception when processing the response:
python.interpreter.27] ERROR c.m.f.Service [Service.java:2053] python error PyException - null Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:/projects/mrl/InMoov/services/H_OpenWeatherMap.py", line 27, in isTheSunShiny
weather=OpenWeatherMap.fetchForecast(townParam,period)
at org.json.JSONObject.getString(JSONObject.java:721)
at org.myrobotlab.service.OpenWeatherMap.fetchForecast(OpenWeatherMap.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source).
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
org.json.JSONException: org.json.JSONException: JSONObject["speed"] not a string.
I send you "no worky"
Welcome Back Darek ! It works
Welcome Back Darek !
It works for me when I use a valid key
GroG, nice to see you
I was testing from
I was testing from develop/head in eclipse .. it seemed to work..
but when i tested from the latest i got the same error you did.
Looking at it i see parsing which appears a bit fragile ...
Fortunately,
the service can also just return raw json ..
Try this
hm... When I have replaced
hm... When I have replaced the service code with your code. I'm getting an error:
I'll need a noworky Darek
I'll need a noworky Darek
I sent you.
I sent you.
In the last noWorky I saw
In the last noWorky I saw from you .. I see that its an InMoov script ..
The latest works with the example I sent.
Might need moz4r to look at this ...
I'll see if a bat signal works ...
https://github.com/MyRobotLab
https://github.com/MyRobotLab/myrobotlab/issues/255
Hi, it should be fixed in the
Hi, it should be fixed in the last beta build. Some code refactoring will continue, but seem the sun is shiny today.
"publishEndSpeaking - about
"publishEndSpeaking - about the forecast in gdansk, i shall say, it is, clear sky about the temperature, 15 point 4 degrees"
Now is working fine for my. Thanks a lot.