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

Sunrise/sunset times cause console to crash #60

Open
miner90027 opened this issue Jun 7, 2022 · 9 comments
Open

Sunrise/sunset times cause console to crash #60

miner90027 opened this issue Jun 7, 2022 · 9 comments

Comments

@miner90027
Copy link

As the name implies, the console crashes immediately upon starting. With auto-start enabled, the console attempts to start but immediately closes. Using the start command results in the following output shown below.

image

Fresh install of OS & console did not resolve the issue. The recommended file permissions change listed here did not work: https://community.weatherflow.com/t/weatherflow-piconsole/1933/2549

Unknow as to when the issue started, just suddenly stopped working. Ruled out the possibility of auto-update script causing the issue when fresh install resulted in the same issue.
Unknown how to reproduce.

Hardware/OS/Version:

  • OS: Raspberry Pi OS Bullseye v.11
  • Hardware: Pi 4 Model B Rev 1.5
  • Console Version: v22.5.1
@peted-davis
Copy link
Owner

Thanks for the bug report. What is the latitude of your station? Are you particularly far north and therefore not seeing a sunset at the moment?

@miner90027
Copy link
Author

The latitude of the station is 61.56555 roughly Wasilla, AK. About this time of year the sun never fully sets, rather it stays at a dusk/dawn light level.

@peted-davis
Copy link
Owner

Ok, that's the issue. I will need to edit the code so it can handle locations where the sun does not set (or rise) for a period of the year. This may take a little time, so I will have a look into quick workarounds to get you up and running again asap. Bear with me!

@miner90027
Copy link
Author

Thanks. It works great during the winter when there is very little sun.

@peted-davis
Copy link
Owner

If you comment out lines 439 and 443 of main.py the console should start, just without the solar information. You should be able to use the console in this way until a roll out an update to fix the bug

@miner90027
Copy link
Author

Alright, that temp workaround works.

@peted-davis peted-davis changed the title Console crashes on start Sunrise/sunset times cause console to crash Aug 8, 2022
@Striken5
Copy link

Is there an update on this bug?
quickfix works, but want it to work the right way

@peted-davis
Copy link
Owner

I'm still working on this, unfortunately. It has turned into a much bigger re-write of the code as it was never originally designed to cope with locations where the sun never rises or sets (my fault, I know!).

@Striken5
Copy link

Striken5 commented Oct 6, 2022

I'm still working on this, unfortunately. It has turned into a much bigger re-write of the code as it was never originally designed to cope with locations where the sun never rises or sets (my fault, I know!).

Perfect :)
The error does not only apply to sunrise/sunset. but also moonrise/moonset. if this is two different coding in the program

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

3 participants