The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Auto login with Chromium in kiosk mode for digital signage
nsl
post 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 blink.gif

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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
nsl
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th April 2024 - 07:33 PM