c8488

Crates.ioc8488
lib.rsc8488
version0.1.1
sourcesrc
created_at2022-10-19 12:18:22.259945
updated_at2023-04-15 12:23:50.070089
descriptionPC weather station (Bresser 5-in-1, 6-in-1 PC and other CCLEL C8488 clones) to Influxdb logger
homepagehttps://github.com/jordens/c8488
repositoryhttps://github.com/jordens/c8488.git
max_upload_size
id691659
size23,723
Robert Jördens (jordens)

documentation

https://docs.rs/c8488

README

Minimal PC weather station to influxdb bridge

Hardware

  • Bresser 5-in-1 PC (7002571)
  • CCLEL C8488 clones
  • VID=1941 PID=8021

Very likely also:

  • Youshiko YC9388
  • Bresser PC 6 in 1
  • Garni 935PC
  • Ventus W835

Original protocol deciphering work from weewx-ws6in1 with additions and simplifications.

Mechanism

  • Uses hidraw kernel driver to access the weather station (load that module and ensure it binds the device, also ensure RW access to the respective hidraw character device node)
  • Does not need libusb or hidapi
  • Configures time and date so that rain quantity reset time is correct
  • Optionally exports reports receveived to influxdb line protocol and sends via UDP

Compile

E.g. for openwrt on mips architectures:

  • Install cross
  • Run cross +nightly build --release --target mips-unknown-linux-musl -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort
  • Get a small-ish (~ 100 kB) binary
Commit count: 16

cargo fmt