top | item 33774735

(no title)

akoutmos | 3 years ago

Hey there! My co-authors and I actually wrote a book on this topic earlier this year. It walks you though setting up a weather station with Elixir and Nerves using a Raspberry Pi and the following sensors:

- VEML6030 light sensor - BME680 environmental sensor - SGP30 air quality sensor

After you set up the hardware side of things, you put together a very simple Elixir Phoenix REST API and persist the sensor data into Postgres (with the TimescaleDB extension).

And to wrap up the book, you learn how to create Grafana dashboards to visualize all your time-series data.

Everything is meant to be set up on your LAN and everything can be run either natively or in Docker (there is a Docker compose file in the repo).

Hope that helps!

GitHub Repo: https://github.com/akoutmos/nerves_weather_station Book: https://pragprog.com/titles/passweather/build-a-weather-stat...

discuss

order

Terretta|3 years ago

Since OP mentioned not wanting to DIY, if people are looking for weather system with incredibly rich API and no moving parts (no Raspberry PIs either), this system is fantastic for people without workshop build time:

https://weatherflow.com/tempest-weather-system/

akoutmos|3 years ago

To clarify, the OP said: "I have neither time nor workshop space to solder and assemble anything more trivial than "plug a sensor into an ESP32 and screw both into a box"."

The book is very much "plug in a sensor" style as everything is connected via Qwiic cables.

shkkmo|3 years ago

That looks like it doesn't have any local-first functionality? Their API documentation only talks about how to retrieve data from their server, even if you are just trying to get the data from your own station.

rngname22|3 years ago

Confused here, isn't 'indoor air quality' primarily about CO2 levels, particulate matter, VOCs, etc.? I don't see any of that in there.

anxrn|3 years ago

This looks good, but this is an outdoor weather station. OP is asking for an indoor air quality monitory.

Havoc|3 years ago

Have you actually gotten any reliable co2 data out of the bme680?

Even with the Bosch library and their calibration the values seem rather odd at times

Youden|3 years ago

It's not capable of CO2 measurement, it only estimates CO2 levels based on measurements of VOCs. These estimated readings are garbage and have close to zero correlation with CO2 levels.

bsder|3 years ago

Thank you for asking this question because all of my experience so far with "environmental sensors" that aren't laboratory grade has been that they are absolute garbage and only barely correlated to anything.

How are companies like Bosch allowed to pass this crap off as functional? They don't meet even basic fitness for purpose criteria.

akoutmos|3 years ago

When developing the book, I didn't have any additional meters or sensors to cross reference measurements with so I can't comment on the accuracy unfortunately. But I did notice that the changes in measurements made sense when the environment changed. I.e when I would exhale on the sensor, the measurement would rise and fall.

Another example was when I opened my window in my office. CO2 immediately dropped off (15:42 timestamp): https://twitter.com/akoutmos/status/1443233937015418891/phot...

gsich|3 years ago

Yeah, it's only a propietary approximation.