Ribbit-Network / ribbit-network-frog-hardware

The sensor for the world's largest crowdsourced network of open-source, low-cost, GHG Gas Detection Sensors.
https://www.ribbitnetwork.org/
MIT License
96 stars 26 forks source link

Add GPS Logging #10

Closed keenanjohnson closed 3 years ago

keenanjohnson commented 3 years ago

I've added an Adafruit Ultimate GPS Unit wired to a serial port on my Raspberry Pi.

IMG_8488

I started trying to run gpsd inside my balena container, but encountering some sort of error:

root@d14c957:/usr/src# gpsd -Nn /dev/ttyS0
gpsd:ERROR: unable to connect to the DBUS system bus
keenanjohnson commented 3 years ago

I was basing my GPS situation based on this project: https://github.com/misterpeee/balena-gps-ntpsecd

Probably I need to do something in a Docker compose file to expose dbus in the correct way to the container.

keenanjohnson commented 3 years ago

In b5743b011035432a76d5e2d62e9d4083a7c8f5a2 I added a second Docker container that contains the gpsd utility that connects to a GPS unit.

Here's a screenshot of gpsd running.

image

dtischler commented 3 years ago

👀

keenanjohnson commented 3 years ago

Now I just need to connect up the gpsd service to my influxDB logging, so that each CO2 measurement is associated with a physical location.

keenanjohnson commented 3 years ago

Logging is working in my local grafana!

image