Live data from Hacker News

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

github.com

91–100 of 124 posts

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

#91

Earlier quoted context omitted.

I'm having trouble recounciling that with the study that shows cognitive decline, can you explain your wife's thinking?

Maybe it means that if you are _always_ exposed to high CO2 your body adjusts, but if you are sporadically exposed it does not? Kind of like living in the mountains vs going there occasionally

>> adjusts

Only true if adjustment isn’t giving up higher functioning of the body for a less efficient metabolism.

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

#92
post #89

Earlier quoted context omitted.

What's particular about these sensors? I've been researching technologies to monitor plant growth and haven't yet looked into CO2 sensors, hence my asking. Do they come in an IC package?

They use optical measurement, are reasonable in pricing. Outputs are UART, PWM and analoge. They have pins with 2.54mm spacing if that helps you.

Would you use something else if you meant to solder something on a PCB for medium scale production?

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

#94

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.

https://www.co2meter.com/collections/sensors has a bunch of different ones, I usually look on Mouser also. I don't have a name of one currently. I've been using the particle.io platform with a particle device/LTE for sending out data and programming them.

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

#95
post #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?

Seems that both "official" SDK for esp8266 and its Arduino port support ipv6 out of the box: https://github.com/esp8266/Arduino/pull/5136.

esp8266-nonos-sdk/esp8266-rtos-sdk/esp8266-arduino uses lwip as tcp/ip stack, which supports ipv6.

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

#97

Why are there steps in the CO2 levels?

Since this is based on a reverse-engineered binary protocol and since the step sizes are reasonably close to 64 and 128, I'd guess it's a bug.

It looks like there's no need to reverse-engineer the protocol:

https://www.co2meter.com/products/co2mini-co2-indoor-air-qua...

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

#99
post #5

Whats wrong with this one? (it works with the same device) https://github.com/larsp/co2monitor

That looks good as well! I actually didn't know about that project. It wouldn't have worked on my specific case though since I wanted it connected to my Mac, that tool only works on Linux.

The Mac doesn't provide a device to read from? Because beyond that, it should be pretty similar (posix-ish and golang)?

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

#100
post #99

Earlier quoted context omitted.

That looks good as well! I actually didn't know about that project. It wouldn't have worked on my specific case though since I wanted it connected to my Mac, that tool only works on Linux.

The Mac doesn't provide a device to read from? Because beyond that, it should be pretty similar (posix-ish and golang)?

Yeah, you have to use IOKit, which hidapi wraps.
Post reply on HN