Lange ist es her, das ich mich zum einen hab hier blicken lassen... und zum anderen, dass ich mal wieder an mein Ambilight wage.
Auslöser dafür ist, das ich mein HUE System etwas erweitert habe um eine HUE Go und ein Stripe von Hue. Das würde ich nun gerne in mein bestehendes System integrieren. Damals habe ich dies erfolgreich unter KODI geschafft, aber das wird ja nach meinem letzten Stand schon länger nicht mehr weite entwickelt. OSMC gibt aber auch mehr Möglichkeiten zum spielen auf dem Pi.
Jedenfalls habe ich nun eine neue Konfiguration für mein HUE erstellt und konnte sogar die HUE Lampe(n) erfolgreich mit Hypercon steuern. Auch auf die Farben vom Bild reagiert das ganze, sprich es funktioniert. Was leider nicht funktioniert, ist das parallele Zusammenspiel. Unter KODI musste man im Autostart die zwei config Dateien ansteuern, damit sie beide laufen. Unter OSMC habe ich das auch versucht, indem ich im Verzeichnis "/etc/systemd/system" die hyperion.service Datei dupliziert habe und den Pfad zur Config auf meine "hyperionhue.config.json" gesetzt habe. Doch die zweite Instanz startet nicht. Füge ich den Pfad in die hyperion.service zu der anderen vorhandenen mit ein, funktioniert das System nicht mehr.
Auch scheint es nicht zu reichen, das in der hyperion.config das Forward für die Ports von json und proto eingerichtet ist.
Ich tippe also auf einen Fehler im Autostart, den ich mache. Ich weiß aber nicht, wie ich diesen korrigieren kann. Hat jemand einen Tipp, was ich nun ausprobieren kann?
Meine beiden Configs füge ich mal bei...
// Automatically generated configuration file for Hyperion ambilight daemon
// Notice: All values are explained with comments at our wiki: wiki.hyperion-project.org (config area)
// Generated by: HyperCon (The Hyperion deamon configuration file builder)
// Created with HyperCon V1.03.3 (22.10.2017)
{
// DEVICE CONFIGURATION
"device" :
{
"name" : "hyperion.config",
"type" : "ws2801",
"output" : "/dev/spidev0.0",
"rate" : 1000000,
"colorOrder" : "rbg"
},
// COLOR CALIBRATION CONFIG
"color" :
{
"channelAdjustment" :
[
{
"id" : "default",
"leds" : "*",
"pureRed" :
{
"redChannel" : 180,
"greenChannel" : 0,
"blueChannel" : 0
},
"pureGreen" :
{
"redChannel" : 0,
"greenChannel" : 255,
"blueChannel" : 0
},
"pureBlue" :
{
"redChannel" : 0,
"greenChannel" : 0,
"blueChannel" : 180
}
}
],
"temperature" :
[
{
"id" : "default",
"leds" : "*",
"correctionValues" :
{
"red" : 255,
"green" : 255,
"blue" : 255
}
}
],
"transform" :
[
{
"id" : "default",
"leds" : "*",
"hsl" :
{
"saturationGain" : 1.0000,
"luminanceGain" : 1.0000,
"luminanceMinimum" : 0.0000
},
"red" :
{
"threshold" : 0.0000,
"gamma" : 2.5000
},
"green" :
{
"threshold" : 0.0000,
"gamma" : 2.5000
},
"blue" :
{
"threshold" : 0.0000,
"gamma" : 2.5000
}
}
],
// SMOOTHING CONFIG
"smoothing" :
{
"type" : "linear",
"time_ms" : 200,
"updateFrequency" : 20.0000,
"updateDelay" : 0
}
},
// V4L2 GRABBER CONFIG
"grabber-v4l2" :
{
"device" : "/dev/video0",
"input" : 0,
"standard" : "PAL",
"width" : -1,
"height" : -1,
"frameDecimation" : 2,
"sizeDecimation" : 8,
"priority" : 900,
"mode" : "2D",
"cropLeft" : 17,
"cropRight" : 18,
"cropTop" : 3,
"cropBottom" : 3,
"redSignalThreshold" : 0.0,
"greenSignalThreshold" : 0.0,
"blueSignalThreshold" : 0.0
},
// BLACKBORDER CONFIG
"blackborderdetector" :
{
"enable" : true,
"threshold" : 0.0,
"unknownFrameCnt" : 600,
"borderFrameCnt" : 50,
"maxInconsistentCnt" : 10,
"blurRemoveCnt" : 1,
"mode" : "default"
},
// BOOTEFFECT CONFIG
"bootsequence" :
{
"color" : [0,0,0],
"effect" : "Rainbow swirl fast",
"duration_ms" : 10,
"priority" : 850
},
// JSON SERVER CONFIG
"jsonServer" :
{
"port" : 19444
},
// PROTO SERVER CONFIG
"protoServer" :
{
"port" : 19445
},
// JSON/PROTO FORWARD CONFIG
"forwarder" :
{
"json" : ["127.0 0.1:19446"],
"proto" : ["127.0 0.1:19447"]
},
// EFFECT PATH
"effects" :
{
"paths" :
[
"/storage/hyperion/effects",
"/usr/share/hyperion/effects"
]
},
// NO FRAME GRABBER CONFIG
// NO KODI CHECK CONFIG
// NO BOBLIGHT SERVER CONFIG
// LED CONFIGURATION
"leds" :
[
{
"index" : 0,
"hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
"vscan" : { "minimum" : 0.9818, "maximum" : 1.0000 }
},
{
"index" : 1,
"hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
"vscan" : { "minimum" : 0.9818, "maximum" : 1.0000 }
},
{
"index" : 2,
"hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
"vscan" : { "minimum" : 0.9636, "maximum" : 0.9818 }
},
{
"index" : 3,
"hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
"vscan" : { "minimum" : 0.9455, "maximum" : 0.9636 }
},
(((Gekürzt.....)))
],
"endOfJson" : "endOfJson"
}
Alles anzeigen
und die Config von HUE:
// Automatically generated configuration file for Hyperion ambilight daemon
// Notice: All values are explained with comments at our wiki: wiki.hyperion-project.org (config area)
// Generated by: HyperCon (The Hyperion deamon configuration file builder)
// Created with HyperCon V1.03.3 (22.10.2017)
{
// DEVICE CONFIGURATION
"device" :
{
"name" : "hyperion.hue.config",
"type" : "philipshue",
"output" : "192.168.152.77",
"transitiontime" : 1,
"switchOffOnBlack" : true,
"username" : "Vw8n2mo282qSoFN29XXXXXXXXXXXXXXXXXXXXXX",
"colorOrder" : "rgb",
"lightIds" : [34]
},
// COLOR CALIBRATION CONFIG
"color" :
{
"channelAdjustment" :
[
{
"id" : "default",
"leds" : "*",
"pureRed" :
{
"redChannel" : 255,
"greenChannel" : 0,
"blueChannel" : 0
},
"pureGreen" :
{
"redChannel" : 0,
"greenChannel" : 255,
"blueChannel" : 0
},
"pureBlue" :
{
"redChannel" : 0,
"greenChannel" : 0,
"blueChannel" : 180
}
}
],
"temperature" :
[
{
"id" : "default",
"leds" : "*",
"correctionValues" :
{
"red" : 255,
"green" : 255,
"blue" : 255
}
}
],
"transform" :
[
{
"id" : "default",
"leds" : "*",
"hsl" :
{
"saturationGain" : 1.0000,
"luminanceGain" : 1.0000,
"luminanceMinimum" : 0.0000
},
"red" :
{
"threshold" : 0.0000,
"gamma" : 2.5000
},
"green" :
{
"threshold" : 0.0000,
"gamma" : 2.5000
},
"blue" :
{
"threshold" : 0.0000,
"gamma" : 2.5000
}
}
]
// NO SMOOTHING CONFIG
},
// V4L2 GRABBER CONFIG
"grabber-v4l2" :
{
"device" : "/dev/video0",
"input" : 0,
"standard" : "PAL",
"width" : -1,
"height" : -1,
"frameDecimation" : 2,
"sizeDecimation" : 8,
"priority" : 900,
"mode" : "2D",
"cropLeft" : 17,
"cropRight" : 18,
"cropTop" : 3,
"cropBottom" : 3,
"redSignalThreshold" : 0.0,
"greenSignalThreshold" : 0.0,
"blueSignalThreshold" : 0.0
},
// BLACKBORDER CONFIG
"blackborderdetector" :
{
"enable" : true,
"threshold" : 0.0,
"unknownFrameCnt" : 600,
"borderFrameCnt" : 50,
"maxInconsistentCnt" : 10,
"blurRemoveCnt" : 1,
"mode" : "default"
},
// JSON SERVER CONFIG
"jsonServer" :
{
"port" : 19446
},
// PROTO SERVER CONFIG
"protoServer" :
{
"port" : 19447
},
// EFFECT PATH
"effects" :
{
"paths" :
[
"/storage/hyperion/effects",
"/usr/share/hyperion/effects"
]
},
// NO FRAME GRABBER CONFIG
// NO KODI CHECK CONFIG
// NO BOOTEFFECT CONFIG
// NO BOBLIGHT SERVER CONFIG
// NO JSON/PROTO FORWARD CONFIG
// LED CONFIGURATION
"leds" :
[
{
"index" : 0,
"hscan" : { "minimum" : 0.0000, "maximum" : 1.0000 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.0100 }
// },
// {
// "index" : 1,
// "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
// "vscan" : { "minimum" : 0.0000, "maximum" : 1.0000 }
// },
// {
// "index" : 2,
// "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
// "vscan" : { "minimum" : 0.0000, "maximum" : 1.0000 }
}
],
"endOfJson" : "endOfJson"
}
Alles anzeigen