Skill Weather , not response


#1

I ALL .
I installed Snips and it works fine with Jeedom .
I tried with another APP like Weather .
After hot word i can see good detection

[10:17:24] [Asr] was asked to listen on site default
[10:17:28] [Asr] captured text “quelle la météo à nancy aujourd’hui” in 3.0s
[10:17:28] [Asr] was asked to stop listening on site default
[10:17:28] [AudioServer] was asked to play a wav of 93.1 kB with id ‘ab7d737d-e9
18-45cb-9b91-18466a825b53’ on site default
[10:17:29] [AudioServer] finished playing wav with id ‘ab7d737d-e918-45cb-9b91-1
8466a825b53’
[10:17:29] [Nlu] was asked to parse input “quelle la météo à nancy aujourd’hui”
[10:17:29] [Nlu] detected intent Joseph:searchWeatherForecast with probability 0
.936 for input “quelle la météo à nancy aujourd’hui”
Slots ->
forecast_locality -> Nancy (confidence: 0.964)
forecast_start_datetime -> 2019-01-22 00:00:00 +01:00 (confiden
ce: 1.000)
[10:17:29] [Dialogue] New intent detected Joseph:searchWeatherForecast with prob
ability 0.936
Slots ->
forecast_locality -> Nancy (confidence: 0.964)
forecast_start_datetime -> 2019-01-22 00:00:00 +01:00 (confiden
ce: 1.000)
[10:17:35] [Dialogue] session with id ‘ae0730e5-6d26-4747-bc47-fa81c088011b’ was
ended on site default. The session was ended because one of the component didn’
t respond in a timely manner
[10:17:35] [Asr] was asked to stop listening on site default
[10:17:35] [Hotword] was asked to toggle itself ‘on’ on site default

In skill-server i can see below

janv. 22 10:17:30 raspberrypi snips-skill-server[14963]: INFO:snips_skill_server_lib::runner : [meteo][err] Traceback (most recent call last):
janv. 22 10:17:30 raspberrypi snips-skill-server[14963]: INFO:snips_skill_server_lib::runner : [meteo][err] File “_ctypes/callbacks.c”, line 315, in ‘calling callback function’
janv. 22 10:17:30 raspberrypi snips-skill-server[14963]: INFO:snips_skill_server_lib::runner : [meteo][err] File "/var/lib/snips/skills/snips-skill-meteo/venv/local/lib/python2.7/site-packages/herme
janv. 22 10:17:30 raspberrypi snips-skill-server[14963]: INFO:snips_skill_server_lib::runner : [meteo][err] return func(self, *parsed_args)
janv. 22 10:17:30 raspberrypi snips-skill-server[14963]: INFO:snips_skill_server_lib::runner : [meteo][err] File “./action-meteo.py”, line 224, in intent_received
janv. 22 10:17:30 raspberrypi snips-skill-server[14963]: INFO:snips_skill_server_lib::runner : [meteo][err] sentence += weather_forecast[“inLocation”]
janv. 22 10:17:30 raspberrypi snips-skill-server[14963]: INFO:snips_skill_server_lib::runner : [meteo][err] UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xc3 in position 1: ordinal not in range

It is possible to test it with a html response . How to debug it or record response from host Weather ?

Regards


#2

You live in a location with äöü éèêáàâ or what ever -> There is an encoding error in the app it is not correctly defined as utf8 probably


#3

Hi Philipp .
Can you say me where configure in the app Utf8 ?
In raspberry my locotion is set to France

Do you know if it is possible to record response from openweathermap

Regards


#4

There are multiple ways for the encryption, the simplest is to add two lines to your code (the first one is already there) - the file has to be utf8 anyways:

if __name__ == "__main__":
    reload(sys)
    sys.setdefaultencoding('utf-8')

About recording I don’t know what you mean: save the information or the TTS output?


#5

if name == “main”:
reload(sys)
sys.setdefaultencoding(‘utf-8’)

Thank you for utf8, I could not make it work with accented characters


#6

Hi all

i deleted skill in folder /var/lib/snips/skills

i do a sam update assistant and works fine

Regards