From 32b10228351a20ff75da130920b7d2e49f29c7c6 Mon Sep 17 00:00:00 2001 From: Sean Rees <sean@erifax.org> Date: Sun, 7 Mar 2021 16:03:40 +0000 Subject: [PATCH] Add a note about Dyson's API change[1] and an option to workaround it [1] https://github.com/etheralm/libpurecool/issues/37 --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index 50878c6..1a3dce5 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,35 @@ the V1 model (reports VOC and Dust) and the V2 models (those that report PM2.5, PM10, NOx, and VOC). Other Dyson fans may work out of the box or with minor modifications. +## Help! It stopped working! + +_(Updated: 7th March 2021)_ + +Hi! If you use this and it's not working now (but it was before), you're likely +affected by etheralm/libpurecool#37. The long-and-short of it is that Dyson +changed their _unpublished_ online API, which broke `libpurecool` which we +rely on. You won't notice this breakage until you try to restart +prometheus-dyson. + +There is an _experimental_ fix in the libdyson branch. This begins a process +of switching this exporter over toto shenxn/libdyson (which should provide for +long-term stability against this type of problem). + +To give it a go (once you've checked out the most recent source): + +1. Build from the `libdyson` branch +1. Run the binary with `--create_device_cache`, follow the prompts + and add the generated configuration to your prometheus-dyson.ini. +1. Restart the service as normal. + +Rough set of steps: +``` +% git clone https://github.com/seanrees/prometheus-dyson.git prometheus-dyson +% cd prometheus-dyson +% git checkout libdyson +% bazel run :main -- --config=path-to-your-config.ini --create_device_cache +``` + ## Build ``` -- GitLab