r45635 / HVAC-IR-Control

Ir Send - Updated for HVAC Mitsubishi & Panasonic IR
GNU General Public License v3.0
246 stars 89 forks source link

Error in demo python #22

Closed alverman closed 6 years ago

alverman commented 6 years ago

I receive this error when try demo in python:

Then in the module ir_sender.py gives me error on line 313 for i in xrange (0, len (data)): name 'xrange' is not defined I modified it with for i in range (0, len (data)):

but now work with this error in blu color:

no more mistakes but it does not work

Power OFF Error in clearing wave! Wait 2 secs ... It's gonna get cold here ! Error in clearing wave!

Go dormant for 30 secs ...

I used lirc with this led and it works. The led is connected to gpio17 so I do: HVAC = Mitsubishi (17, Loglevel.ErrorsOnly) but the ir led does not give a sign of life. Also because the led points to a receiver managed by analysIR and does not detect anything. Another thing, when I set or lirc I added

dtoverlay = lirc-rpi, gpio_in_pin = 18, = 17 gpio_out_pin dtparam = = gpio_in_pull up

Now I have commented on them. Does this affect the operation?

Thanks, Alberto

alverman commented 6 years ago

Sorry work for now :)