Advertisement
Javi

IoT: Broadlink blackbean

Oct 26th, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. # Broadlink
  2.  
  3. * Use python2
  4.  
  5. ## Linux
  6.  
  7. * Install pip package:
  8. * wget https://bootstrap.pypa.io/get-pip.py
  9. * Run get-pip.py
  10. * Install python-dev package: apt-get install python-dev
  11.  
  12. ## Windows
  13.  
  14. * Download Microsoft Visual C++ Compiler for Python 2.7
  15.  
  16. ## Setup
  17.  
  18. * Clone https://github.com/mjg59/python-broadlink
  19. * Run python setup.py install
  20.  
  21. ## Config
  22.  
  23. * Run cli/broadlink_discovery
  24. * Look for the device line (0x2737 192.168.1.34 0bb547770f78, for example)
  25. * Echo that line to a file named kitchen.device (without CR/LF!)
  26.  
  27. ## Learn commands
  28.  
  29. * Create a tv on command with `cli/broadlink_cli --device @kitchen.device --learnfile kitchen.tv.on`
  30.  
  31. ## Replay commands
  32.  
  33. * cli/broadlink_cli --device @kitchen.device --send @kitchen.tv.on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement