Talk to station via USB

The Netatmo API is a set of webservices allowing developers and third parties to access Netatmo device's data.
Post Reply
nlohmann
Posts: 9
Joined: 22 Nov 2013, 23:57
Location: Rostock. Germany

Talk to station via USB

Post by nlohmann » 23 Nov 2013, 20:34

Hi there,

using lsusb on Linux, I see that the weather station identifies itself as a HID with two endpoints, one input (0x81) and one output (0x01).

On the input endpoint (0x81), I get outputs as follows, updated once a second:

array('B', [1, 0, 85, 4, 0, 56, 1, 116, 79, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])

This data seems not to change apart of the 8th entry counting up each second and the 9th entry counting down. Changes in temperature, internet connectivity, air pressure etc. are not reflected.

On the output endpoint (0x01), I realized that sending 0x00 makes the station reset. The log reads:

usb 1-1.2: USB disconnect, device number 39
usb 1-1.2: new full-speed USB device number 40 using dwc_otg
usb 1-1.2: New USB device found, idVendor=25da, idProduct=0001
usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.2: Product: Weather Station
usb 1-1.2: Manufacturer: Netatmo
usb 1-1.2: SerialNumber: 70:ee:50:02:42:6c
hid-generic 0003:25DA:0001.002B: hiddev0,hidraw0: USB HID v1.11 Device [Netatmo Weather Station] on usb-bcm2708_usb-1.2/input0

Then, the light flashes green and I get a push message that an on-demand measure has been made. This behavior is similar to pressing the station's button - just that the light is always green in this situation.

Does anyone have further information or documentation about this? Is it possible to read information via USB? Can the station be configured via USB? (I know of the configuration tools by Netatmo, but it would be great to access the station more programmatically).

All the best,
Niels.

Post Reply

Return to “Netatmo API”