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

SOLVED does not upload JSON config

Discussion in 'Software Support' started by Arnie, 23 December 2018.

  1. Arnie

    Arnie New Member

    Messages:
    5
    Hardware:
    RPi2
    I have had Hyperion running very nicely on my TV for two years on a RasPi2. I wanted to do some color adjustments with Hypercon, and during that process did the dumb (apparently!) thing of updating Hyperion and Hypercon. Big mistake! :confused:

    My config:
    RasPi2 with OpenElec
    Frame grabber connected to RasPi USB port.
    WS 2801 LED strip.
    HyperCon (V1.03.3) on Win10 PC

    Several issues:
    1. I run HyperCon on PC, connect to RasPi through SSH. When using the "Send config" button, the "Show gtraffic" window shows:
      "sftp Send Hyperion Config - Sourcepath: G:/Elektronikk/Programmer/Hypercon, Targetpath: /storage/.config/, Filename: hyperion.config.json"
      --> Problem: There is no "/storage/.config/" directory on the RasPi, but there is one named "/storage/config/" (without the dot!).
      --> I cannot see that hyperion.config.json is sent to the RasPi at all.
      In this case, impossible to get any LEDs to work.
    2. I can open OpenElec on the RasPi and configure Hyperion there. This is the only way I can bring the LEDs to work. Byt the colors are not well adjusted and my LED strip is not RGB byt RBG, so colors are wrong. And impossible to readjust.
    My main issue seems to be that I cannot get Hypercon to send a config to the RasPi.

    Framegrabbing works. LEDs work. When (incorrectly) configured via OpenElec, it all "works", but no JSON config file is generated, so I have no way to make adjustments...

    One more issue:
    Each time I do "Stop" and "Start" of Hyperion from Hypercon, it casuses Hypercon to freeze when I do "Start". I have to kill Hypercon with Windows Task Manager, then restart it, log in through SSH again...

    Anyone have a clue here?
     
  2. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    983
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    hypercon is not up2date, the bugs are known, sorry for that
     
  3. Arnie

    Arnie New Member

    Messages:
    5
    Hardware:
    RPi2
    OK, thank you for this information.
    What is currently the best way to install and configure Hyperion?
     
  4. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    983
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    the manual way... install with commandline (ssh) after that you can make a config with hypercon and then copy and paste it into your pi over the commandline tool

    if i can find time this week, i wanted to "update" hypercon...but only for windows...but can not promise anything :)
     
  5. Arnie

    Arnie New Member

    Messages:
    5
    Hardware:
    RPi2
    OK, I will try that!
    But before I start, just to be sure:
    1. Installing and uninstalling Hyperion from Hypercon seems to work. My current Hyperion installation is installed this way. Should I deinstall Hyperion from Hypercon first?
    2. Please confirm that this is the latest version of Hyperion: https://github.com/hyperion-project/hyperion
    3. Please confirm what is the procedure for "manual" installation of Hyperion over SSH. The indicated Github page points to the Hyperion Wiki page (https://wiki.hyperion-project.org/) which only describes installing using Hypercon.
    4. You write "...make a config with hypercon and then copy and paste it into your pi..."
      --> Which directory on the pi should the JSON file be copied to?
    Thank you again for your responding to my questions.

    I have been very satisfied with my Hyperion installation, so I very much look forward to getting it reinstalled correctly and working properly!
     
  6. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    983
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
  7. Arnie

    Arnie New Member

    Messages:
    5
    Hardware:
    RPi2
    Great, thank you so much.
    Only one point is still not clear:
    I belive Hyperion assumes the JSON config file to be in a certain directory so that Hyperion finds it.
    I tried earlier to manually place an old working config file in the hyperion/config directory, but it did not look like Hyperion read it.
    Which is the correct directory for the JSON config file?
     
  8. Arnie

    Arnie New Member

    Messages:
    5
    Hardware:
    RPi2
    I managed to solve this so here is what I did - to help anyone else that runs into a similar situation.
    • The correct folder for the hyperion.config.json file (at least on OpenElec) is: /storage/.config
      Note that this is a hidden folder (name starting with "."), so depending on the software you use for transferring files over SSH, you may need to tweek the preferences to see it. (I use WinSCP; highly recommended)
    • The file generated by Hypercon just does not seem to work: No initial swirl, all LEDs dark. I spent some time to find (and potentially correct) this error, but did not manage to see it, and ended up making adjustments manually to the file that was generated by the Hyperion configuration program embedded in OpenElec. As mentioned earlier, this "kind of worked" (LEDs turned on, but with no possibilities to adjust anything, for instance from RGB to RBG).
    • I copy/pasted entire sections from the file generated by Hypercon, and tested for each step.
    • Finally, to adjust colors, I used the WebApp Remote (http://gamadril.github.io/hyperion-remote/), and used the "Transform" menu to adjust colors. When I found the good settings, I transferred them to the hyperion.config.json file.
    And now finally my beautiful Hypercon installation is again working! :cool:
     
    • Like Like x 1