Hi,
I installed the MotionEye application on my rasberry pi 3 for video surveillance management.
I use Raspian Desktop to open the web page, connected to a monitor, I would like to make sure that once I log in, the MotionEye web page starts automatically.
To do this, I created a very simple script (Given my few skills), which if started manually works correctly, while inserted in crontab no, I am sure that it is started because I inserted a control that creates a file when it starts, I reported below:
#!/bin/bash
ESEC=$(sudo ps aux | grep chromium | wc -l)
echo $ESEC
if ( "$ESEC" = 1 ); then
echo " The page is closed"
sudo chromium-broswer -kiosk http://localhost:8765/
touch /homepi/script/scriptok.txt
else
echo " The page is open"
exit 0;
fi
#crontab -l
* * * * * sleep 15; /home/pi/script/avvio.sh
Can you show me how I can solve my problem?
Thanks in advance for your support
Nicola