Live data from Hacker News

Show HN: I wanted to measure CO2 in my office, so I build a C++ WebServer/App

github.com

51–60 of 124 posts

Re: Show HN: I wanted to measure CO2 in my office, so I build a C++ WebServer/App

#51
I'm looking around for an affordable household CO2 measurement tool but they're all wildly expensive. Is this technology complicated and cannot be obtained for $30? They're all like $120+

Edit: I realised that this is a perfect item for public libraries to loan out. Expensive, only needed occasionally, easy to use, potential for significant positive public impact on becoming more informed and healthier.

If you're looking for a cause that's affordable, practical, and local, consider buying and donating one to your local library.

Re: Show HN: I wanted to measure CO2 in my office, so I build a C++ WebServer/App

#52

I would have just had the CO2 level read via a $8 I2C device connected to an Esp8266/Esp32 running Arduino. I would post the result to a web service in this fashion from the Esp8266: https://techtutorialsx.com/2016/07/21/esp8266-post-requests/ Then just setup a nice Graphana+Prometheus as a service, graphana.com is nice and can expose a Prometheus end point over basic http auth - easy to post to. Then you can setup a…

Totally true, but my soldering iron is in the basement, so ... ;)

Re: Show HN: I wanted to measure CO2 in my office, so I build a C++ WebServer/App

#53
post #38

Earlier quoted context omitted.

Fun fact: humans do not have oxygen levels detection, but do have CO2 levels detection. Your body would ring all kinds of the alarm bells if CO2 levels rise above the norm, even if there is enough oxygen.

Its not that I'm afraid to die here :) Its more about improving the quality of the air. And the body is pretty bad at recognizing higher than norm CO2 level unless it gets to life threatening levels. ( https://youtu.be/1Nh_vxpycEA?t=45 )

On top of everything else, try putting a plant in your room too. Works wonders for air quality and is fun to take care of.

Re: Show HN: I wanted to measure CO2 in my office, so I build a C++ WebServer/App

#54

No story behind the build, just a link to the git repo? yay

You can only put link + title on here. And the story is rather boring :) I wanted to measure it, I got a device from amazon, found a python script to read the data, the dependencies (pyhidapi) always sigfaulted, so I wrote my own :)

Why do you need a script for this? Isn't the device good enough at telling you the bare necessary information?

Still a cool script nonetheless, no hate.

Re: Show HN: I wanted to measure CO2 in my office, so I build a C++ WebServer/App

#55

I would have just had the CO2 level read via a $8 I2C device connected to an Esp8266/Esp32 running Arduino. I would post the result to a web service in this fashion from the Esp8266: https://techtutorialsx.com/2016/07/21/esp8266-post-requests/ Then just setup a nice Graphana+Prometheus as a service, graphana.com is nice and can expose a Prometheus end point over basic http auth - easy to post to. Then you can setup a…

Would you be able to share where you might get such a cheap CO2 sensor/the name of it? I've had trouble finding them for less than £60 in the UK and would like to set one up.

Re: Show HN: I wanted to measure CO2 in my office, so I build a C++ WebServer/App

#56
post #12

Anyone know other, possibly cheaper, devices besides https://www.co2meter.com/products/co2mini-co2-indoor-air-qua... that can display current CO2? I hoped there would be cheaper versions on Aliexpress, but no luck :(

MH-Z19 is a sensor on sale on Aliexpress for ~20 USD. It works with Arduino and ESP32

Re: Show HN: I wanted to measure CO2 in my office, so I build a C++ WebServer/App

#58
post #32
post #16

Earlier quoted context omitted.

> It sounds silly but it's scary how quickly levels rise when the windows are closed. It might be scary, but is it actually dangerous? It could just be that the levels shown, even if raised, are inconsequential. Basically wondering about the "Already changed my life" line. Are we all without one risk certain CO2 death every day, or is the parent overly worried over nothing (and opens windows without really a need for…

Higher ppm decreases cognitive function even at pretty low levels, so being alerted to open your window might improve your work / study. There's at least this study: https://ehp.niehs.nih.gov/doi/10.1289/ehp.1510037 And this video has the quote "At 1000ppm there is a 15% decrease in cognitive function". https://www.youtube.com/watch?v=1Nh_vxpycEA

"At 1000ppm there is a 15% decrease in cognitive function"

In a century or so we could be looking at similar CO2 levels in the atmosphere if we don’t significantly cut emissions.

Will our decencents be made stupider by higher CO2 levels? Or will they be able to adapt?

Re: Show HN: I wanted to measure CO2 in my office, so I build a C++ WebServer/App

#59

I would have just had the CO2 level read via a $8 I2C device connected to an Esp8266/Esp32 running Arduino. I would post the result to a web service in this fashion from the Esp8266: https://techtutorialsx.com/2016/07/21/esp8266-post-requests/ Then just setup a nice Graphana+Prometheus as a service, graphana.com is nice and can expose a Prometheus end point over basic http auth - easy to post to. Then you can setup a…

Slight aside, anyone know why all the supposedly iot-oriented small arduino devices are IPv4-only? Is everyone deploying them in some kind of NATs + port forwards / upnp system or tunneled overlay IPv4 network using external gateway devices?

Re: Show HN: I wanted to measure CO2 in my office, so I build a C++ WebServer/App

#60
post #8

Installed a CO2 monitor in my home two days ago. Already changed my life. It warns me when I need additional ventilation and even beeps if CO2 levels raise too high. It sounds silly but it's scary how quickly levels rise when the windows are closed.

For those who are wondering about 'changed my life':

Tom Scott uploaded a video about CO2 and its influences a few days ago. it's a good palce to start research:

https://youtu.be/1Nh_vxpycEA

Post reply on HN