Auto login with Chromium in kiosk mode for digital signage |
Auto login with Chromium in kiosk mode for digital signage |
nsl |
May 16 2020, 01:29 AM
Post
#1
|
Group: Members Posts: 2 Joined: 16-May 20 Member No.: 27,347 |
I hope this is the right forum, otherwise please move. I've unexpectedly been tasked with setting this up for one of our customers, apparently because I do own a Raspi 3 running Raspbian
I've browsed various resources but I seem to be unable to get this to work. Chromium does start up in kiosk mode, loads the webpage and autofills the saved credentials but I still need to click on 'sign in'. I can't do that however, since there will be no keyboard/mouse attached when the system is eventually installed in the store (where it will be disconnected from power instead of being shut down properly every night). Is there anyway I can do this with client-side scripting/userscripts? |
CharlesEF |
May 16 2020, 04:06 AM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
Do you have access to the login web page? You would need to add some javascript in the document on load event. You can use javascript to submit the form. If you need help, post your code.
|
nsl |
May 16 2020, 04:24 AM
Post
#3
|
Group: Members Posts: 2 Joined: 16-May 20 Member No.: 27,347 |
Unfortunately I don't so Tampermonkey might help as a workaround by adding a keyboard shortcut to the login button
CODE <button name="button" type="submit">Sign in ›</button> and then click on it with Javascript/Xdotool or something. |
CharlesEF |
May 16 2020, 04:17 PM
Post
#4
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
Unfortunately I don't use Tampermonkey so I can't help with that. Another way might be using wscript sendkeys. Since the login screen will be the only only thing on screen it might work. See this page.
|
Lo-Fi Version | Time is now: 19th April 2024 - 10:36 PM |