Beiträge von sioux

    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?

    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.

    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.

    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) 

    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?

    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?

    I had been testing with 96 leds ever since I encountered the problem. I switched back to 192 leds now to test and now it works????? I didn't change my code. I did switch to another capture device. So maybe my input wasn't clean. I don't know. But it seems to have been a problem on my end. I'm very sorry. Please close this thread and accept my apologies.


    Hi,


    I created an udpraw output data. I defined 192 leds. I Made a Led Frame layout with top 64, bottom 64,left 32, right 32 leds. When I read the UDP stream I get 567 packets which is correct (192 * RGB). But when I display the data it looks like only the first 381 (127 * RGB) bytes values are correct. After that I get garbage? Is this a bug?


    Michel