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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Nico teWinkel's Blog Raspberry Pi and Node-Red for local temperature monitoring
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ntewinkel
  • Date Created: 26 May 2021 1:59 AM Date Created
  • Views 4032 views
  • Likes 7 likes
  • Comments 12 comments
  • wemos d1 mini
  • temperature
  • node-red
  • raspberry_pi
  • raspberry pi
Related
Recommended

Raspberry Pi and Node-Red for local temperature monitoring

ntewinkel
ntewinkel
26 May 2021

I just took another step in a project that has been going on for over 3 years now: temperature monitoring using ESP-based boards.

 

It started out with an ESP-001:

Remote (Water) Temperature Monitoring

 

Since then I've made a few updates, including switching to using Wemos D1 Mini boards instead of the ESP-001. The Wemos D1 Mini boards are much easier to program and power, plus there are lots of little Thingiverse 3D printed case options available. I've ordered some ESP-32 boards for the next step forward too image

 

I've also had to update the html on the server to use a different graphing library, as Google seemed to have changed or discontinued the one I was originally using.

 

For the last year or more I've started to wonder if I could maybe use Node-Red on a Raspberry Pi instead, to simplify the server side work, and also to maybe make things look nicer.

 

So a few weeks ago I installed Node-Red on a Raspberry Pi 3 I already had here, after purchasing a new 64GB high-speed SD card and re-installing a fresh image on it. Turns out those cards are quite affordable now. I bought one on Amazon and yes - I tested to verify the speed and capacity before trusting it for actual use image

I had toyed with the idea of using an external SSD drive, but that's more cost and complexity that I probably don't need right now.

 

I followed a few tutorials on how to install Node-Red and did the basic hello-world type of things to try it out. I was surprised at how much easier it actually was than I thought it was going to be!

 

Tonight I spent maybe an hour and a half and created a little browser-based dashboard to display my local temperature and my own sensor temperature.

I obtained the local weather office temperature from OpenWeather, which was also far easier than I thought it would be.

Getting my own sensor data was a little more tricky, but with a bit of digging I was able to read my own stored values from my server, converted it to JSON, and pulled out the temperature from it.

 

All in all the update tonight only took maybe an hour and a half of messing around.

 

This is the result:

image

 

It also looks great on my iPhone.

 

For the next steps I plan to:

1. Update my temperature sensor devices to use MQTT. The plan is that they will publish their values via Mosquitto, which I plan to install on the same Raspberry Pi.

2. Store the temperature data into a database (I think that's Ingress? I'll have to re-check some Andreas Spiess videos for that). edit: It's InfluxDB I was thinking of. Time-series data that automatically tucks in the aging data.

3. Show the historical temperatures in charts (edit: this may involve Grafana too)

 

The only drawback is that this removes my Internet access to the temperatures, but I usually only look at it while at home anyway so that's not a big deal. I'd rather not expose the Pi to the outside world so it'll likely stay that way.

 

Best,

-Nico

  • Sign in to reply

Top Comments

  • ntewinkel
    ntewinkel over 4 years ago in reply to fmilburn +4
    Hi Frank! I just ordered a couple of inexpensive options of AliExpress. One is the same form factor as the Wemos D1 Mini 8266 type, which I think might be just right for my purpose. The other is slightly…
  • fmilburn
    fmilburn over 4 years ago +3
    Hi Nico, I’ve been thinking about using a RPi and Node-Red also so it is good to hear it isn’t too bad getting started. I am curious which esp-32 boards are you going to use... Frank
  • ntewinkel
    ntewinkel over 4 years ago in reply to fmilburn +3
    fmilburn wrote: How do you usually power them? I've always just plugged them in, usually with a little iPhone charger cube - the real ones give a nice solid 1amp to work with. For the hummingbird feeders…
Parents
  • neilk
    neilk over 4 years ago

    Hi Nico,

     

    Thanks for posting. That was very helpful to me in understanding what node red can do.

     

    I see that I can istall node red on my Windows PC and do a similar sort of thing to you. When the gardening season slows down and I have more time, I might well get to grips with it.

    I always seem to ride on your coat tails! image

     

    Neil

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ntewinkel
    ntewinkel over 4 years ago in reply to neilk

    Hi Neil!

     

    I'm glad to see I'm not alone trying to do this kind of thing image

     

    I did also get MQTT installed and receiving data from one of my sensors - I had to make some relatively minor changes to have the sensor send via MQTT instead of to the server. The biggest hiccup was that I had the sensor connecting to my guest network, which is blocked from accessing my home network, where the Pi resides.

    ps, MQTT was a one-liner install... old examples show some very complicated maneuvers!

     

    -Nico

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • ntewinkel
    ntewinkel over 4 years ago in reply to neilk

    Hi Neil!

     

    I'm glad to see I'm not alone trying to do this kind of thing image

     

    I did also get MQTT installed and receiving data from one of my sensors - I had to make some relatively minor changes to have the sensor send via MQTT instead of to the server. The biggest hiccup was that I had the sensor connecting to my guest network, which is blocked from accessing my home network, where the Pi resides.

    ps, MQTT was a one-liner install... old examples show some very complicated maneuvers!

     

    -Nico

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • neilk
    neilk over 4 years ago in reply to ntewinkel

    Hi Nico

     

    I'll probably need some help, if previous efforts are anything to go by!!

     

    Neil

    • Cancel
    • Vote Up +1 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