arska-node icon indicating copy to clipboard operation
arska-node copied to clipboard

Rewrite valid pricedata to influxdb on restart or button

Open joe-ave opened this issue 1 year ago • 2 comments

Hello Olli,

it could sometimes be handy if after a restart of the arska-node it would rewrite the pricedata to influxdb, if it would contain bogus datapoints it would be easy corrected. Or a special action button that could rewrite priceinfo to influxdb.

Now you need to manualy correct your influxdb hour by hour if wrong priceinfo has been written by faulty priceinfo or such.

Today 2025-01-20 was in influxdb filled with -2147483.75, maybe after some restarts, it corrected in the arska-node sometime during the day but not in influxdb.

//Jonas

joe-ave avatar Jan 20 '25 21:01 joe-ave

Hi Jonas, Do you build Arska from source? If so, you could just comment one line in function update_prices_to_influx()and see if that helps.

     Serial.print("Last ts in the file equal one in the influxdb");
     /// return false;

After the change Arska should rewrite price data to influx after "Restart and clear cache" launched from Advanced settings. If that helps I could add it to the future builds.

Olli69 avatar Jan 21 '25 16:01 Olli69

Hello Olli,

yes I can build from source, it´s been a while since I did it, thanks for the tip!

//Jonas

joe-ave avatar Jan 21 '25 17:01 joe-ave