I never guessed to write a small python script. This was a great idea and hint from you. I alwas tried to find a working solution like etherwake. The WakeOnLan script is working great so far, if executed manually. Unfortunately my cronjob isn't ^^ still working on that issue and learning a lot. I'll write the whole solution here when everything is working so far.
@k.mason said:
The key is that we have to wait until rasplex has a network connection. I found that 5 seconds worked fine and it shouldn’t slow the boot.
You can set a ‘Wait for network’ in System Settings->Network.
Will this also work when rasplex has gone on pause , but not turned off ? will it be able to send maigic packed when it is used again , or does anyone have a better idea of how it will be possible.
@clausomoe said:
Will this also work when rasplex has gone on pause , but not turned off ? will it be able to send maigic packed when it is used again , or does anyone have a better idea of how it will be possible.
Resuming from paused playback does not constitute a restart of the software, so any scripts whose launch is triggered by a real restart (as through “autostart.sh”) will not be invoked by such resumption. The RPi should of course be able to send a WoL packet anyway, if only the script for doing so could be triggered somehow by this resumption, but I’m not sure how to do this, or even if it can be done at all…
The CEC settings include one setting to wake other devices when interrupting the screensaver, which could be what happens when you come back to RasPlex to resume after a long pause. But that is of course a wakeup through HDMI, not WoL. But perhaps it is possible to link some script launch to this kind of event too, though that may require some modification to the program code. (not sure)
Thank you, Dlanor, for your input, unfortunately I do not have any skills in programming . But if there is a kind soul out there who think they can have a solution , I will be very happy to
Hi everyone, I did as k. mason told, but no success. My RasPlex Client starts, but the server doesn’t wake up.
Is this all I have to write into the Python Script or is something missing? I found another WakeOnLan Script but that one is much longer.
I should add, I’m a total idiot when it comes to coding.
Update: So I’ve got the wol.py running, but only when i execute it in the command line. When I try it through a restart of my Pi, the autostart.sh doesn’t turn my server on.
Update 2: Now it works. Thanks for the Script, really appreciate it.
I used the above script that k.mason kindly contributed to wake us an Asustor NAS.
And I can confirm that it works perfect. I made no changes other than the MAC address I needed to enter.
Hello to everybody, i need a step by step guide to make the script in my rasplex, i try, but no goal.
SSomeone linux 's user could help me ??
Thanks in advance!.
Marco.