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 Temperature logging update
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ntewinkel
  • Date Created: 5 Jun 2021 2:23 AM Date Created
  • Views 619 views
  • Likes 7 likes
  • Comments 2 comments
  • mqtt
  • wemos d1 mini
  • temperature
  • logging
  • raspberry pi
  • nodered
  • influxdb
  • mosquitto
Related
Recommended

Temperature logging update

ntewinkel
ntewinkel
5 Jun 2021

I think I now have my Raspberry Pi powered temperature logger working to where I wanted it to be.

 

image

 

My hand-built temperature logging had a chart that tracked sensor temperatures over time, so that was the least I wanted to replicate using a Raspberry Pi as the server.

That home-built version relied on server hosting I already had, but I put it together quickly and simply used a text file to store json style data. This required a manual reset once in a while as the file got too big. It also meant that any updates required a fair bit of coding effort.

 

The new setup uses a Raspberry Pi 3B+ with a 64GB "fast" SD card, with NodeRed, Mosquitto, and InfluxDB. The Wemos D1 Mini was programmed with Arduino, using an mqtt library.

I might one day upgrade it to use a Raspberry Pi 4 with an SSD drive, but we'll see how well this setup behaves over time. So far it's fast enough, so I'm just hoping for it to also be reliable over time - it's not mission critical so I'm not too worried.

 

I also set up Grafana, and it allows for building nice flexible UI, but it requires a login to see anything. So I most likely will not be using that for day-to-day viewing. Instead, I'm using the UI nodes that came with NodeRed. It took some fiddling to get the data format correct for the temperature line chart, but otherwise it was all fairly easy.

 

For the winter I'll likely add another few sensors (for the hummingbird feeders), but that can be as easy as just replicating the existing flow and changing sensor IDs. Or I might try to combine the histories into one chart... that will depend on how courageous I'm feeling that day image

I guess I should back up that SD card now... just in case something goes squirrelly later.

 

The whole setup wasn't too bad actually. NodeRed was mostly a one-liner, and mosquitto and infuxDB were pretty painless to install too - I followed a few tutorials on YouTube for those. Make sure you get recent tutorials though, as the procedures seem to have changed a fair bit even just over the last few years.

 

Best,

-Nico

  • Sign in to reply

Top Comments

  • DAB
    DAB over 4 years ago +1
    Nice update Nico. It will be interesting to see what the data records. DAB
  • neilk
    neilk over 4 years ago

    Hi Nico

     

    Looks great     image

     

    Neil

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 4 years ago

    Nice update Nico.

     

    It will be interesting to see what the data records.

     

    DAB

    • 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