Hi Gerd
- kannst Du in die Datei "/etc/systemd/system/hyperion.service" folgende Zeile mit hinzunehmen:
Requires=network-online.target
und neu starten?
Damit sollte hyperion erst starten, wenn die Netzwerkkomponenten da sind..
Die Datei würde also folgendermaßen aussehen:
[Unit]
Description=Hyperion ambient light systemd service
Requires=network-online.target
After=network.target
[Service]
ExecStart=/usr/bin/hyperiond
WorkingDirectory=/usr/share/hyperion/bin
User=pi
TimeoutStopSec=5
KillMode=mixed
Restart=on-failure
RestartSec=2
[Install]
WantedBy=multi-user.target
Hilft das?
Alles anzeigen
@Lord-Grey
Hallo,
ich muss das Thema noch mal aufrufen, ich habe auch WLED mit SK6812 LEDs und Hyperion.ng auf einem Debian System (Mein NAS) und testweise auch auf einem Pi3.
Auf beiden Systemen funktioniert der Autostart durch die Einträge in "/etc/systemd/system/hyperion.service".
Nur leider wird beim Starten die LED-Hardware auf dem Debian System nicht automatisch gestartet, muss ich von Hand im Webif bei "Fernbedienung" einschalten.
Beim RaspberryPi3 hingegen funktioniert es problemlos.
Hier mal mein log vom Debian System...
Als ERROR Meldung bekomme ich Folgende...
[hyperiond LEDDEVICE] (ERROR) Device disabled, device 'wled' signals error: 'Network unreachable'
2021-03-03T09:16:28.316Z [hyperiond DAEMON] (INFO) CEC handler created
2021-03-03T09:16:28.321Z [hyperiond EFFECTFILES] (INFO) 39 effects loaded from directory :/effects/
2021-03-03T09:16:28.322Z [hyperiond EFFECTFILES] (INFO) 22 effect schemas loaded from directory :/effects/schema/
2021-03-03T09:16:28.322Z [hyperiond EFFECTFILES] (INFO) 0 effects loaded from directory /.hyperion/custom-effects
2021-03-03T09:16:28.339Z [hyperiond SETTINGSMGR] (DEBUG) (SettingsManager.cpp:109:SettingsManager()) Settings database initialized
2021-03-03T09:16:28.340Z [hyperiond BLACKBORDER] (DEBUG) (BlackBorderProcessor.cpp:64:handleSettingsUpdate()) Set mode to: default
2021-03-03T09:16:28.340Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) Blackborder detector: enabled
2021-03-03T09:16:28.368Z [hyperiond DAEMON] (INFO) set screen capture device to 'qt'
2021-03-03T09:16:28.368Z [hyperiond QTGRABBER] (DEBUG) (Grabber.cpp:30:setVideoMode()) Set videomode to 0
2021-03-03T09:16:28.369Z [hyperiond QTGRABBER] (ERROR) No displays found to capture from!
2021-03-03T09:16:28.369Z [hyperiond DAEMON] (INFO) Qt grabber created
2021-03-03T09:16:28.369Z [hyperiond V4L2:AUTO] (DEBUG) (Grabber.cpp:30:setVideoMode()) Set videomode to 0
2021-03-03T09:16:28.369Z [hyperiond V4L2:AUTO] (INFO) Signal threshold set to: {12, 12, 12}
2021-03-03T09:16:28.369Z [hyperiond V4L2:AUTO] (INFO) CEC detection is now disabled
2021-03-03T09:16:28.369Z [hyperiond V4L2:AUTO] (INFO) Signal detection is now disabled
2021-03-03T09:16:28.369Z [hyperiond V4L2:AUTO] (INFO) Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000
2021-03-03T09:16:28.370Z [hyperiond DAEMON] (DEBUG) (hyperiond.cpp:630:handleSettingsUpdate()) V4L2 grabber created
2021-03-03T09:16:28.371Z [hyperiond JSONSERVER] (DEBUG) (JsonServer.cpp:28:JsonServer()) Created instance
2021-03-03T09:16:28.373Z [hyperiond JSONSERVER] (INFO) Started on port 19444
2021-03-03T09:16:28.376Z [hyperiond LEDDEVICE] (INFO) Start LedDevice 'wled'.
2021-03-03T09:16:28.376Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) Smoothing: enabled
2021-03-03T09:16:28.376Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:56:init())
2021-03-03T09:16:28.376Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:701:selectConfig()) cfg [0]: Type: linear - Time: 200 ms, outputRate 25.000000 Hz, interpolationRate: 25.000000 Hz, timer: 40 ms, Dithering: 0, Decay: 1.000000 -> HalfTime: 100.000000 ms
2021-03-03T09:16:28.376Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:148:init()) deviceConfig: [{"colorOrder":"rgb","currentLedCount":300,"hardwareLedCount":300,"host":"192.168.178.46","latchTime":0,"type":"wled"}]
2021-03-03T09:16:28.376Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:407:setLatchTime()) LatchTime updated to 0ms
2021-03-03T09:16:28.376Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:434:setRewriteTime()) RewriteTime updated to 0ms
2021-03-03T09:16:28.377Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:64:init()) DeviceType : wled
2021-03-03T09:16:28.377Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:65:init()) LedCount : 300
2021-03-03T09:16:28.377Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:66:init()) ColorOrder : rgb
2021-03-03T09:16:28.377Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:67:init()) LatchTime : 0
2021-03-03T09:16:28.377Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:109:initRestAPI())
2021-03-03T09:16:28.377Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:701:selectConfig()) Previous line repeats 1 times
2021-03-03T09:16:28.377Z [hyperiond FLATBUFCONN] (INFO) Connecting to Hyperion: 127.0.0.1:19401
2021-03-03T09:16:28.377Z [hyperiond EFFECTENGINE] (INFO) Run effect "Rainbow swirl fast" on channel 0
2021-03-03T09:16:28.378Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:120:initRestAPI()) [1]
2021-03-03T09:16:28.379Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:148:init()) deviceConfig: [{"colorOrder":"rgb","currentLedCount":300,"hardwareLedCount":300,"host":"192.168.178.46","latchTime":0,"port":19446,"type":"wled"}]
2021-03-03T09:16:28.379Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:407:setLatchTime()) LatchTime updated to 0ms
2021-03-03T09:16:28.379Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:434:setRewriteTime()) RewriteTime updated to 0ms
2021-03-03T09:16:28.379Z [hyperiond LEDDEVICE] (DEBUG) (ProviderUdp.cpp:43:init()) Successfully parsed 192.168.178.46 as an IP-address.
2021-03-03T09:16:28.379Z [hyperiond LEDDEVICE] (DEBUG) (ProviderUdp.cpp:73:init()) UDP socket will write to 192.168.178.46:19446
2021-03-03T09:16:28.379Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:98:init()) Hostname/IP : 192.168.178.46
2021-03-03T09:16:28.379Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:99:init()) Port : 19446
2021-03-03T09:16:28.379Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:103:init()) [1]
2021-03-03T09:16:28.379Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:132:powerOn())
2021-03-03T09:16:28.379Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRestApi.cpp:150:put()) PUT: [http://192.168.178.46/json/state] [{"on":true}]
2021-03-03T09:16:28.380Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:33:initServer()) Initialize Webserver
2021-03-03T09:16:28.380Z [hyperiond PROTOSERVER] (INFO) Started on port 19445
2021-03-03T09:16:28.380Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:33:initServer()) Initialize Webserver
2021-03-03T09:16:28.390Z [hyperiond EFFECTENGINE] (DEBUG) (EffectEngine.cpp:183:runEffectScript()) Start the effect: name [Rainbow swirl fast], smoothCfg [2]
2021-03-03T09:16:28.390Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:161:registerInput()) Register new input 'System/EFFECT' with priority 0 as inactive
2021-03-03T09:16:28.390Z [hyperiond HYPERION] (INFO) Initial foreground effect 'Rainbow swirl fast' started
2021-03-03T09:16:28.391Z [hyperiond BOBLIGHT] (DEBUG) (BoblightServer.cpp:28:BoblightServer()) Instance created
2021-03-03T09:16:28.391Z [hyperiond HYPERION] (INFO) Hyperion instance 'First LED Hardware instance' has been started
2021-03-03T09:16:28.432Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:handleSettingsUpdate()) Apply Webserver settings
2021-03-03T09:16:28.432Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:handleSettingsUpdate()) Set document root to: :/webconfig
2021-03-03T09:16:28.433Z [hyperiond WEBSERVER] (INFO) Started on port 8090 name 'Hyperion Webserver'
2021-03-03T09:16:28.432Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:handleSettingsUpdate()) Apply Webserver settings
2021-03-03T09:16:28.434Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:handleSettingsUpdate()) Set document root to: :/webconfig
2021-03-03T09:16:28.436Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:175:handleSettingsUpdate()) Setup SSL certificate
2021-03-03T09:16:28.436Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:191:handleSettingsUpdate()) Setup private SSL key
2021-03-03T09:16:28.437Z [hyperiond WEBSERVER] (INFO) Started on port 8092 name 'Hyperion Webserver'
2021-03-03T09:16:28.440Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRestApi.cpp:179:getResponse()) Reply.httpStatusCode [0]
2021-03-03T09:16:28.440Z [hyperiond LEDDEVICE] (ERROR) Device disabled, device 'wled' signals error: 'Network unreachable'
2021-03-03T09:16:28.474Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:251:setInputImage()) Priority 0 is now active
2021-03-03T09:16:28.474Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 0
2021-03-03T09:16:28.474Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[0], previousPriority[255]
2021-03-03T09:16:28.475Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:569:handlePriorityChangedLedDevice()) new source available -> switch LED-Device on
2021-03-03T09:16:36.639Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:315:setCurrentTime()) Timeout clear for priority 0
2021-03-03T09:16:36.639Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 0
2021-03-03T09:16:36.640Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[0], previousPriority[0]
2021-03-03T09:16:36.890Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 255
2021-03-03T09:16:36.890Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[255], previousPriority[0]
2021-03-03T09:16:36.890Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:562:handlePriorityChangedLedDevice()) No source left -> switch LED-Device off
2021-03-03T09:16:39.286Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient()) New connection from ::ffff:192.168.178.33
2021-03-03T09:16:39.287Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:81:handleInstanceSwitch()) Client '::ffff:192.168.178.33' switch to Hyperion instance 0
2021-03-03T09:16:47.475Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1054:handleLoggingCommand()) log streaming activated for client ::ffff:192.168.178.33
Alles anzeigen
Auch der Eintrag "Requires=network-online.target" in hyperion.service hat keine Änderung gebracht.
Vielleicht hast Du ja noch eine Idee was man da machen kann.
Gruß sigi28