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

scraping an API endpoint that requires a timeslot #342

Open
stefangweichinger opened this issue Nov 11, 2024 · 1 comment
Open

scraping an API endpoint that requires a timeslot #342

stefangweichinger opened this issue Nov 11, 2024 · 1 comment

Comments

@stefangweichinger
Copy link

forgive me if I ask an FAQ here. I browsed the README and the issues for an example ... so far I couldn't find something helpful.

I need to scrape data from an URL like this:

https://monitoringapi.solaredge.com/site/10234567/power.json?startTime=2024-11-11%2011:00:00&endTime=2024-11-11%2014:35:00&api_key=<>

That API doesn't give me one current value but only lists of values for a given timeframe.

How I can I configure the json exporter and/or prometheus to only fetch the current value or only the last few values?

thanks for any pointers!

link to their API for reference, if someone is very interested ;-) Their call "URL: /site/{siteId}/currentPowerFlow" gives empty response.

@stefangweichinger
Copy link
Author

found a "currentPower" value in another API call. So maybe I don't need the requested functionality anymore ... although I'd like to learn that anyway ;-)

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

1 participant