jshridha / docker-blueiris

Blueiris in a docker using wine!
Apache License 2.0
106 stars 52 forks source link

Accept Demo Mode - Automated #56

Open cron410 opened 3 years ago

cron410 commented 3 years ago

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