sinedied / dmx-hue

:traffic_light: Art-Net node to control Philips Hue lights with DMX
MIT License
185 stars 22 forks source link

"No lights found" when running as a cron job #8

Closed socketfork closed 4 years ago

socketfork commented 5 years ago

I've been running into a strange issue where dmx-hue returns the error "No lights found" when running as a cron job. After booting, I can start the service manually just fine and it reads all the settings from the config file, but for some reason, it doesn't read the config file when running as a @reboot cron job. I've tried this both from the user account and the root account (trying to get this running on an rPi).

Any idea what might be causing this behavior?

sinedied commented 5 years ago

The config file should be stored somewhere in ~/.config, maybe at the time the app tries to read it when starting as a cron job the current user directory alias is not set correctly? My guess would have been to try starting the app with your regular user account but seems you already tried it, so I'm not sure. You can try running echo ~ > /somewhere/debug.txt && dmx-hue in your cron job to see which user path is used at this point.