netbymatt / ws4kp

WeatherStar 4000+
https://weatherstar.netbymatt.com
MIT License
236 stars 39 forks source link

Kiosk Mode #46

Closed holocronology closed 1 month ago

holocronology commented 1 month ago

I have this installed on Unraid using an assigned macvlan address. 192.168.2.200, for example.

So to get to it I go to http://192.168.2.200:8080. Works great from there.

However, I am unable to get kiosk mode to work correctly. If I check kiosk mode it will switch but I am unable to force it into kiosk mode from a URL. Any new call to the url or refresh kicks it out of kiosk mode.

If there a trick to this?

Maybe an alternative port could be utilized for kiosk mode?

netbymatt commented 1 month ago

You have to modify the URL slightly to use kiosk mode. It's a manual action because you can't click the "Copy Link" button once you're in kiosk mode. It's documented in the Readme

holocronology commented 1 month ago

The URL modification in the Readme is not working. Perhaps I was unclear about that in my initial comments.

I get an error: Cannot GET /&kiosk=true

netbymatt commented 1 month ago

If your not also using a permalink then it's /?kiosk=true since it's the only URL parameter.

Sonny-Crockett commented 1 month ago

I found this issue and fixed my install from unRAID. If you would not mind adding that into the readme, that would be great, as I was putting in "&kiosk=true" as well and getting the same error. Hopefully it would help others that might not think to look for the issue.

It is now working great inside of an iframe on my selfhosted dashboard!

holocronology commented 1 month ago

I swear I tried http://192.168.2.200:8080/?kiosk=true multiple times and it didn't work...but now it is.¯\_(ツ)_/¯