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

Emit IR - Sometimes it does not work #8

Open
ddabun opened this issue Aug 1, 2016 · 1 comment
Open

Emit IR - Sometimes it does not work #8

ddabun opened this issue Aug 1, 2016 · 1 comment

Comments

@ddabun
Copy link

ddabun commented Aug 1, 2016

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

@mojo818
Copy link

mojo818 commented Dec 25, 2016

hi,

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:

class ir_handler(object):
def init(self, on_cmd, off_cmd):
self.on_cmd = on_cmd
self.off_cmd = off_cmd

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants