I'm trying to add to my current lines of Code if possible to Continue to Open my webpage in Kiosk on Chromium during startup, which I've managed with the code below, however I'm trying to make a Username and Password be entered automatically, and press the login button into the Webpage that follows. This is what I have so Far, Stored in /home/pi/kiosk.sh
#!bin/bash xset s noblank xset s off xset -dpms unclutter -idle 0 -root & chromium-browser --noerrdiaglogs --disable-infobars --kiosk https://192.168.0.1/webconsole
I then have another set of Code stored in SystemD that I've enabled so it Executes on Startup. located as: /lib/systemd/system/kiosk.service:
[Unit] Description=Chromium Kiosk Wants=graphical.target After=graphical.target [Service] Environment=DISPLAY=:0.0 Environment=XAUTHORITY=/home/pi/.Xauthority Type=simple ExecStart=/bin/bash /home/pi/kiosk.sh Restart=on-abort User=pi Group=pi [Install] WantedBy=graphical.target
This all works great, However my only issue is trying to add something to make my login details for this page open automatically. Any Advice? I tried looking into cURL but have no idea with it. And sometimes I'd get a SSL error, which I assume is because the Internal webpage won't have a security Certificate. Thanks for anyone's time who reads this.
xdotool
to simulate keyboard strokes (and fill in username/password that way). What authentication method is use here? Basic Auth? Does it store a cookie?https://user:password@192.168.0.1/webconsole