Linux [RELEASE]Plugin for Timer- and Powermanagement in XBMC/Kodi and TVHeadend
#1
First of all, I’m not shure if this is the right place for announcment or maybe the next subforum (Python development), second I thank nmcaullay for inspiration and parts of source code from his pvruptime-addon (see http://forum.xbmc.org/showthread.php?p=7...post725958) and at least, sorry for my bad english.

Ok lets go!

Download and screenshots you'll find at (new download location): http://vdr4bj1.no-ip.org?item=addon or install it from my repository (see signature)

Description:

The combination of XBMC/Kodi(Buntu) and TVHeadend as backend hasn’t a power or timer management for ongoing and upcoming recordings. A wake-up mechanism for future recordings either under XBMC nor under TVHeadend isn't completed yet or needs several bash scriptings. Therefore I've written a Python-Script, which is registered as a service on XBMCKodi running since Frodo up to actual versions.

The operation of this script can be summarized as follows:

  • a pressure on the power button on the remote control whilest a current or soon upcoming recording is ignored and an appropriate message is shown. After recording and analyzing for next possible timers a wake-up via ACPI or NVRAM (nvram-wakeup must be installed and properly configured) is set and the system shuts down.
  • Every keypress (Play, Pause, Mute, Volume etc.) except power aborts the above mechanism, i.e., the computer don’t poweroff after recording. Power management is turned back on by simply pressing the power button remote again.
  • Before switching off after a timer, an adjustable countdown is shown by progress bar, that can be stopped.
  • Additional network and process monitoring is implemented if needed. Define network ports and/or processes which should monitoring in setup.
  • Is there a timer recording without any user activity occurs (eg. at night / user absent), the system will shut down without notice message after the recording was done and set next wakeup. Before doing this an email is optional delivered to the user.
  • If power button is pressed and there are no upcoming/soon schedules required, the system shuts down immediately, however, timers are set.
The power button on the unit shows the normal behavior, i.e. the device switches off, timers are not set.

"Soon" fitting timers are calculated from:
ACPI: Recording Time < boot time + shutdown time + countdown time -> see screenshot
NVRAM: <11 minutes

Inside the package is a wrapper script (shutdown.sh) that needs some special settings as python itself cannot have root privileges. This is necessary for setting the system clock and shutdown operations.

Therefore: YOU MUST read the README and follow the instructions whitin the package, because there's a lot to be configured (user rights, remote.xml, etc.). Just take a look inside the zipfile.

It would be grateful to inform me about errors, issues or other informations. Be free to contact me in this forum or PM me.

_BJ1

____________________________________________________________________

Current Release: see changelog

Initial Release Oct. 2011

Installation: Copy zip to a directory where XBMC has access. Then: System -> Addons -> Install from zip file -> select location

Next steps for configuration you'll find in the README in this package.
Reply


Messages In This Thread
[RELEASE]Plugin for Timer- and Powermanagement in XBMC/Kodi and TVHeadend - by _BJ1 - 2011-11-29, 10:31
[No subject] - by ronnylov - 2011-12-07, 12:34
time or hwclock problem - by fecus - 2011-12-20, 22:12
[No subject] - by _BJ1 - 2011-12-21, 12:40
[No subject] - by fecus - 2011-12-21, 17:28
[No subject] - by _BJ1 - 2011-12-21, 18:21
[No subject] - by _BJ1 - 2011-12-21, 18:54
[No subject] - by _BJ1 - 2011-12-22, 23:45
[No subject] - by fecus - 2011-12-23, 17:22
[No subject] - by _BJ1 - 2011-12-23, 23:26
[No subject] - by fecus - 2011-12-24, 13:35
[No subject] - by _BJ1 - 2011-12-24, 17:21
[No subject] - by fecus - 2011-12-25, 23:45
[No subject] - by _BJ1 - 2011-12-26, 00:26
[No subject] - by fecus - 2011-12-26, 12:24
[No subject] - by _BJ1 - 2011-12-27, 12:11
[No subject] - by fecus - 2011-12-27, 18:04
[No subject] - by _BJ1 - 2011-12-27, 18:18
[No subject] - by _BJ1 - 2012-01-24, 23:36
[No subject] - by harryzimm - 2012-02-16, 21:52
[No subject] - by _BJ1 - 2012-02-17, 13:52
RE: [RELEASE]Plugin for Timer - by Daddy_Dog - 2013-03-12, 15:06
RE: [RELEASE]Plugin for Timer - by _BJ1 - 2013-03-12, 19:47
RE: [RELEASE]Plugin for Timer - by Daddy_Dog - 2013-03-12, 19:58
RE: [RELEASE]Plugin for Timer - by Daddy_Dog - 2013-03-12, 20:08


Logout Mark Read Team Forum Stats Members Help
[RELEASE]Plugin for Timer- and Powermanagement in XBMC/Kodi and TVHeadend2
This forum uses Lukasz Tkacz MyBB addons.