Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite valid pricedata to influxdb on restart or button #48

Open
joe-ave opened this issue Jan 20, 2025 · 2 comments
Open

Rewrite valid pricedata to influxdb on restart or button #48

joe-ave opened this issue Jan 20, 2025 · 2 comments
Assignees

Comments

@joe-ave
Copy link

joe-ave commented Jan 20, 2025

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

@Olli69 Olli69 self-assigned this Jan 20, 2025
@Olli69
Copy link
Contributor

Olli69 commented Jan 21, 2025

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.

@joe-ave
Copy link
Author

joe-ave commented Jan 21, 2025

Hello Olli,

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

//Jonas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants