Python Based Server that control IR based appliances using ESP8266
This project helps to control any IR based appliances using ESP8266 chip with IR transmitter.
This project ultimate goal is to make any smartphone to control any IR based appliance using low cost IR-command sending setup to less than 5$.
To acheive goal, I selected ESP8266 processor and 9$ Chip Computer. ESP8266 code kept as dumb as possible and move all IR-code intelligence (and related IR code database for various possible IR appliances) to a cheap Linux based SoC. For the time being, I chose 9$ Chip, but one can choose Raspberry (or any computer that runs Python and has network connectvity to ESP8266 chip that controls the IR appliance).
- Install python 2.7
- apt-get install python-twisted python-twisted-web
Third party code/tools used
- Used PyIrToy code for working IR transmitter for USB IR Toy -- Optional (as I was not using USB IR Toy for sending IR codes, as the USB IR Toy costs 19$ and my goal is to reduce the cost of this DIY project to less than 5$)
- UML diagams -- Optional
python phRemote.py --http-url http://esp8266.host.ip/ir
Logs can be seen at phRemote.log in same directory where we run above program
- Test HTTP communications with python server working or not by using curl command like:
Where 'power' and 'tv' are defined PhoneRemote-Server/model2file.properties