Arduino-Based Home Weather Station on the Elastic Stack
elastic.co
elastic.co
That's too much for my sensibilities.
The DHT22's accuracy is +-0.5°.
Does anybody know of more accurate sensors (+-0.1°) suitable for usage wit the ESP8266?
Precision (stability of measurements) is what you really care about. That said, the BMP180 isn't so great at that either. The temperature sensor is I think a secondary function used to improve the pressure estimate. It doesn't give very stable temperature estimates in my experience.
If you want a direct replacement for the DHT22 (and I did, god I hate that module for a variety of reasons) the HTU21D-F is great. The BME280 is also a big improvement over the BMP180. If you just care about temperature, the DS18B20 is the way to go on performance and price, while if you really want high accuracy and precision then the MCP9808 is the way to go. I use the MCP9808 as my reference to calibrate against, with a mixture of the other three in various applications.
* DS18B20 - One-wire temperature sensor that is cheap
* Generic PIR (motion) sensors - you can find simple motion sensor boards for cheap and they are pretty fun.
* Capacitive sensors - you can make a touch sensor/button out of anything conductive that only uses a single wire (not even ground, just one wire)
* Ultrasonic distance detectors
* Hall effect sensors - detect presence of a magnet, especially useful with stepper motors
* BME280 - temperature/barometric pressure/humidity, one of the best all around sensors for weather monitoring as it's all on one chip. Also supports both i2c and SPI. Note it's BME280, the BMP280 doesn't support humidity.
A good bet is to buy a kit that gives you a random bunch of sensors to play with. You can find them cheap.
For that matter, why buy from Ebay when you can often get them cheaper from Aliexpress? (Or even cheaper from Taobao in a lot of cases. For me, Taobao is too hard to access as a native English speaker, so Aliexpress is where most of my cheap components come from.)
When you need 10, then its time to look at ebay.
Also, Limor is a force of nature. You know how to use half of that random chinese stuff you find on ebay because Adafruit or Sparkfun went there first and left libraries in their wake.
I buy their stuff because I think beginners should buy their stuff and I want to see more companies like them exist.
When you are going in for a hobby project, you tend to go towards a more 'established' and 'complete' solution including software than having to rely solely on your expertise.
When I need to order reels and reels of LED strips? Sure, if I have the time I will hit up Aliexpress or something like that because I can get a few 5m spools for the price of half a spool from Ada.
But if I need a part that's $5 on eBay/Ali and $10 on Adafruit, I'm just as likely to spend the extra money for fast shipping and support even though the relative markup is high. It's kinda like how I'd still run out to Best Buy or Radio Shack on the rare occasion that I just wanted some small connector or part that day rather than waiting 2-5 days for Amazon to ship it to me for less.
I agree that a lot of stuff is pretty overpriced, but they are selling premium quality on a lot of their stuff, plus reliable supply chain and lots of support.
Do you tribute the artist or the guy selling the artist's bootleg CDs in the alley?
edit: if you got time buy on Aliexpress/ebay, ada charges 4-5X for most stuff
I have a few DHT22s and find them to be a little bit temperamental (humidity drifts, sometimes won't return a reading) but I've been happier with with BME280 (though I've always used the breakout versions[1] as it looks like a bitch to hand solder).
It's an I2C parts and there's support for it in NodeMCU and Arduino so it's easy enough to get started with.
[0]https://ae-bst.resource.bosch.com/media/_tech/media/datashee...
[1]http://www.aliexpress.com/item/1PCS-Breakout-Temperature-Hum...
It's been a few months since I last thought hard about ours (which we use in a different configuration), but 100 mK ought to be straightforward with a Protovoltaics RTD shield and a three or four-wire PT100 or PT1000.
Protovoltaics has a well-documented API and is quite responsive to detailed engineering questions.
Alternatively, one can calibrate a sensor against a trusted standard. Once that's complete, they tend to be fairly stable. LM35s and AD590s will have low-enough noise/good-enough stability for your spec once calibrated.
Before you embark on such a journey, be certain you actually want 100 mK absolute. It's possible to go through life happily without absolute calibrations in most cases.
But you're right: I'm not entirey sure if I need this kind of precision.
[1] https://www.sensirion.com/products/humidity-sensors/digital-...
http://uk.farnell.com/ist-innovative-sensor-technology/tsic-...
Another good combination would be Influxdb + chronograf
Grafana is more mature and Chronograf is closed-source, I don't see any reason to go with it.
But yes if you want to display time series there are better options than Kibana, which has a focus on searchable documents.
I'm not entirely sold on the idea, as their examples for turning metrics into actionable insights are a lot more complex than they are for Grafana (or similar).
Also your approximation is off. I'm under 200ms (closer to 110) per insert, end to end. That's before any optimizations.
If you need something where money needs to be maintained then you need the security of relational database.
If search is only of secondary importance, use whatever database your prefer to work with and then index that.
But I also have the opinion that as time goes on search becomes a primary functionality of any platform.
Does that answer your question at all?
But for reading it's fine. So by all means, you can populate from a main data store that you never otherwise touch.
Then again, if you're running just a single instance on really small data... What could go wrong?
Edit: Again, small stuff, locally, it's probably fine. But ElasticSearch wasn't really built to be a primary data store.
Sources:
https://aphyr.com/posts/332-jepsen-crate-0-54-9-version-dive... (This has links to other good sources, right in the beginning).
I need to run a Jepsen test on my brain.