I have created an windows UWP app to install it on a rp 3 running windows IoT.
That worked out ok. When I boot, the app starts/works like it should. Cool.
This app, will be used for real to show information on a TFT display (no real input, just getting data and displaying it).
Now I need a way to power on/power off the system since it should not run over night. Power consumption is no problem, but we don't want to risk any power device to cause a fire when no one is there.
The idea is the system is turned on in the morning, and turned off in the evening. This should be a manual operation since start/end ours are very flexible.
Off course, I can put a power supply with a power switch included in front of both screen and raspberry power adapters.
But, that is not what I want. Cutting the power like that will potentially screw up the SD card (i think!)
What I want to do, is include a "push" button in the by manually adding it to my RP plastic box.
When hit, it should boot or shut down, depending on it's state (running or not running).
I have read some topics, and it seems like powering on/off needs to by done by a script.
I don't get that idea, since turning off might work, but in the other direction: how can you run a script (to power up) when the OS is not running?
Also, if powering on/off should be done via script, how do I include this in my windows iot install?
I read some topics about a python script, but how can I use python scripts combined with the windows IoT boot files?
The only files now on the SD card (that is inserted in the RP 3) is pushed via the windows 10 IoT Core dashboard (install app, browse for app package). I have no idea where I should put those scripts ...
Can anyone help this lost soul to launch this crazy stuff for real?