7 ms·
Arduino-Based Home Weather Station on the Elastic Stack
- uberneo 10y agoNice weekend project -- How often you are sending data to Elasticsearch and how does Kibana is polling the Elastic? Another good combination would be Influxdb + chronograf https://influxdata.com/time-series-platform/chronograf/ https://influxdata.com/time-series-platform/chronograf/
- MasterScrat 10y agoOr rather InfluxDB + Grafana. 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.
- coredog64 10y agoElastic.co is trying to get into that business. A time series datapoint is just a very small document, and they're churning out agents that collect and ship it. 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).
- izak30 10y ago(Hi! I'm the original author!) I'm able to get about 200ms resolution at both ends without any trouble.
- whatwasmypwd 10y agoShould you rely on es as your primary db?
- sbarre 10y agoIt depends on what you're doing?
- bryanrasmussen 10y agoWell my rule is basically - if search functionality is the most essential to your platform and the only other functionality you need otherwise is basic key-value stuff (look up items by user id, stuff like that) then yes, and handle performance issues with your preferred caching solution - redis in my case. 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.
- swsieber 10y agoNo, not for writing. It's never safe. It will eventually eat your data. 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-divergence https://aphyr.com/posts/332-jepsen-crate-0-54-9-version-dive... (This has links to other good sources, right in the beginning). https://news.ycombinator.com/item?id=11325316 https://news.ycombinator.com/item?id=11325316 https://news.ycombinator.com/item?id=11362069 https://news.ycombinator.com/item?id=11362069
- bryanrasmussen 10y agoyeah, I agree if your requirements is data consistency then not Elasticsearch, however I think from the Jepsen tests I don't think there has been any NoSQL db that performs really good on that? ( I seem to remember there was one that did bad on the first test but improved a lot with the second - SOLR, CouchDB?)
- 10y ago
- deleted 10y ago[deleted]
- deleted 10y ago[deleted]
- cstuder 10y agoThe BMP180 temperature sensor sports a +-2°C temperature accuracy. 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?
- k33l0r 10y agoAdafruit sells the MCP9808 (±0.25°C), not quite 0.1°C but closer… https://www.adafruit.com/product/1782 https://www.adafruit.com/product/1782
- StavrosK 10y agoWhy do people buy stuff from Adafruit when they can get them from eBay for a tenth of the price? Shipping speed?
- TheBeardKing 10y agoBecause they write a lot of software and tutorials on multiple platforms for the devices they sell and people are willing to pay a little more to support them.
- StavrosK 10y ago...how have I not noticed the "learn" link before? Thanks.
- sokoloff 10y agoBecause Adafruit makes it easy to find and usually has some amount of tutorial/howto easily findable from the product pages. Not everyone knows that these parts can be sourced more cheaply; not everyone cares. Plus, there's some higher assurance that you're going to get what you pay for from Adafruit. 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.)
- uberneo 10y agoIts a pure Time Series data with sensor is recording approx every 1 sec. Which protocol you are using to send this data to server , as posting every 1 sec oever TCP for a sensor doesn't seems a good idea. For any IoT which protocol you guys prefer to push data to server
- izak30 10y agoIt all depends what you're doing. For a weather station you could do very well and have very low power at one reading per minute. HTTP is great for that. Also your approximation is off. I'm under 200ms (closer to 110) per insert, end to end. That's before any optimizations.
- linker3000 10y agoIt seems reasonable to point out that there is no 'Arduino' involved here - it's an ESP8266-based board programmed using the Arduino IDE with the ESP-8266 board support package installed.