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

Not reaching sunset api causes crash #4

Open
starmaid opened this issue Jul 7, 2024 · 0 comments
Open

Not reaching sunset api causes crash #4

starmaid opened this issue Jul 7, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@starmaid
Copy link
Owner

starmaid commented Jul 7, 2024

I already solved the no network for nasa website, but my modem recently went down coincidentally during the one-a-day sunrise time ping.

log file:

2024-07-07 01:17:02,563 ERROR Unable to reach eyes.nasa.gov.
2024-07-07 01:17:42,583 ERROR Unable to reach eyes.nasa.gov.
2024-07-07 01:18:22,600 ERROR Unable to reach eyes.nasa.gov.
2024-07-07 01:19:02,620 ERROR Unable to reach eyes.nasa.gov.
2024-07-07 01:19:42,641 ERROR Unable to reach eyes.nasa.gov.
2024-07-07 01:20:22,660 ERROR Unable to reach eyes.nasa.gov.
2024-07-07 01:21:02,678 ERROR Unable to reach eyes.nasa.gov.
2024-07-07 01:21:42,698 ERROR Unable to reach eyes.nasa.gov.
2024-07-07 01:22:22,716 ERROR Unable to reach eyes.nasa.gov.
2024-07-07 01:23:02,735 ERROR Unable to reach eyes.nasa.gov.
2024-07-07 01:23:42,756 ERROR Unable to reach eyes.nasa.gov.
2024-07-07 01:23:52,983 ERROR Unable to reach api.sunrise-sunset.org
2024-07-07 01:23:52,984 ERROR

Error <class 'TypeError'> during lights:
can't subtract offset-naive and offset-aware datetimes
Traceback (most recent call last):
  File "./src/main.py", line 341, in <module>
    asyncio.get_event_loop().run_until_complete(p.start())
  File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete    return future.result()
  File "./src/main.py", line 143, in start
    return_exceptions=False
  File "./src/main.py", line 293, in runLights
    self.activeSequences[0].run()
  File "/home/pi/pulseofexploration/src/lights.py", line 507, in run
    if self.sunrise - self.now > timedelta(seconds=0):
TypeError: can't subtract offset-naive and offset-aware datetimes
2024-07-07 01:23:52,992 ERROR Unable to play error lights:
'list' object has no attribute 'show'
Traceback (most recent call last):
  File "./src/main.py", line 362, in <module>
    p.lights.show()
AttributeError: 'list' object has no attribute 'show'
@starmaid starmaid added the bug Something isn't working label Jul 7, 2024
@starmaid starmaid self-assigned this Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant