• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomepcDuinoPythonUse Flask Server on pcDuino3 to build web based Se ...
Previous Next

Use Flask Server on pcDuino3 to build web based Sensor Reading

Posted by: admin , March 13, 2015

We added a flash server sample into the python code at https://github.com/pcduino/python-pcduino. After we clone it the navigate to the directory named ‘hello-temp’ and run the server by typing:

$sudo python ./hello-temp.py

Now we can read different sensors outputs from another computer’s web browser.

For example, if the IP address of the target pcDuino3 found by ‘ifconfig’ is 192.168.1.172.

1. Check time:
Screen Shot 2015-03-13 at 10.37.05 PM2. Check temperature:

Screen Shot 2015-03-13 at 10.37.11 PM

3. Check light brightness:

Screen Shot 2015-03-13 at 10.37.16 PM

 

4. Check humidity:

Screen Shot 2015-03-13 at 10.37.21 PM

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors