-
Notifications
You must be signed in to change notification settings - Fork 108
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
Add custom location for sunrise/sunset #162
Comments
Did you try to configure the location in the config file?
And yes, there seems to be an issue with the weather forecast. |
Hello FrankX0, yes I did. But there is a difference about nearly 30 minutes between Berlin and our location near Stuttgart... http://pythonhosted.org//astral/#cities is not working any more. But I was looking for the astral cities in the link above. TIA |
Hi Phil, Now I understand. The number of cities is indeed very limited. The best way IMO would be to be able to specify not only a location but also coordinates in the config file. Regards, |
Hi Phil, Can you try following modifications in your clock? Regards,
Change to: location = "Den Bosch", "Netherlands", 51.6978162,5.3036748, "Europe/Amsterdam"
Change to: import astral
Change to: self.astral_at_location = astral.Location(info = eval(config.get('plugin_' + self.name, 'location')))
|
Hi @FrankX0 looks promising: Nice approach! I think I find the time within the next weeks to look into the various issues/PRs/etc. ...including this topic... Best, |
Hey folks,
any idea to use a custom location in the sunrise-plugin? I want to use my own one, because Berlin is to fare away, as we are located in the south of germany.
I find out that web-page https://astral.readthedocs.io/en/latest/
But I'm not able to integrat that in Bernds Code :-/
Any help will be appreciated.
TIA
Phil
BTW: We have some problems with the weather forecast, too. It seems that there is no connection to weather_dot_com or yahoo? Any ideas?
The text was updated successfully, but these errors were encountered: