element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Webinars, Training and Events
  • Learn
  • More
Webinars, Training and Events
Forum A web GUI for a Temperature Probe
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Webinars, Training and Events to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 3 replies
  • Subscribers 985 subscribers
  • Views 634 views
  • Users 0 members are here
  • python
  • web
  • programming
  • raspberrypi
Related

A web GUI for a Temperature Probe

mikedavis
mikedavis over 11 years ago

I am relatively new to this, but it seems like I should be able to do this.

 

I have some python code that runs a temperature probe from my Raspberry Pi.  It works great and reports out temperature and time readings to a google spreadsheet using gspread. 

 

What I would like to do now is make a web page that I could run on a local server to do the same thing.  Instead of doing everything from the command prompt, I would like to go to any computer on my network, and start the temperature probe.

 

I am not sure where to begin with this project.  Is there a good tutorial or place to start for combining a python program with a web page?

 

Any help would be appreciated.

 

Thanks!

Mike Davis

  • Sign in to reply
  • Cancel

Top Replies

  • oneleggedredcow
    oneleggedredcow over 11 years ago in reply to shabaz +1
    Yeah, the steps are pretty much the same for any board. Here's an example of how to run a program from a web page: BeagleBone Web Server - LED Blinking That should show you how to run a command from a…
  • colin_meikle@mentor.com
    colin_meikle@mentor.com over 11 years ago +1
    There are lots of ways to do this. Take a look at Nimbits http://www.nimbits.com/index.jsp It does exactly what you want. You can record your data, get alerts, setup triggers etc. It's open source you…
  • shabaz
    0 shabaz over 11 years ago

    Hi Mike,

     

    There is something known as AJAX, and in conjunction with a bit of HTML, a bit of JavaScript and possibly another language and a server technology, will allow you to achieve what you want. Therefore there are several pieces to the puzzle (it can't be done all in Python) but quite a few people on this site have implemented web interfaces to control their applications, everyone doing it in a slightly different way since there are many ways to skin a cat. You could check out some of those blog posts, they may help. But they may not be specific to the final application being in Python - it shouldn't matter.

    I think oneleggedredcow had some (might be BeagleBone Black instead of Raspberry Pi, but the principle is the same and all the same steps should work with a few tweaks perhaps) and I have some too. I did a raspberry pi christmas lights setup, that sent commands to a C program (not a Python program and not using AJAX though). There are plenty more examples on this site, but sadly I'm not sure which one is most Python-specific.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • oneleggedredcow
    0 oneleggedredcow over 11 years ago in reply to shabaz

    Yeah, the steps are pretty much the same for any board.  Here's an example of how to run a program from a web page:

    BeagleBone Web Server - LED Blinking

    That should show you how to run a command from a web page.  This way you can execute the command line program that you already have from a web page (using PHP).

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • colin_meikle@mentor.com
    0 colin_meikle@mentor.com over 11 years ago

    There are lots of ways to do this. Take a look at Nimbits http://www.nimbits.com/index.jsp  It does exactly what you want. You can record your data, get alerts, setup triggers etc. It's open source you can run it yourself or easier still, use the public cloud. There are a few examples using Arduino but I'm sure if you search you'll find some examples using a  pi. It should be very simple to setup.

     

    Good luck

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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