Timeline for running python script as service and calling functions from another program
Current License: CC BY-SA 4.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 29, 2020 at 15:07 | vote | accept | nwales | ||
Jan 27, 2020 at 2:03 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Sep 28, 2019 at 18:02 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
May 31, 2019 at 17:04 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jan 31, 2019 at 12:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Oct 26, 2018 at 16:50 | answer | added | nwales | timeline score: 0 | |
Oct 22, 2018 at 23:38 | comment | added | Ingo | In general it is possible to run programs as service with systemd and you have very much possibilities to manage it, e.g. by setting the environment and rights or use dependencies to other services (start before/after). But it makes less sense to speculate if we do not have a program. I suggest that you make a simple systemd Unit file just only for starting your program and improve it step by step until it works. | |
Oct 22, 2018 at 17:40 | comment | added | nwales | No, not easily. It's not really a single high/low setting that is controlling the LEDS. I'm using github.com/jgarff/rpi_ws281x | |
Oct 22, 2018 at 17:32 | comment | added | Seamus | Can't you read the state of the GPIO pin to get state? | |
Oct 22, 2018 at 17:26 | comment | added | nwales | I want to keep the state of the led lights - knowing the current status of any animation that they might be playing. Additionally, I have to run some initialization before controlling the light strips (neo-pixels) and my thinking is that it would be more performant to create that 1x and keep it in memory vs creating/destroying it over and over. | |
Oct 22, 2018 at 16:19 | comment | added | Seamus | Would you please elaborate just a bit on what "state(s)" you need to keep track of? | |
Oct 22, 2018 at 15:40 | review | First posts | |||
Oct 22, 2018 at 23:50 | |||||
Oct 22, 2018 at 15:38 | history | asked | nwales | CC BY-SA 4.0 |