1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FIXED duration argument, back please

Discussion in 'Bug Reports' started by iiidefconiii, 4 September 2016.

  1. iiidefconiii

    iiidefconiii Member

    Messages:
    72
    Hardware:
    32/64bit, +Arduino
    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

    Code:
    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)
    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!
     
  2. iiidefconiii

    iiidefconiii Member

    Messages:
    72
    Hardware:
    32/64bit, +Arduino
    solved with hyperion ng, perfect!