AllskyTeam / allsky

A Raspberry Pi operated Wireless Allsky Camera
MIT License
1.21k stars 181 forks source link

[BUG] "Loading" when accessing website via tablet/smartphone #3982

Open markusd112 opened 4 days ago

markusd112 commented 4 days ago

Camera model

Raspi HQ

Operating System

Buster

Allsky version

V2023.05.01_05

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

Raspi 4, 8GB

Bug Description

When I go to my AllSky website via browser on my tablet (iPad 10) or my smartphone (Samsung Galaxy S23), the page regularly says "Loading" for about 60 seconds, apparently until the page automatically refreshes. When I do a manual reload, the camera image appears immediately. It works perfectly on a desktop computer: the camera image is always displayed immediately. It only happens with mobile devices.

signal-2024-11-27-090114_002

Log / configuration files

No response

EricClaeys commented 3 days ago

Is your Website on the Pi or a remote server on the Internet? If the later, what's the URL?

Since the delay only occurs with a mobile device, it's probably not a Allsky problem. What mobile browser are you using?

markusd112 commented 3 days ago

The website is on a remote webserver on the internet. The URL is:

https://sternstunden-astronomie.de/

I am using Chrome browser on my Android device and Safari on the ipad. The problem only occurs with my allsky website.

markusd112 commented 3 days ago

A friend of mine is hosting his allsky website on an internet server too and the same problem occurs with his allsky website, when I open it with my mobile devices, so I think its not a specific problem of my installation/webserver.

EricClaeys commented 3 days ago

@markusd112, when I went to your page with my Samsung S10 using Samsung's browser, I saw "Loading" for 30-60 seconds (didn't time it). When I refreshed the page several times "Loading" was only there for 6 seconds. It's possible that's because I am in the US, but I haven't seen this behavior with other European Allsky sites. They usually show the picture as it downloads, but your whole image appeared at once. Your "intervalSeconds" is 30, so if you initially don't see the image for 60 seconds it probably isn't related to that. But as a test, would you please change the interval to 15 seconds and retest? I will also then retest.

Samsung's browser used to have Developer Mode, equivalent to F12 on a PC, but I can't find it anymore. Does the iPad have it?

markusd112 commented 3 days ago

@EricClaeys I've changed the interval to 15 seconds in the moment. Thanks for testing it.

edit: it seems that it decreases the time where you see "loading" to around 15 seconds for my Samsung Galaxy S23 now. But the strange thing is that it only happens with my S23 and my ipad as well, not with my computers (Firefox, Edge)...

On the ipad you can activate dev tools as described here, but it seems that you need a connection to a PC to access the web developer toolbar

https://stackoverflow.com/questions/5734323/ipad-safari-development-toolbar