8000 Weather error · Issue #60 · fatihak/InkyPi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Weather error #60

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

Open
cellfreak opened this issue Mar 17, 2025 · 9 comments
Open

Weather error #60

cellfreak opened this issue Mar 17, 2025 · 9 comments
Labels
bug Something isn't working

Comments

@cellfreak
Copy link
cellfreak commented Mar 17, 2025

Getting this error. Error! An error occurred: 'NoneType' object has no attribute 'save'

I have created an API and saved it to the .env

OpenWeather shows 9 calls

Date (UTC) Total calls Paid calls Total to pay (USD)
March 18, 2025 9 0 0.0
March 17, 2025 296 0 0.0

This URL does return weather data using my lat long and API

https://api.openweathermap.org/data/3.0/onecall?lat= API

@stemow
Copy link
stemow commented Mar 19, 2025

Same issue :( | Perchance are you also on a Pi Zero W (not Pi Zero 2W)

@fatihak
Copy link
Owner
fatihak commented Mar 19, 2025

@cellfreak @stemow This is likely an issue when when taking a screenshot to generate an image. Can you provide the logs? You can find instructions here: troubleshooting.md

Also, are you using a Pi Zero W?

@fatihak fatihak added the bug Something isn't working label Mar 19, 2025
@cellfreak
Copy link
Author
cellfreak commented Mar 19, 2025

It works correctly now. image

@stemow
Copy link
stemow commented Mar 21, 2025

Looks like hardware limitation of Pi Zero:

Mar 21 07:28:51 stemow-inky inkypi[404]: 07:28:51 - INFO - werkzeug - 192.168.1.39 - - [21/Mar/2025 07:28:51] "GET /plugin/weather HTTP/1.1" 200 -
Mar 21 07:28:52 stemow-inky inkypi[404]: 07:28:52 - INFO - werkzeug - 192.168.1.39 - - [21/Mar/2025 07:28:52] "GET /static/styles/main.css HTTP/1.1" 304 -
Mar 21 07:28:52 stemow-inky inkypi[404]: 07:28:52 - INFO - werkzeug - 192.168.1.39 - - [21/Mar/2025 07:28:52] "GET /images/weather/icon.png HTTP/1.1" 304 -
Mar 21 07:28:52 stemow-inky inkypi[404]: 07:28:52 - INFO - werkzeug - 192.168.1.39 - - [21/Mar/2025 07:28:52] "GET /static/scripts/response_modal.js HTTP/1.1" 304 -
Mar 21 07:28:52 stemow-inky inkypi[404]: 07:28:52 - INFO - werkzeug - 192.168.1.39 - - [21/Mar/2025 07:28:52] "GET /images/base_plugin/frames/blank.png HTTP/1.1" 304 -
Mar 21 07:28:52 stemow-inky inkypi[404]: 07:28:52 - INFO - werkzeug - 192.168.1.39 - - [21/Mar/2025 07:28:52] "GET /images/base_plugin/frames/corner.png HTTP/1.1" 304 -
Mar 21 07:28:52 stemow-inky inkypi[404]: 07:28:52 - INFO - werkzeug - 192.168.1.39 - - [21/Mar/2025 07:28:52] "GET /images/base_plugin/frames/top_and_bottom.png HTTP/1.1" 304 -
Mar 21 07:28:52 stemow-inky inkypi[404]: 07:28:52 - INFO - werkzeug - 192.168.1.39 - - [21/Mar/2025 07:28:52] "GET /images/base_plugin/frames/rectangle.png HTTP/1.1" 304 -
Mar 21 07:28:57 stemow-inky inkypi[404]: 07:28:57 - INFO - refresh_task - Manual update requested
Mar 21 07:28:58 stemow-inky inkypi[404]: 07:28:58 - ERROR - utils.image_utils - Failed to take screenshot:
Mar 21 07:28:58 stemow-inky inkypi[404]: 07:28:58 - ERROR - utils.image_utils - The hardware on this system lacks support for NEON SIMD extensions.
Mar 21 07:28:58 stemow-inky inkypi[404]: We now require NEON or equivalent architecture extensions on ARM-based
Mar 21 07:28:58 stemow-inky inkypi[404]: machines. See https://lists.debian.org/debian-devel/2023/09/msg00175.html
Mar 21 07:28:58 stemow-inky inkypi[404]: for more information.
Mar 21 07:28:58 stemow-inky inkypi[404]: 07:28:58 - ERROR - root - Exception during refresh
Mar 21 07:28:58 stemow-inky inkypi[404]: Traceback (most recent call last):
Mar 21 07:28:58 stemow-inky inkypi[404]: File "/home/stemow/InkyPi/src/refresh_task.py", line 107, in _run
Mar 21 07:28:58 stemow-inky inkypi[404]: image_hash = compute_image_hash(image)
Mar 21 07:28:58 stemow-inky inkypi[404]: ^^^^^^^^^^^^^^^^^^^^^^^^^
Mar 21 07:28:58 stemow-inky inkypi[404]: File "/home/stemow/InkyPi/src/utils/image_utils.py", line 61, in compute_image_hash
Mar 21 07:28:58 stemow-inky inkypi[404]: image = image.convert("RGB")
Mar 21 07:28:58 stemow-inky inkypi[404]: ^^^^^^^^^^^^^
Mar 21 07:28:58 stemow-inky inkypi[404]: AttributeError: 'NoneType' object has no attribute 'convert'
Mar 21 07:28:58 stemow-inky inkypi[404]: 07:28:58 - INFO - werkzeug - 192.168.1.39 - - [21/Mar/2025 07:28:58] "POST /update_now HTTP/1.1" 500 -

@dahorowitz
Copy link

FWIW, I'm getting the same error message and log error, and I'm using a Pi Zero 2W...

@stemow
Copy link
stemow commented Mar 26, 2025

How interesting. I pulled a Pi Zero 2W and set it up for this project and it works perfectly. I flashed PiOS bookworm with desktop image.

8000

@dahorowitz
Copy link

So I just did a full reflash/rebuild with PiOS bookworm and it is now working for me as well.

I honestly don't recall what I selected when I first set this up, but it is entirely possible that I chose a headless version of PiOS thinking that there's no point in installing desktop support--which makes it possible that there is a component that requires one or more of the libraries only available when you do a full desktop install? Just a guess in the dark...

@fatihak
Copy link
Owner
fatihak commented Mar 29, 2025

@cellfreak based on your latest comment, it seems like its working for you now. Is this issue good to close?

@HRB-YuPai
Copy link

@fatihak

Hello fatihak:

I got the same error - weather screenshot is dead

OS:Raspberry Pi OS 64bit lite Bookworm
hardware: RPI Zero 2w
Python Version: 3.11 along with pip3
network: both ethernet (usb-c to ethernet adapter) and wifi are not work

Apr 09 06:41:24 LoneOne-Weather-Board inkypi[582]: File "/home/loneone/InkyPi/src/refresh_task.py", line 106, in _run
Apr 09 06:41:24 LoneOne-Weather-Board inkypi[582]: image = refresh_action.execute(plugin, self.device_config, current_dt)
Apr 09 06:41:24 LoneOne-Weather-Board inkypi[582]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 09 06:41:24 LoneOne-Weather-Board inkypi[582]: File "/home/loneone/InkyPi/src/refresh_task.py", line 206, in execute
Apr 09 06:41:24 LoneOne-Weather-Board inkypi[582]: return plugin.generate_image(self.plugin_settings, device_config)
Apr 09 06:41:24 LoneOne-Weather-Board inkypi[582]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 09 06:41:24 LoneOne-Weather-Board inkypi[582]: File "/home/loneone/InkyPi/src/plugins/weather/weather.py", line 75, in generate_image
Apr 09 06:41:24 LoneOne-Weather-Board inkypi[582]: raise RuntimeError("Failed to take screenshot, please check logs.")
Apr 09 06:41:24 LoneOne-Weather-Board inkypi[582]: RuntimeError: Failed to take screenshot, please check logs.
Apr 09 06:41:24 LoneOne-Weather-Board inkypi[582]: 06:41:24 - INFO - werkzeug - 10.0.0.194 - - [09/Apr/2025 06:41:24] "POST /update_now HTTP/1.1" 500 -

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

5 participants
0