Skip to content

Commit

Permalink
full state
Browse files Browse the repository at this point in the history
  • Loading branch information
petrklus committed Apr 27, 2014
1 parent c4ae35a commit 5cda081
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions command_parsing/ir_comms.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,13 @@ def send_stuff(temp, mode, fan_speed, power_toggle=False):
return "ERR: More priviledged command running (power toggle)"


@route('/set_full_state/<temp>/<mode>/<fan_speed>')
def set_full_state(temp, mode, fan_speed, desired_state):
send_stuff(temp, mode, fan_speed)
time.sleep(2)
set_power(desired_state)


@route('/set_power/<desired_state>')
def set_power(desired_state):
"""
Expand Down

0 comments on commit 5cda081

Please sign in to comment.