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

[BUG] - Allsky map postToMap.sh error. #4127

Closed
chvvkumar opened this issue Dec 28, 2024 · 8 comments
Closed

[BUG] - Allsky map postToMap.sh error. #4127

chvvkumar opened this issue Dec 28, 2024 · 8 comments

Comments

@chvvkumar
Copy link

chvvkumar commented Dec 28, 2024

Camera model

RPi HQ Camera

Operating System

Bookworm

Allsky version

v2024.12.06

Pi and amount of memory (512 MB, 1, 2, 4, or 8 GB)

Pi 5, 4GB

Bug Description

Seeing this error in my notification:

The website is accessible using the URL for both the image and the website mentioned in the error message so not sure if it's the port number causing this.

postToMap.sh: ERROR: Image URL 'https://allsky..../current/resized/image.jpg' does not appear to be a valid image.ERROR: Website URL 'https://allsky..../allsky/index.php/' does not appear to be a valid web site.   (December 27, 06:39:22 AM)

image

allsky.log
settings.json.txt
configuration.json.txt

@chvvkumar chvvkumar changed the title [BUG] [BUG] - Allsky map postToMap.sh error. Dec 28, 2024
@EricClaeys
Copy link
Collaborator

@chvvkumar, Kumar, change your WebUI login and password ASAP.
I am on your WebUI page and if I was hacker I could control your Pi.

@chvvkumar
Copy link
Author

@chvvkumar, Kumar, change your WebUI login and password ASAP. I am on your WebUI page and if I was hacker I could control your Pi.

Thanks for the head's up! I changed it to test some things but changed it back now.

@EricClaeys
Copy link
Collaborator

For the Website URL error, remove index.php from the URL in the WebUI. Note in the red message it appended a / to the URL because it assumes the URL points to a directory. I will look at changing this.

After making the change, please run:

postToMap.sh  --debug --force

I will look at the image URL error when I am on my PC. In the meantime, I am curious why you have resized in the URL? I assume you created an allsky/tmp/resized/ directory and are somehow copying the current image there?

@EricClaeys
Copy link
Collaborator

You can lower your Debug Level to 3. Level 4 is rarely needed anymore and makes the log harder to read.

Also, you can disable Use dark frames because they aren't implemented yet on RPi cameras. If you made some changes to get them to work in the prior release, note these messages in the log file:

*** darkSubtract.sh: WARNING: 'AS_TEMPERATURE_C' not set; continuing without dark subtraction.

@chvvkumar
Copy link
Author

chvvkumar commented Dec 28, 2024

That seems to have fixed it! Thank you!

The resized image is what I normally use everywhere other than the webui. I use it on:

The desktop display I made:
#3630

and as an input to my ML cloud detection project I made:
https://github.com/chvvkumar/simpleCloudDetect

Both of those pull a new image every 30s from the AllSky Pi and sending a large ~2.5MB image is not necessary. So there is a morgify cron task that takes the latest image, resizes it to 750x750 and saves it to /resized/ folder.

As for the debug level-4, I am checking my periodic log for the module I developed for allsky-modules:
https://github.com/AllskyTeam/allsky-modules/tree/dev/allsky_mqttsubscribe

And finally, I will go ahead and disable the dark frame subtraction, I managed to get it working a while ago but I don't think I need to enable it any more.

@EricClaeys
Copy link
Collaborator

Is everything fixed now, or just the directory URL?

@chvvkumar
Copy link
Author

Everything is fixed now but I am actually not sure why that message popped up today. I have been running with the same /resized/ image URL for quite a while now.

This is an issue that still happens though, which is why I thought it might be the port number in the URL causing it. The current image doesn't show up on the map if the address has a host:port in the URL.

#3967

@EricClaeys EricClaeys added the Being investigated Working with user to understand problem label Dec 28, 2024
@EricClaeys
Copy link
Collaborator

I am closing this Issue.
I created Issue #4128 for the problem you had with index.php in the URL, and the Map not working with URLs with port numbers is already documented.

@EricClaeys EricClaeys added Won't implement Items that will not be implemented and removed Being investigated Working with user to understand problem Won't implement Items that will not be implemented labels Dec 28, 2024
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

2 participants