fasmide / deflux

deconz sensors to influxdb
MIT License
21 stars 9 forks source link

updated import for Influxdb client #1

Closed runger1101001 closed 5 years ago

runger1101001 commented 5 years ago

The Influxdb repo has been rearranged, the client has moved. This update corrects to the new location.

fasmide commented 5 years ago

I haven't noticed - Thanks a lot :+1:

Is there a less obsolete client we should be using instead? :thinking:

runger1101001 commented 5 years ago

Hi Kristian,

You’re welcome, no problem. Thanks a lot for sharing your code on GitHub!

I can’t suggest a better client, I’m new to both InfluxDB and go… sorry!

I guess I have the same use case as you do, I bought a bunch of Zigbee sensors, and now I want to see their values over time. I’ve got Grafana set up, see screenshot…

I’m looking into the code, and learning some go along the way :-) My aim is to make it run stable for long periods of time - I have 2 problems:

  1. I clearly have some other sensor types (maybe motion) that are not recognized, causing a nil return value somewhere and a segfault. So I modified the code to ignore sensor parsing errors and keep going.
  2. That isn’t working perfectly yet, because when the websocket connection closes (don’t know why, but happened this morning just after 8am) it does not stop trying to read from it - so I have some work to do there.

My aim is to make it keep running by ignoring non-fatal errors, and reconnecting automatically to both the deconz websocket and Influxdb as needed.

I’ll send you another pull request if I ever get that far…

Regards from Vienna,

Richard

On Mar 19, 2019, at 7:32 PM, Kristian Mide notifications@github.com wrote:

I haven't noticed - Thanks a lot 👍

Is there a less obsolete client we should be using instead? 🤔

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fasmide/deflux/pull/1#issuecomment-474515400, or mute the thread https://github.com/notifications/unsubscribe-auth/AG9-1NnTH-A8F9efTH4WD1XOGPft5t8Mks5vYS0igaJpZM4b8Pk6.