richardlevy / solis-cloud-scraper

Node script to scrape daily solar stats from Solis Cloud website and expose data locally via an easily accessible endpoint.
5 stars 3 forks source link

Strip units and return numbers where possible #2

Closed yetkinergun closed 1 year ago

yetkinergun commented 1 year ago

First of all, thanks for the great work on the scraper 👍

As per the limitations section in the readme, the app is returning strings with values and units. What do you think about stripping the units and returning numbers where possible? I'll be piping this to openhab, influxdb and eventually grafana, and values like "14.3kWh" are not easy to store / visualise.

Happy to make a PR if you'd like!

richardlevy commented 1 year ago

Hi. V2 API endpoint added with typed data.

Let me know how it works for you.

yetkinergun commented 1 year ago

Thank you!