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 0c3adf8 commit d16f6ea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions action-louisros.radio.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,15 @@ def intents_callback(hermes, intentMessage) :
h.subscribe_intents(intents_callback)
while True:
h.loop_start()
fv = open("/var/lib/snips/skills/session","r")
session = int(PyString(fv.read()))
fv.close()
if session == 1:
publish_start_session_action()
fv =open("/var/lib/snips/skills/session","w")
fv.write(CString('0002'))
fv.close()

time.sleep(.1)
h.loop_stop()

Expand Down

0 comments on commit d16f6ea

Please sign in to comment.