fixje / deflux Goto Github PK
View Code? Open in Web Editor NEWThis project forked from fasmide/deflux
Write deCONZ sensor measurements to InfluxDB
License: MIT License
This project forked from fasmide/deflux
Write deCONZ sensor measurements to InfluxDB
License: MIT License
Dear deflux team,
I have installed deflux on my RaspberrPi4 running on Raspbian (Bullseye).
When I try to acquire an API key or retrieve data from the websocket (after manually retrieving the API key using POSTMAN), deflux always reports an error:
time=2024-06-10T12:39:04.022+02:00 level=ERROR msg="Failed to fetch sensors: %s" !BADKEY="unable to decode deCONZ /sensors response: invalid character '<' looking for beginning of value"
or
time=2024-06-10T12:36:37.184+02:00 level=ERROR msg="Could not create websocket reader: %s" !BADKEY="unable to populate sensor cache: unable to decode deCONZ /sensors response: invalid character '<' looking for beginning of value"
My config files looks like:
deconz:
addr: http://192.168.3.118:80/`
apikey: "[snip]"
wsaddr: "ws://192.168.3.118:443"
influxdb:
url: http://localhost:8086
token: [snip]
org: CHI
bucket: zigbee
fillvalues:
enabled: false
initialfill: true
fillinterval: 30m0s
lastseentimeout: 2h0m0s
(the port ":80" worked for the API key generation)
Go reports
go version go1.22.4 linux/arm64
Is this a configuration mistake on my side or more an issue in deflux?
It would be nice if I could specify the config file via -config
parameter.
Would make it much easier to run it as cronjob (/home/deflux/go/bin/deflux -1 -config /home/deflux/deflux.yml
)
...or start it as daemon via daemon -fr /home/deflux/go/bin/deflux -config /home/deflux/deflux.yml
(on FreeBSD)
without writing to /etc/.
Add another field in the database for each measurement:
age_secs
lastupdated
field of the sensor stateThis allows more specific queries, especially to detect possibly outdated values inserted with the -1
mode.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.