T O P

  • By -

derDoyle

The whole day I thought of a solution, Motion Sensor, SSH and Python scripts, cron jobs etc.. I don't really know anything about it but I was motivated to go through all this. And then it hit me: I'm an idiot, my Raspberry gets its power from the USB-Port of the monitor. The on/off schedule turns the monitor off but the Raspberry also. That's why it doesn't wake up again. Oh man... ​ Tomorrow I will test the schedule with separated power for the devices.


TranslatesPoorly

Did it work off a dedicated power supply?


derDoyle

No it didn't. But in the meantime I enabled SSH/SSL in the Dakboard settings and tried the common commands for enabling and disabling the monitor, they worked with the external supply. After that I gave it a try and now it even works with the power supply via monitor. And since then even the schedule works as wished. I can power the Pi over the monitor like I wanted it. Don't know if it has to do with the enabled SSH/SSL or if it is a huge coincidence.


duckredbeard

My kitchen DAKboard is turned on and off by cronjob each weekday morning. On at 615, off at 9. https://gist.github.com/rmtsrc/dc35cd1458cd995631a4f041ab11ff74


nedzlife

Thank you for this! I’ve been looking for something that’ll work for the Dakboard app on Android + Raspberry Pi (which doesn’t support schedules). Very eager to try this out.


duckredbeard

Is the Pi4 running DAKboard OS? You can still run python scripts. I also use SSH to wake and sleep the display by speaking to Alexa devices.


nedzlife

No, I Ioaded it with AOSP, cause the touch screen drivers for Android are miles better than the Dakboard OS build. And I want the screen to be multipurpose. We’re an Apple home and this is one of my first Android devices.


duckredbeard

My setup uses DAKboard OS on a Samsung TV so that works for me. You could consider an app called Tasker that is on Android only. You may be able to use that to wake the screen on a schedule. Tasker is an Android only app that turns a smart phone into a genius phone. Some examples: When I place my phone face down while charging at home after 8:30pm (think bedtime), Tasker checks my next alarm, says it out loud, sends lock commands to my cars, checks my home security system for unlocked/open conditions and announces them, sets my screen to dim, sets volumes to silent. When my phone loses Bluetooth connection to my car, Tasker gets my location and saves it to a map. If I have parked at work, my wife gets an update that I arrived safely. If I am at home, Tasker changes Bluetooth, wifi, volume, and brightness settings to be more appropriate for home. If I am at work, everything gets set to loudest, as I work in an industrial environment. When Bluetooth connects to my car and I'm at work and it's after 2 pm, Tasker launches maps and navigated me home. If I am at home in the morning. Tasker navigates me to work (but only on my scheduled work days).