Normal
Yes, this is possible. In the past it was a little difficult but since Hyperion V1.03.0 you can start two Hyperion configs with only one service file. I have attached my two hyperion config files (for my APA102 strip and the AtmoOrb). You only have to activate forwarder in your main config (APA102 in my case):[code] "forwarder" : { "proto" : ["127.0.0.1:19447"], "json" : ["127.0.0.1:19446"] },[/code]Additionally you have to configure the ports accordingly in the second configuration file:[code] "jsonServer" : { "port" : 19446 }, "protoServer" : { "port" : 19447 },[/code]Also you have to edit your hyperion service. I can only tell you how to do this for systemd because that is what I have on the latest OSMC. You have to edit [code]/etc/systemd/system/hyperion.service[/code] and append the path to your second configuration file to ExecStart:[code]ExecStart=/usr/bin/hyperiond /etc/hyperion/hyperion.config.json /etc/hyperion/hyperion.config2.json[/code]It might be necessary to use [code]sudo systemctl daemon-reload[/code] after that. Then just restart the service with [code]sudo systemctl restart hyperion.service[/code] (this might not be necessary after the previous command - I am not a linux guru - but does not hurt) or reboot the Pi and it should work.
Yes, this is possible. In the past it was a little difficult but since Hyperion V1.03.0 you can start two Hyperion configs with only one service file. I have attached my two hyperion config files (for my APA102 strip and the AtmoOrb). You only have to activate forwarder in your main config (APA102 in my case):
[code] "forwarder" :
{
"proto" : ["127.0.0.1:19447"],
"json" : ["127.0.0.1:19446"]
},[/code]
Additionally you have to configure the ports accordingly in the second configuration file:
[code] "jsonServer" :
"port" : 19446
},
"protoServer" :
"port" : 19447
Also you have to edit your hyperion service. I can only tell you how to do this for systemd because that is what I have on the latest OSMC. You have to edit [code]/etc/systemd/system/hyperion.service[/code] and append the path to your second configuration file to ExecStart:
[code]ExecStart=/usr/bin/hyperiond /etc/hyperion/hyperion.config.json /etc/hyperion/hyperion.config2.json[/code]
It might be necessary to use [code]sudo systemctl daemon-reload[/code] after that. Then just restart the service with [code]sudo systemctl restart hyperion.service[/code] (this might not be necessary after the previous command - I am not a linux guru - but does not hurt) or reboot the Pi and it should work.