dynamically generated remote configs

'User made' tutorials related to Porteus Kiosk edition.
Official kiosk documentation can be find here: http://porteus-kiosk.org/documentation.html
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
rob
White ninja
White ninja
Posts: 15
Joined: 07 Nov 2016, 06:05
Distribution: 4.1
Location: NY

dynamically generated remote configs

Post#1 by rob » 30 Mar 2022, 20:03

with a kiosk_config=https://domain.com/kiosk-config.php?dev ... &sound=0.3
does the kiosk-config.php return a [[ GLOBAL ]] and [[ PCID ]] for device=nuc ? with sound=0.3 applied after [[ PCID ]] ?
how do we know if a var is for kiosk-config.php or [[ PCID ]] ?

what I'm wishing for is a [[ GROUP ]] that works like [[ GLOBAL ]] so I can do

[[ GLOBAL ]]
kiosk_config=https://domain.com/kiosk-config.txt

[[ TV ]]
homepage=https://domain.com/tv

[[ KIOSK ]]
homepage=https://domain.com/kiosk

[[ PCID ]]
[[ PCID ]]
[[ PCID ]]
group=TV

[[ PCID ]]
[[ PCID ]]
group=KIOSK

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

dynamically generated remote configs

Post#2 by fanthom » 31 Mar 2022, 11:17

Rob,

Kiosk 5.4.0 just gives a possibility to pass arguments to remote config URL which could be a PHP script.
Its totally up to you which arguments you provide and how the script reacts to them (which kiosk parameters are returned to the clients).

You need to create the script yourself and code relevant rules in it.

Thanks
Please add [Solved] to your thread title if the solution was found.

Locked