Scriptsammlung zum Synchronisieren der Timer zweier VDR.
Hauptsächlich, weil es mich gestört hat, dass man momentan mit dem streamdev-plugin vom Client aus keine Timer auf dem Server programmieren/ändern kann.
Wenn die Scripts einigen anderen streamdev-Usern helfen, umso besser ;-). Viel Spaß!
Auszug aus der README
Original script created by "uxtuner" (http://www.vdr-portal.de/board/thread.php?postid=405163#post405163)
Requirements:
VDR 1.3.?? (developed under 1.3.36)
timercmds-patch (to be able to delete specific timers on the streamdev-server)
atd running (since scripts are invoked by vdr, without "at" svdrp gets broken pipes)
perl
Description:
Used to handle timers on streamdev-server and streamdev-client:
- Timers can be deleted on client AND server coherently.
- Timers can be synchronized from client to server and vice-versa (I'd say incrementally).
- Timers can be deleted entirely on the client.
- All timers on the client are set to "inactive" during import AND export.
- All timers that are exported to the server are set to "active" on the server.
All these are workaraounds until the streamdev-plugin can handle it on its own again.
Package includes the files:
README
commands.remote_timers.conf (add entries to your commands.conf)
del_all_timers_on_client.pl (self-explanatory, used by commands.conf)
del_timer_on_client_and_server.pl (deletes a selected timer on client AND server, used by timercmds.conf)
get_timers_from_server.pl (gets all timers from server, deletes timers on client before, used by timercmds.conf)
remote_timers_conf.pl (config file fot the scripts)
remote_timers_gateway (is called by vdr (by commands.conf/timercmds.conf) and invokes the scripts using "at")
sync_timers_from_server.pl (synchronizes (adds) the timers on the client with the ones from the server)
sync_timers_to_server.pl (does the same as above, just with switched roles)
timercmds.remote_timers.conf (needs timercmds-patch: http://www.vdr-wiki.de/wiki/index.php/Timercmds-patch)
Notes:
As always: Use scripts at your own risk.
I tested them in my environment and they worked as they are intended.
The scripts could be combined into one big script, as very much code is copy'n'pasted,
the scripts could also be refined a lot, but I'm too lazy for that ;-).
|