Json-RCP API Adjustments not saved?

  • I'm doing some adjustments light brightness and gamma via the json-rpc API, and I see them working. But when I restart hyperion my adjustments are gone. They also don't reflect in the Web GUI. Is there a way to make these adjustments permanent?

  • Everything that is set via remote control is lost after a restart, this is also the same in the WebUI.

    Zitat von WebUI - Remote Control

    Note: All changes will be lost after a restart.

    regards pclin

    Dreambox ONE / TWO

    dreamOS OE2.6

    Amlogic S922X - 53.000 DMIPS - 2 GB RAM - 16 GB Flash - Twin-DVB-S2X Tuner - HDR10 - HLG
    -
    AudioDSP: miniDSP 2x4HD - Amp: Pentagon - Lautsprecher ELAC / ARENDAL
    LG OLED65BX9LB (PicCap, hyperion.NG webOS)

    FireTV 4K max

    -
    hyperion (classic) & Plugin HyperionControl | hyperion-ng 2.0.16-beta.1 (dreamOS)
    Hyperion-ng (Debian bullseye)
    -
    6 x ESP32/Wemos D1 mini - WLED - SK6812 RGBW-NW 60 LEDs/m
    FeinTech VSP01201 - Grabber Macrosilicon

    LG TV Hyperion webOS & PicCap


    snoozer_likelinux_manvtkns.gif


    Ambilight for ever

  • If I change settings in the Web UI for Image Processing on an Led Instance they do get saved after restart.


    But why are the API changes not saved? What is the logic? I don't understand.


    Is there another way to change the startup setting? Maybe in the sqlite database?

    • Offizieller Beitrag

    If I change settings in the Web UI for Image Processing on an Led Instance they do get saved after restart.

    Could you share some screenshots how you do the changes and show where the changes adjustments are not saved?

    Please include the Hyperion version and maybe your configuration.

    But why are the API changes not saved?

    The current public API is about controlling behavior of resources dynamically.

    The API to configure resources is currently not officially/publicly available as additional security aspects need to be considered.

  • Here is some (shortened) Python code. Hyperion version 2.0.13. I would be very interested in the configure API.

    Code
    s = requests.Session()
    s.post("http://127.0.0.1:8090/json-rpc", data = '{"command" : "instance","subcommand" : "switchTo","instance" : 2}')
    brightness = 100 
    gamma_red = 1.5 
    json = '{"command":"adjustment", "adjustment":{"brightness":' + str(brightness)  + ',"gammaRed":' + str(gamma_red) + '}}' 
    s.post("http://127.0.0.1:8090/json-rpc", data = json) 
  • Hyperion Version 2.0.13. Apparently I'm not allowed to post code? How can I show what I'm doing?


    This is basically what I'm doing but then with Python:


    curl -i -X POST 'http://127.0.0.1:8090/json-rpc' --data '{"command" : "instance","subcommand" : "switchTo","instance" : 2}' --next 'http://127.0.0.1:8090/json-rpc' --data '{"command": "adjustment", "adjustment":{"brightness":100}}'


    And I would be very interested in a configuration API.

    Einmal editiert, zuletzt von sioux () aus folgendem Grund: Merged a post created by sioux into this post.

    • Offizieller Beitrag

    I started with some changes re to expose the config API a while back, but need to check where I left…


    Just for my curiosity, what is the problem that you would like to solve with a configure API which is not covered by the dynamic one?

  • Well I want to make a simple user interface for my users where you can only can change a few settings like brightness and maybe gamma/color correction. I don't want to give them access to the Hyperion web interface because they will make a mess and I can come over to fix it again. And I would like these settings to be saved on reboot. Alternatively I have to write a script to redo their settings on reboot, but if Hyperion crashes (and how would I know that?) they will get the old (my original) settings back. Or I have to do these settings every minute or something and that doesn't seem right either. If you have other ideas how to solve this I'd be more than happy to hear.

  • No problem. Do you have any recommendation for me? I do understand by the way that you don't want do save every on the fly adjustment to the database. That would take way to much time en resources. But maybe a save command in the API?

  • Zitat

    I started with some changes re to expose the config API a while back, but need to check where I left…

    Did you look into the configuration API? Any chance you can share it with me?

  • I've created PoC for my automatic color calibrator via iphone camera and it works good for my setup but i can't save settings via available API, so, i still need to put numbers and save them manually.

    Here you can see default RED color (255,0,0) against adjusted via camera (255,22,2). Camera feed used to compare tv screen with wall color, no need to have 100% white balance/color match in this case.


    Some progress with WHITE calibration. Full automation, just clicking on button after proper camera position.

    2 Mal editiert, zuletzt von 350D () aus folgendem Grund: Merged a post created by 350D into this post.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!