Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
prometheus-dyson
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
prometheus-dyson
Commits
32b10228
Commit
32b10228
authored
4 years ago
by
Sean Rees
Browse files
Options
Downloads
Patches
Plain Diff
Add a note about Dyson's API change[1] and an option to workaround it
[1]
https://github.com/etheralm/libpurecool/issues/37
parent
557e5e66
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+29
-0
29 additions, 0 deletions
README.md
with
29 additions
and
0 deletions
README.md
+
29
−
0
View file @
32b10228
...
@@ -6,6 +6,35 @@ the V1 model (reports VOC and Dust) and the V2 models (those that report
...
@@ -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
PM2.5, PM10, NOx, and VOC). Other Dyson fans may work out of the box or with
minor modifications.
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
## Build
```
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment