i recently have read that the duration argument has been cancelled out of hyperion? Why?
I used this for clear state effect. hereby my scripts
autoxec.py in/home/.kodi/userdata
import xbmc,xbmcgui
import subprocess,os
import time
class MyPlayer(xbmc.Player) :
def __init__ (self):
xbmc.Player.__init__(self)
def onPlayBackStarted(self):
if xbmc.Player().isPlayingVideo():
os.system("/home/iiidefconiii/HarmonyHubControl/HarmonyHubControl thomasvdalen@gmail.com 192.168.1.11 issue_device_command 13630846 L03")
os.system('/usr/share/hyperion/bin/hyperion-remote --clear')
def onPlayBackEnded(self):
if (VIDEO == 1):
os.system("/home/iiidefconiii/HarmonyHubControl/HarmonyHubControl thomasvdalen@gmail.com 192.168.1.11 issue_device_command 13630846 L04")
os.system('/usr/share/hyperion/bin/hyperion-remote --priority 100 --duration 86400 --effect "Blue mood blobs"')
def onPlayBackStopped(self):
if (VIDEO == 1):
os.system("/home/iiidefconiii/HarmonyHubControl/HarmonyHubControl thomasvdalen@gmail.com 192.168.1.11 issue_device_command 13630846 L04")
os.system('/usr/share/hyperion/bin/hyperion-remote --priority 100 --duration 86400 --effect "Blue mood blobs"')
def onPlayBackPaused(self):
if xbmc.Player().isPlayingVideo():
os.system("/home/iiidefconiii/HarmonyHubControl/HarmonyHubControl thomasvdalen@gmail.com 192.168.1.11 issue_device_command 13630846 L04")
def onPlayBackResumed(self):
if xbmc.Player().isPlayingVideo():
os.system("/home/iiidefconiii/HarmonyHubControl/HarmonyHubControl thomasvdalen@gmail.com 192.168.1.11 issue_device_command 13630846 L03")
os.system('/usr/share/hyperion/bin/hyperion-remote --clear')
player=MyPlayer()
subprocess.call('/usr/share/hyperion/bin/hyperiond /etc/hyperion.config.json </dev/null >/dev/null 2>&1 &', shell=True,)
time.sleep(3)
subprocess.call('/usr/share/hyperion/bin/hyperion-remote --effect "Blue mood blobs"', shell=True,)
while(1):
if xbmc.Player().isPlayingVideo():
VIDEO = 1
else:
VIDEO = 0
xbmc.sleep(3000)
Alles anzeigen
cause of duration the effect would keep playing 24 hours after watching a movie a affect would called up, but with this new hyperion the effect only stays on for a couple minutes and then goes to clear state, i have read about replacing the bootsequance to initaleffectin here: https://github.com/hyperion-project/hyperion.ng/pull/30
but this didn't work for me, i also read that its only compatible with hyperion.ng or something, don't know what it is.
could the devs please put --duration back, or give us the possibility to add an static effect, not color when no content is played?
Thank You!