Python based web server to Control IR based TV/Set-Top-Boxes via any Smartphones/HTTPClients
C Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
design
IrToyYs.py
LICENSE
MySys.py
Readme.md
command.txt
irtoy3.py
model2file.properties
pace_esp_capture.2.c
pace_stb.properties
phRemote.py
philips_tv_21pt1532.properties
philips_tv_capture.1.c
tv_ir_keycode.txt

Readme.md

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.

Goal

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).

Dependent Projects

Architecture

Pre Requisitives

  • 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

Run Server

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

UT

  • Test HTTP communications with python server working or not by using curl command like:
curl http://your_python_server_ipurl/ir/change?code=power&model=tv

Where 'power' and 'tv' are defined PhoneRemote-Server/model2file.properties

Add new codes for new TV/IR-Appliance: