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 4023 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
  • fmilburn
    fmilburn over 4 years ago

    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

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

    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 larger.

    image

    image

     

    Until they get here, my existing ESP-8266 based boards should do everything I need in the meantime.

     

    Cheers,

    -Nico

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

    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 larger.

    image

    image

     

    Until they get here, my existing ESP-8266 based boards should do everything I need in the meantime.

     

    Cheers,

    -Nico

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

    Thanks!  I have used the D1 Mini and liked it also.  How do you usually power them?  I have been using 18650 batteries in a carrier with a charger and boost converter but they are pretty bulky. 

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

    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 I was using dual-port USB chargers, where the other one powers a USB-hand-warmer to keep the nectar from freezing. The heaters draw too much power to make batteries possible, I think.

     

    I do have some small flat kind of lithium packs that I want to try. I've got at least one Adafruit ESP board that has support built-in for that. I was hoping to couple it with a solar panel. But then I can no longer be sloppy with my code image  I'd have to at the very least make it deep sleep a lot more.

     

    The other thought was to get an iPhone backup charging pack - some come with a solar panel built-in.

     

    Cheers,

    -Nico

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

    fmilburn  wrote:

     

    . ........ How do you usually power them?  I have been using 18650 batteries in a carrier with a charger and boost converter but they are pretty bulky. 

    Hi Frank,

     

    I started off powering my d1 minis using 18650 and a wemos charger unit that has the same footprint as as the d1 mini.

     

    I've now got mains power in my greenhouse, so so like Nico, I use a mains powered phone charger instead

     

    Neil

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

    ntewinkel  wrote:

     

    The other thought was to get an iPhone backup charging pack - some come with a solar panel built-in.

     

    Hi Nico,

     

    Beware of using mobile phone backup charging packs to power projects - they tend to cut out unless you are drawing more than a certain minimum current.

     

    Several posts have made reference to this issue, including this one by jw0752

    On Using a USB Battery for a Portable Project Power Supply

     

     

    Neil

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

    Are the heaters controlled to maintain a temperature?

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