Giter Site home page Giter Site logo

Dark Sky API should be replaced about gw2pvo HOT 13 OPEN

markruys avatar markruys commented on August 28, 2024
Dark Sky API should be replaced

from gw2pvo.

Comments (13)

sam-utr avatar sam-utr commented on August 28, 2024 1

Didnt try the netatmo branch yet but another option could be openweather. See https://openweathermap.org/darksky-openweather

Will also try out the new feature branch in the meanwhile.

from gw2pvo.

eNeRGy164 avatar eNeRGy164 commented on August 28, 2024 1

Why is a weather API needed for gw2pvo needed in the first place? PVOutput already supports this by itself.
Just create an API-key at OpenWeatherMap and fill it in at the PVOutput system settings.

Because this was built a year before PVOutput started supporting OpenWeatherMap?

from gw2pvo.

eNeRGy164 avatar eNeRGy164 commented on August 28, 2024

I was already afraid this topic would come up. :)

I really like the Dark Sky API, but that's probably also the reason why Apple bought them.

Does anyone have suggestions for a replacement API?

from gw2pvo.

franksnl avatar franksnl commented on August 28, 2024

I guess most accurate will be your own or a nearby Netatmo weatherstation https://dev.netatmo.com/apidocumentation/weather

from gw2pvo.

markruys avatar markruys commented on August 28, 2024

Netatmo looks promising. You need to create a free account and an app. Then we can use https://pypi.org/project/netatmo/ to query a weather station. I don't know yet how you can get such an id nearby your PV.

from gw2pvo.

franksnl avatar franksnl commented on August 28, 2024

https://dev.netatmo.com/apidocumentation/weather#getpublicdata
The response based on square lat/lon of your area contains nearby id's.

Looks like function getmeasure required both device_id and module_id.

from gw2pvo.

markruys avatar markruys commented on August 28, 2024

Yes, I was thinking in the same direction. Pick a square area, enlarge it until you find weather stations and then pick the closest. With a command line option to overrule this selection mechanism and use a fixed device id.

I don't think we need to set a module id, we get all sensor data and filter out the temperature.

BTW, there are a few more Python packages implementing the Netamo API, so we should pick the best/most mature.

from gw2pvo.

markruys avatar markruys commented on August 28, 2024

I've create a feature branch with a first attempt: https://github.com/markruys/gw2pvo/tree/feature/netatmo. It supports only public Netamo weather stations, so it won't work to obtain historical temperature readings. Please let me know how it works for you.

from gw2pvo.

franksnl avatar franksnl commented on August 28, 2024

I've tested the feature branch and works like expected! Leaving device-id empty uses a public weatherstation close to my location. Looks like my own device is excluded from the getpublicdata response. Using the MAC address at device-id works for using my own device.

from gw2pvo.

markruys avatar markruys commented on August 28, 2024

But I've merged the Netatmo into trunk and released it as 1.3.5. You can try it like:

sudo pip3 install gw2pvo==1.3.5

from gw2pvo.

willlllzy avatar willlllzy commented on August 28, 2024

I just added Netatmo to the config, it looks like the keys are correct and connection established to the API however the log is showing error and it doesn't upload to PVoutput:

INFO Normal, 794.0 W now, 21.9 kWh today, 83.2 kWh all time, 243.7 V grid, 617.8 V PV
ERROR 'city'

Edit: all goods, extracted the device id from the log and added to config files. Works now!

from gw2pvo.

L-four avatar L-four commented on August 28, 2024

My inverter reports it's own temperature I have been logging that: L-four@74d4640

from gw2pvo.

ThinkPadNL avatar ThinkPadNL commented on August 28, 2024

Why is a weather API needed for gw2pvo needed in the first place? PVOutput already supports this by itself.
Just create an API-key at OpenWeatherMap and fill it in at the PVOutput system settings.

from gw2pvo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.