tkurki / signalk-to-influxdb

Signal K Node server plugin to write Signal K data to InfluxDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot write to telegraf

macr023 opened this issue · comments

I could of made a mistake on my end, but after losing my SD card on my pi running openplotter, I reinstalled to the latest version. I can use signalk-to-influxdb to write directly to my influxdb instances, however I had telegraf used to buffer the data. I am getting these errors now, I tried downgrading influx and telegraf with no avail.

Error:
May 02 21:37:54 signalk-to-influxdb:Error: node-influx expected the results length to equal 1, but it was 0. Please report this here: https://git.io/influx-err
May 02 21:37:54 Error: node-influx expected the results length to equal 1, but it was 0. Please report this here: https://git.io/influx-err at Object.parseSingle (/home/pi/.signalk/node_modules/influx/lib/src/results.js:128:15) at /home/pi/.signalk/node_modules/influx/lib/src/index.js:303:38 at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5)

I don’t use telegraf so can’t really offer any advice here.

This used to work with my previous install of openplotter, is there a way to downgrade signalk-to-influxdb plugin ?

In $HOME/.signalk npm install —save signalk-to-influxdb@version but I very much doubt that is the issue. See https://www.npmjs.com/package/signalk-to-influxdb?activeTab=versions

Thanks, I have instead redirected signalk-to-influxdb to the local influxdb on the pi, and from there I setup a subscription to output to the local telegraf which then can buffer data for days if need be and telegraf will forward to my home instance via VPN. The point is to keep local on boat for 30 days and at home unlimited. But since the connection to home is on and off I need a buffering system. I recall in my previous install using telgraf that replicated data stream to local influx and remote influx. Either way this works. Thanks!

Telegram hesabıma giriş yapamıyorum, çıkış yaptım ve çip hasar görmüş, hesabıma tekrar nasıl giriş yapabilirim?