Eichhoernchen/SiriServer — Issue #160: Weather plugin returns no information
Author: leandroprz
Created: 2012-02-09 04:36:08+00:00
State: open

I enabled Location Services for Siri but when I ask her for the weather on my city, I get no information:

INFO process_recognized_speech Best matching result: "What's the weather like" with a confidence of 94.39%
INFO read_next_object_from_unzipped Received a Ping (86)
INFO read_next_object_from_unzipped Returning a Pong (86)
{'weatherForecast': {'failure': {'de-DE': 'Ich konnte leider keine Wettervorhersage finden!', 'en-US': "I'm sorry but I could not find the forecast for this location!"}, 'search': {0: {'de-DE': u'Einen Moment Geduld bitte...', 'en-US': 'Checking my sources...'}, 1: {'de-DE': u'Ich suche nach der Vorhersage ...', 'en-US': 'Please wait while I check that...'}, 2: {'de-DE': u'Einen Moment bitte ...', 'en-US': 'One moment please...'}, 3: {'de-DE': u'Ich suche nach Wetterdaten...', 'en-US': 'Trying to get weather data for this location...'}}, 'forecast': {'HOURLY': {0: {'de-DE': u'Hier ist die heutige Vorhersage f\xfcr {0}, {1}', 'en-US': "Here is today's forecast for {0}, {1}"}, 1: {'de-DE': u'Hier ist die Wetterprognose von heute f\xfcr {0}, {1}', 'en-US': "This is today's forecast for {0}, {1}"}, 2: {'de-DE': u'Ich habe folgende Tagesprognose f\xfcr {0}, {1} gefunden', 'en-US': 'I found the following hourly forecast for {0}, {1}'}}, 'DAILY': {0: {'de-DE': u'Hier ist die Vorhersage f\xfcr {0}, {1}', 'en-US': 'Here is the forecast for {0}, {1}'}, 1: {'de-DE': u'Hier ist die Wetterprognose f\xfcr {0}, {1}', 'en-US': 'This is the forecast for {0}, {1}'}, 2: {'de-DE': u'Ich habe folgende Vorhersage f\xfcr {0}, {1} gefunden', 'en-US': 'I found the following forecast for {0}, {1}'}}}}}
INFO read_next_object_from_unzipped Received a Ping (87)
INFO read_next_object_from_unzipped Returning a Pong (87)
INFO process_compressed_data Forwarding object to plugin
INFO read_next_object_from_unzipped Received a Ping (88)
INFO read_next_object_from_unzipped Returning a Pong (88)
INFO read_next_object_from_unzipped Received a Ping (89)
INFO read_next_object_from_unzipped Returning a Pong (89)
INFO read_next_object_from_unzipped Received a Ping (90)
INFO read_next_object_from_unzipped Returning a Pong (90)
INFO read_next_object_from_unzipped Received a Ping (91)
INFO read_next_object_from_unzipped Returning a Pong (91)
ERROR run Unexpected during plugin processing
Traceback (most recent call last):
File "/home/leandroprz/SiriServer/plugin.py", line 60, in run
self.__method(self, self.__speech, self.__lang)
File "/home/leandroprz/SiriServer/plugins/weather.py", line 246, in weatherForecastLookUp
view.views = [AssistantUtteranceView(text=weatherPlugin.localizations['weatherForecast']['forecast'][viewType] [randomNumber][language].format(city, speakCountry),speakableText=weatherPlugin.localizations['weatherForecast'] ['forecast'][viewType][randomNumber][language].format(city,speakCountry), dialogIdentifier="Weather#forecastCommentary"), weather]
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 1: ordinal not in range(128)

I tried with "New York" and "California" and I'm getting results, but not with my city (Córdoba). Maybe because it has an accent?