UedaTakeyuki / mh-z19

Read CO2 concentration from mh-z19 sensor on the Raspberry Pi & handle it. Detect Raspberry Pi model automatically and read the value from an appropriate serial device.
MIT License
185 stars 37 forks source link

add co2valueonly switch fixes #39 #40

Closed jonesthefox closed 2 years ago

jonesthefox commented 2 years ago

In my use case I don't want to parse json, and was too lazy to transform the returned json string from the script :) So i added the co2valueonly switch. It does what it says and returns just a number, nothing more.