Raspberry Pi Python-Flask Server Sensor Application

Raspberry Pi Python-Flask Server Sensor Application

flask_led_server_ws.zip

ws_sensor_led.svg

Server Side ( RPI ) :

$ python3 app.py

Client Side :

192.168.0.2:5000 in a web browser.

app.py
Le fichier iot/linux-server-programming/rpi-python-flask-server-sensor-app/flask_led_server_ws/app.py n'a pas été trouvé à l'emplacement spécifié.
# RPI TERM
$ python3 app.py
* Restarting with stat
* Debugger is active!
* Debugger PIN: 955-561-534
(2499) wsgi starting up on http://0.0.0.0:5000
(2499) accepted ('192.168.0.1', 36052)
(2499) accepted ('192.168.0.1', 36054)
192.168.0.1 - - [25/Oct/2018 11:53:31] "GET / HTTP/1.1" 200 4178 0.062617
192.168.0.1 - - [25/Oct/2018 11:53:31] "GET /gauge.js HTTP/1.1" 200 1670 0.012142
192.168.0.1 - - [25/Oct/2018 11:53:36] "GET /socket.io/?EIO=3&transport=polling&t=1540461216423-0 HTTP/1.1" 200 381 0.002522
		...

index.html

templates/index.html
Le fichier iot/linux-server-programming/rpi-python-flask-server-sensor-app/flask_led_server_ws/templates/index.html n'a pas été trouvé à l'emplacement spécifié.