Commit 7a231c64 authored by Guillaume Blanchy's avatar Guillaume Blanchy
Browse files

check run_http_interface.sh

Showing with 3 additions and 3 deletions
+3 -3
...@@ -86,7 +86,7 @@ Different interfaces can be used to communicated with the OhmPi. ...@@ -86,7 +86,7 @@ Different interfaces can be used to communicated with the OhmPi.
Usable interfaces to control an OhmPi. Usable interfaces to control an OhmPi.
Available interfaces: Available interfaces:
- Web interface (=HTTP interface): run in bash: `./run_http_interface.sh` - Web interface (=HTTP interface): run in bash: `bash run_http_interface.sh`
- Python API: import the OhmPi class from Python script: `from ohmpi import OhmPi` - Python API: import the OhmPi class from Python script: `from ohmpi import OhmPi`
- MQTT broker (see interface below) - MQTT broker (see interface below)
......
...@@ -3,5 +3,5 @@ USER="pi" # change if other username ...@@ -3,5 +3,5 @@ USER="pi" # change if other username
cd /home/$USER/OhmPi cd /home/$USER/OhmPi
source /home/$USER/OhmPi/ohmpy/bin/activate source /home/$USER/OhmPi/ohmpy/bin/activate
python ohmpi.py & # run ohmpi.py to capture the commands python ohmpi.py & # run ohmpi.py to capture the commands
python http_inteface.py # run http_interface to serve the web GUI python http_interface.py # run http_interface to serve the web GUI
# to automatically start the webserver on start, you need to place the # to automatically start the webserver on start, you need to place the
# following line just before the line with 'exit 0' in the /etc/rc.local. # following line just before the line with 'exit 0' in the /etc/rc.local.
(cd /home/pi/OhmPi; bash run.sh > startup.log) & (cd /home/pi/OhmPi; bash run_http_interface.sh > startup.log) &
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment