e2m3u2bouquet – Automation via cron job

Cron Automation

OK quick post for those who requested it.

ssh to your enigma2 box

install busybox-cron

opkg install busybox-cron

Now set up your job

crontab -e

Will open the cron text editor.
Next steps need to be followed exactly as vi isn’t the most user friendly text editor

Press insert to start inputting text

Input your schedule and the command to run eg:

0 6,18 * * * /etc/enigma2/e2m3u2bouquet/e2m3u2bouquet.py -n FAB -u USERNAME -p PASSWORD >> /tmp/e2.log

or

0 6,18 * * * /etc/enigma2/e2m3u2bouquet/e2m3u2bouquet.py -m "http://stream.fabiptv.com:25461/get.php?username=YOURUSERNAME&password=YOURPASSWORD&type=m3u_plus&output=ts" -e "http://stream.fabiptv.com:25461/xmltv.php?username=YOURUSERNAME&password=YOURPASSWORD"

press escape to exit text entering mode

input

:wq

to write and quit from the file, your crontab is saved.

In the above example we have scheduled the job to run at 6am and 6 pm every day (6,18)

An alternative to the above is to use

(crontab -l ; echo "0 6,18 * * * /etc/enigma2/e2m3u2bouquet/e2m3u2bouquet.py -n FAB -u USERNAME -p PASSWORD")| crontab -

This will append the job to the crontab. You’ll get a warning message if the current crontab is empty

 

See here for more information on cron scheduling

3 thoughts on “e2m3u2bouquet – Automation via cron job

  1. Hi,

    Is there anywhere to confirm this is working, when i go to cron manager on zgemma h2s after running these commands the box just crashes and reboots

  2. add “>> /tmp/e2m3u.log” to the end of the command
    This will create a log file in /tmp called e2m3u.log

    to view it type “cat /tmp/e2m3u.log”

Leave a Reply