Skip to content

CLI tool to get sensor values (CO2, humidity, and temperature) from UD-CO2S

License

Notifications You must be signed in to change notification settings

mu373/co2-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

co2monitor

About

Get sensor values (CO2, humidity, and temperature) from UD-CO2S. The source code currently assumes that the device is available as /dev/tty.usbmodemXXXX.

Run

# Build
go build co2monitor.go
# Run
./co2monitor
# To stop, press ctrl-c

Outputs

$ ./co2monitor
{
  "co2": 699,
  "hum": 46.7,
  "temp": 30.8
}
{
  "co2": 699,
  "hum": 46.7,
  "temp": 30.8
}
{
  "co2": 699,
  "hum": 46.6,
  "temp": 30.7
}

About

CLI tool to get sensor values (CO2, humidity, and temperature) from UD-CO2S

Topics

Resources

License

Stars

Watchers

Forks

Languages