Skip to content

Commit

Permalink
Update action-louisros.radio.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kheperV3 authored Aug 27, 2018
1 parent fb18766 commit 57e5398
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions action-louisros.radio.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@ def intents_callback(hermes, intentMessage) :
session = int(PyString(fv.read()))
fv.close()
if session == 1:
"""with Hermes(MQTT_ADDR) as h:
"""with Hermes(MQTT_ADDR) as h:
h.publish_start_session_action(MQTT_ADDR,'oui cher maître',['louisros:time','louisros:stopRadio','louisros:changeVolume','louisros:selectStation'])
"""
fv =open("/var/lib/snips/skills/session","w")
fv.write(CString('0002'))
fv.close()
"""
fv =open("/var/lib/snips/skills/session","w")
fv.write(CString('0002'))
fv.close()
time.sleep(.1)

"""th = threading.Thread(target=waitForNewSession)
Expand Down

0 comments on commit 57e5398

Please sign in to comment.