element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
STEM Academy
  • Learn
  • Learning Center
  • STEM Academy
  • More
  • Cancel
STEM Academy
Blog Looking for Help - Python Code to Web Client
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join STEM Academy to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mikedavis
  • Date Created: 10 Nov 2014 3:27 PM Date Created
  • Views 693 views
  • Likes 2 likes
  • Comments 5 comments
  • client
  • web
  • raspberrypi
  • stem space
Related
Recommended

Looking for Help - Python Code to Web Client

mikedavis
mikedavis
10 Nov 2014

So I have been tinkering with Raspberry Pis for a little while now, and I am thoroughly convinced of their utility, and I am hoping to spread that out in my classroom.

 

On example of a project I would like to do is taking temperatures using the waterproof temperature probe.  There are many others, but that is a good place to start.  My students make it a habit to bring their devices (phones, computers, tablets) to class, and it seems like I should be able to get their devices to control a probe on the RPi.  The most obvious way to do that is through a web client. 

 

So, I have some code I have been using for getting temperatures to report out to a Google spreadsheet by using gspread.  You can find it here:  https://github.com/MDScience/temperature

 

I would like to use it improve upon it with a web client so that my students could use their device to go to the RPi and tell the probe to start collecting temperature information once they are ready.  I imagine there would be buttons and fields for required information (like the name of the file they would like to output to, and so on).

 

This, of course, is just the beginning.  We would want to do more than temperature measurements, and we would need other sensors and other web clients. 

 

If there is a good tutorial, or a model to follow I would greatly appreciate knowing about it.  Similarly, if there are any engineers who have experience in this area, and would like to lend a hand, I would appreciate that as well.

 

Thanks!

  • Sign in to reply
Parents
  • Eyedoll
    Eyedoll over 11 years ago

    You can install Apache web server on the Pi and use PERL as the go between (CGI) for the control and file management.  Then the clients will just be able to access and submit requests through their browsers.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • Eyedoll
    Eyedoll over 11 years ago

    You can install Apache web server on the Pi and use PERL as the go between (CGI) for the control and file management.  Then the clients will just be able to access and submit requests through their browsers.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • mikedavis
    mikedavis over 10 years ago in reply to Eyedoll

    Thank you.  Is there a tutorial for something like this?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Eyedoll
    Eyedoll over 10 years ago in reply to mikedavis

    Sorry, I just got back, I know it was 4 months ago. I found some answers to this in a book called, "PERL in easy steps" by Mike McGrath. ISBN 9780760754221.  Again, sorry about the delay.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube