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

Restart hyperion with different json configuration

Discussion in 'Hyperion General' started by alop, 15 April 2017.

  1. alop

    alop New Member

    Messages:
    3
    Hardware:
    RPi3
    Hi,

    I would like to be able to switch between different json configuration files.
    When I try it I always end up with the error of "JSONSERVER ERROR: could not bind to port".
    If I try different port, then it end up in a mess of different "servers".

    Every file that is executed is some kind of this file:

    Code:
    #!/bin/sh
    sudo systemctl stop hyperion.service 2>/dev/null
    sleep 1
    kodi-send -a "Notification(Hyperion Info,Ambilight für TV aktiviert,7000,http://powerpi.de/wp-content/uploads/powerpi/powerpi_ambi_thumb_kodi.jpg)"
    sudo /usr/bin/hyperiond /etc/hyperion/hyperion.config.tv.json
    </dev/null >/dev/null 2>&1 &
     
  2. penfold42

    penfold42 Moderator Developer

    Messages:
    459
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    It sounds like you still have an instance running - maybe the stop isn't working.

    I'd check with ps to confirm that the first instance is being properly stopped
     
  3. alop

    alop New Member

    Messages:
    3
    Hardware:
    RPi3
    I get further,

    but now I can't start an instance with external grabber (logilink). I receive this error:
    Code:
    terminate called after throwing an instance of 'std::runtime_error'
      what():  V4L2GRABBER ERROR: Cannot identify '/dev/video0' ERROR 2, No such file or directory
    
    Hiw can I check if my external grabber is working.
    In the past days I have managed to start the external grabber, so it is already proven that it works.
     
  4. alop

    alop New Member

    Messages:
    3
    Hardware:
    RPi3
    OK I solved it. I changed the usb slot and video0 was recognized.
    If having same issue as myself, than just try ls /dev and see if video0 is listed. If not than just switch usb slot for the grabber and check again.