Skip to content

mikeovery/piRS232

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

piRS232

Allows RS232 Commands using a REST interface to a Lutron Light Controller

Sample

Swagger API Page

Pre Reqs

Python3
Python3-pip
Connexion
RS232 Shield

Test Scripts

can be run independently using sudo python 'scriptname' 'params'

status.py: takes 1 parameter (number of lutron contrller as a single digit) e.g.

pi@piname:~ $ sudo python status.py 1
{"zones":[{"name": "Zone1", "value":0},{"name": "Zone2", "value":0},{"name": "Zone3", "value":0},{"name": "Zone4", "value":0},{"name": "Zone5", "value":0},{"name": "Zone6", "value":0}]}

REST Interface

cd piRS232/piRS232
sudo python3 app.py
Access pi using your local browser http://ip of pi:8080/api/v1/ui/#/

To run automatically add the following to the rc.local file by typing sudo nano /etc/rc.local before the exit command

cd piRS232/piRS232
sudo python3 app.py &

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages