Home Api Gateway is an Python Program to simplify and Secure Home Devices APIs.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- Orange TV decoders
- SamsungTV
- Python 2.7 with Openssl
OR
- Docker
For docker Deployment please see https://hub.docker.com/r/jfpucheu/home_api_gateway/
A step by step series of examples that tell you have to get a development env running
Say what the step will be
cd src
Install requirements:
pip install -r requirements.txt
Configure the gateway:
vim config.cfg
Generate SSL Certificates if Needed:
./ssl_gen.sh
Start the program:
./main.py
The programme Should start and display the current config
Start Orange Decoder:
curl --insecure --user 'admin':'password' -H "Content-Type: application/json" -X POST -d '{"state":"ON"}' https://127.0.0.1:8443/orange/tv/
Select à Channel on Orange Decoder:
curl --insecure --user 'admin':'password' -H "Content-Type: application/json" -X POST -d '{"channel":"4"}' https://127.0.0.1:8443/orange/tv/
or:
curl --insecure --user 'admin':'password' -H "Content-Type: application/json" -X POST -d '{"channel":"CH+"}' https://127.0.0.1:8443/orange/tv/
Switch OFF Orange Decoder:
curl --insecure --user 'admin':'password' -H "Content-Type: application/json" -X POST -d '{"state":"OFF"}' https://127.0.0.1:8443/orange/tv/
- Jean-François PUCHEU - Initial work - jfpucheu
This project is licensed under the Apache 2 License - see the LICENSE.md file for details.