Looking for guidance: Addon for TFA Dostmann CO2 Monitor

I’m looking for someone who can help me write my first add-on for the Mozilla IoT gateway. My preferred programming language is NodeJS. I’m familiar with the Web of Things API. My questions will be mainly around gateway add-ons (e.g. how to test them on my laptop and Raspberry Pi) and reading the USB device (possibly requiring udev rules).

The device I’d like to support is the TFA Dostmann CO2 Monitor. It has a USB interface reporting a room temperature and Carbon dioxide level every 5 seconds.

Ideally, we could jump on a call for you to explain me add-ons or help to get the the USB interface working in NodeJS without the need to run scripts as root.
If someone in Berlin has the time for this, I’d be happy to meet up at c-base or Mozilla’s community space.

EDIT: I’m using the following NPM packages to learn how others communicate with the device.

Here are some good resources:

In general, the easiest thing to do is to start from an existing add-on that somewhat matches your target device and modify it to suit your needs.

In this case, it might make sense to look at something like the serial-adapter or gpio-adapter.

1 Like