docker-blueiris icon indicating copy to clipboard operation
docker-blueiris copied to clipboard

Accept Demo Mode - Automated

Open cron410 opened this issue 4 years ago • 0 comments

Not sure if this is OK to include in the official image, but I have a way to automate the Demo button of the Evaluation window on startup.

I wanted to have a fully automated service with VAAPI features (apparently can't run as a service and have VAAPI) without entering my license info yet. I'll wait until it's all set up and I'm done creating and destroying the container.

The trick uses the already included xdotool to run a mouse macro and click the Demo button on startup, initiated by supervisord

Add the following to the end of the supervisord config file: /etc/supervisor/conf.d/supervisord-normal.conf

[program:demo-xdotool]
command=bash -c "sleep 5 && xdotool mousemove -polar 0 0 && xdotool mousemove_relative -- 280 255 && xdotool click --window `xdotool getactivewindow` 1"
autorestart=false
user=root

cron410 avatar May 17 '21 21:05 cron410