TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Rethinking temperature, sensors, and Raspberry Pi

39 pointsby mglukhovskyalmost 10 years ago

6 comments

BufordTJusticealmost 10 years ago
I feel like using RethinkDB, instead of something like SQLite (or if you absolutely insist on NoSQL, maybe LevelDB or BerkeleyDB) kind of seems like using a supertanker for a tugboat&#x27;s job. Especially if you&#x27;re going to write your temperature sensor logger in Python, and it&#x27;s just being used as an embedded application, SQLite really seems like one of the smarter choices you could make there. Maybe the point is to demo RethinkDB features, but wouldn&#x27;t it make sense for the Python script to also emit the status data and send notifications as well, without needing all those extra Node dependencies?<p>Also, maybe I&#x27;m just crazy, but man I can&#x27;t believe people are encouraging others to curl stuff from the internet right into a shell. Especially on Raspian where the default Pi user has NOPASSWD in sudoers, this seems like a bad practice that we shouldn&#x27;t encourage.
评论 #10104371 未加载
评论 #10111068 未加载
评论 #10104549 未加载
评论 #10111072 未加载
jbuzbeealmost 10 years ago
I went overboard with my Raspberry PI and temperature sensors a couple of years ago. I hooked a bunch of sensors up to old wiring in the house that a previous owner had used for a security system. And while I was at it, I hooked up an old crank-telephone so I could remotely ring the bells, play &quot;The Raspberries&quot; on the handset, etc. It&#x27;s not all operational anymore, but the DS1820b temperature sensors are. It&#x27;s surprising how sensitive they are. By watching a graph, you can see when the heater or AC runs, when someone takes a shower, when the garage door opens, when a car is in the garage, etc.<p><a href="http:&#x2F;&#x2F;buzbee.asuscomm.com:8100&#x2F;" rel="nofollow">http:&#x2F;&#x2F;buzbee.asuscomm.com:8100&#x2F;</a>
Daneel_almost 10 years ago
I have to say, I accomplished all this with a simple bash script in about 60 minutes or less. Using a sledgehammer like Rethink for something that can be easily handled with a text file and logrotate is just...overkill. I understand that it&#x27;s a rethink blog, but I completely finished the project in less time that it took him to compile the database.
dlau1almost 10 years ago
I recently set up a raspi to monitor my wine cellar temperatures. If you&#x27;re looking for a 3rd party solution, check out librato [1]. We use them at work and they&#x27;re really great. I hooked temperature readings up to librato and set up threshold alerts within a few min without ever having used their python api before.<p>[1] <a href="http:&#x2F;&#x2F;librato.com" rel="nofollow">http:&#x2F;&#x2F;librato.com</a> hardware guide I used: <a href="https:&#x2F;&#x2F;learn.adafruit.com&#x2F;dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging?view=all" rel="nofollow">https:&#x2F;&#x2F;learn.adafruit.com&#x2F;dht-humidity-sensing-on-raspberry...</a>
rhinoceraptoralmost 10 years ago
This brings up one annoying aspect of the Raspberry Pi, it&#x27;s pretty difficult to get GPIO access without root.<p>I built a temperature sensor for a server rack [1], and went with an ATMega328 and an ENC28J60 ethernet module, and it just serves JSON of the four DHT11 sensors connected to it.<p>[1] <a href="https:&#x2F;&#x2F;jacklew.is&#x2F;arduino-temp-sensor&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jacklew.is&#x2F;arduino-temp-sensor&#x2F;</a>
tdicolaalmost 10 years ago
Cool project, and great write up of the experience!