You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using your code with Fauxmo.py.
for calling IR command, I made a simple ir_handler to deal with IR device(tv commands). the handler code as below:
def on(self):
#IR on command
r = requests.get("http://localhost/")
device = Orvibo('192.168.0.27')
device.emit_ir('dummy.ir')
device.emit_ir(self.on_cmd)
dbg("IR on Done")
return r.status_code == 200
def off(self):
#IR off command
r = requests.get("http://localhost/")
device = Orvibo('192.168.0.27')
device.emit_ir(self.off_cmd)
dbg("IR off Done")
return r.status_code == 200
---code end--
I encountered same issue which the IR didn't trigger at all. I presumed the status of the ALLONE might be in sleep mode so I use my cellphone app to kick it and it seemed work 80% of times. the Fauxmo is running under python 2.7. any hint which I can make the ir command more reliable?
test code
root@raspberrypi:/var/www/html# python orvibo.py -i 192.168.10.78 -e test.ir
Orvibo[type=irda, ip=192.168.10.78, mac=accf23794678]
Emit IR done.
Sometimes it does not work
The text was updated successfully, but these errors were encountered: