miniBB ® 


 | Begin | Register | Reply | Search | Statistics | Manual |
IR code learning Forum / IR code learning /  

Python SDK InvalidArgument

Author Mike
#1 | Posted: 21 Apr 2019 11:43 

I tried several to use the Python learning function with several remote controllers but I always get :
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pi/mycroft-core/.venv/lib/python3.5/site-packages/motedem/", line 56, in learnAV
return self.__learn_common__(0x24, ready_callback)
File "/home/pi/mycroft-core/.venv/lib/python3.5/site-packages/motedem/", line 155, in __learn_common__
raise InvalidArgument()

Could you help me understand what am I doing wrong? (I can successfully read the temperature from the Motedem device)


Author garbage
#2 | Posted: 23 Apr 2019 09:01 
I'm using your product and would like to store the learned codes in a file (JSON) using your python SDK. I receive outputs in bytecodes and am now wondering how to decode these to regular strings.

I've tried converting the bytecode with ascii, utf-8 and base64.

Which encoding are you using?

I think it might be best when you can provide a small example for reading, storing and sending a saved command in Phyton. Thanks!

Author Skandesh
#3 | Posted: 6 Jul 2019 14:21 
Same problem for me, but here the temperature is also showing the wrong data

IR code learning Forum / IR code learning /
 Python SDK InvalidArgument

Your Reply Click this icon to move up to the quoted message

Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text. Forum Powered by Discussion Forum Software miniBB ®