Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

action-own: fix reading result string in French #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions action-owm.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def searchWeatherForecastTemperature(hermes, intent_message):
locality = getAnyLocality(intent_message)
res = hermes.skill.speak_temperature(locality, datetime, granularity)
current_session_id = intent_message.session_id
hermes.publish_end_session(current_session_id, res.decode("latin-1"))
hermes.publish_end_session(current_session_id, res.decode("utf8"))

def searchWeatherForecastCondition(hermes, intent_message):
datetime = getDateTime(intent_message)
Expand All @@ -140,7 +140,7 @@ def searchWeatherForecastCondition(hermes, intent_message):
Region=region, Country=country,
POI=geographical_poi)
current_session_id = intent_message.session_id
hermes.publish_end_session(current_session_id, res.decode("latin-1"))
hermes.publish_end_session(current_session_id, res.decode("utf8"))

def searchWeatherForecast(hermes, intent_message):
datetime = getDateTime(intent_message)
Expand All @@ -156,7 +156,7 @@ def searchWeatherForecast(hermes, intent_message):
Region=region, Country=country,
POI=geographical_poi)
current_session_id = intent_message.session_id
hermes.publish_end_session(current_session_id, res.decode("latin-1"))
hermes.publish_end_session(current_session_id, res.decode("utf8"))

def searchWeatherForecastItem(hermes, intent_message):
datetime = getDateTime(intent_message)
Expand All @@ -174,7 +174,7 @@ def searchWeatherForecastItem(hermes, intent_message):
Country=country,
POI=geographical_poi)
current_session_id = intent_message.session_id
hermes.publish_end_session(current_session_id, res.decode("latin-1"))
hermes.publish_end_session(current_session_id, res.decode("utf8"))

if __name__ == "__main__":
config = read_configuration_file("config.ini")
Expand Down