Modified from Smartphone_v1_WebVersion
Automatically binds with IoTTalk device dzo_smartphone
- To get this working on Chrome Android, proceed to
chrome://flags
and set#enable-generic-sensor-extra-classes
toEnabled
. This is required for AmbientLightSensor as it is still an experimental web API. - app.py requires the Python package Flask, install it with
pip install Flask
. - Start the server with
python app.py
.
- Observe the IP it is running on.
If your smartphone is connected to the same network as your server is running on, connect to
https://xxx.xxx.xxx.xxx/
in Chrome Android and bypass the safety warning.
- Proceed to https://2.iottalk.tw/ and have fun with your project~