Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Req Add-on : copy file every minute (keepAwake)
#1
Hello
I'm looking for an add-on that allows me to copy a file from kodi (CoreElec) to my server (windows / smb)

Automatic (or delayed) start
Repeat every minute .
The goal is to keep my windows server awake.

Thank you.
Windows 10 + MariaDB base + Matrix | Kodi Build for intel Kodi-Native 3D MVC Playback (as possible)
Skin Titan Mod | Link: Color themes for Titan Mod | Link: Littles mods
For Intel Nuc : Kit Mpc-HC/BE : Config External player with 3D and Pathrought
Reply
#2
Why not set the server to never sleep?
Reply
#3
Hello
For many reasons
Noise, wear and tear, power consumption, and let him sleep.
It's a windows machine that is used for everything and that I prefer turned off by default.

I know how to do it by batch on windows (but not on coreelec) and it works very well. A copy of a small file (1 character) is enough to keep a server awake. But I think that a kodi add-on is more durable and will be useful to other users.

Regards
Windows 10 + MariaDB base + Matrix | Kodi Build for intel Kodi-Native 3D MVC Playback (as possible)
Skin Titan Mod | Link: Color themes for Titan Mod | Link: Littles mods
For Intel Nuc : Kit Mpc-HC/BE : Config External player with 3D and Pathrought
Reply
#4
I'm confused.  You say you want to copy a file to keep your server awake, but then you say you want to let it sleep.  Which is it?

If what you're trying to do is only have the server on when Kodi needs it, you might want to look at the Wake On LAN addon:

https://kodi.wiki/view/Add-on:Advanced_Wake_On_Lan

That would wake the server.  Then as long as Kodi is accessing a file on the server it should stay awake.  If you want to wake it on a schedule, it looks like you could do it using that.
Reply
#5
Hello
Thank you for the answer.
I already tested all these solutions.
WOL wakes up but doesn't keep awake.
And a large delay ( before enter in sleep mode ) shifted just the problem.

I just want to keep the server awake while kodi is on. Hibernate after.
Idle = 70 watt, sleep mode = 3w, hibernate = 1,5w

As movie playback is finished, the server shuts down, if its deadline is exceeded.
This blocks...
Then Wol wakes him up.
My system is différent than ping to check if the server is on and send a Wol after.

Ideally, it would be added to the Advanced wol program, which would have an additional feature

Someting like that

while true; do
echo time > hello.txt
scp hello.txt @192.168.1.100: Huh

sleep 60
done

Regards
Windows 10 + MariaDB base + Matrix | Kodi Build for intel Kodi-Native 3D MVC Playback (as possible)
Skin Titan Mod | Link: Color themes for Titan Mod | Link: Littles mods
For Intel Nuc : Kit Mpc-HC/BE : Config External player with 3D and Pathrought
Reply
#6
There's something strange with your Windows server setup then.  A server shouldn't go to sleep if something is actively accessing a file.
Reply
#7
Good morning.
I don't explain very well, and also the automatic translation.
The movie server is also a MariaDB SQL server. He must stay on during Kodi stations.
And I don't like it to stay on 24 hours a day (I'm married).
So I need it to remain accessible by kodi, even if I don't play a movie and it stops afterwards.
My server behaves normally: it stays awake during movie playback and goes into hibernation afterward.
I want it to wait until kodi is turned off to hibernate.

Example.
Kodi startup -> wol server: ok.
Movie playback -> server stays on:ok.
After the film, local reading....ok but
Meanwhile, the server turns off: not ok. (Wol is not enough)
Kodi, back to the menu and start a movie: not ok, blocked
I have plenty of other examples.

Can you help me with my need?

By the way: artistslideshow works perfectly with the titan skin (kodi omega)
Regards
Windows 10 + MariaDB base + Matrix | Kodi Build for intel Kodi-Native 3D MVC Playback (as possible)
Skin Titan Mod | Link: Color themes for Titan Mod | Link: Littles mods
For Intel Nuc : Kit Mpc-HC/BE : Config External player with 3D and Pathrought
Reply
#8
Why not use a Kodi screensaver that accesses a folder on your server?
Reply
#9
Hello
Good idee... But a screensaver doesn't set during local playback, or radio listening, or searching, or pausing.
I look for a task in the background.
At worst I will elaborate, but I would have liked it to be well done and shared with the community. (I've never developed an add-on, I'll need examples that look a bit similar)

Thank you both for taking an interest in my request.
Windows 10 + MariaDB base + Matrix | Kodi Build for intel Kodi-Native 3D MVC Playback (as possible)
Skin Titan Mod | Link: Color themes for Titan Mod | Link: Littles mods
For Intel Nuc : Kit Mpc-HC/BE : Config External player with 3D and Pathrought
Reply
#10
On the wild side: I suppose keep audio device alive in system does nothing for this issue?
Reply
#11
Hi
You assume correctly.
Maintaining the sound does not affect the server.

I couldn't find any other solution than to regularly send a file to the server. I haven't tested with the reading.

Regards
Windows 10 + MariaDB base + Matrix | Kodi Build for intel Kodi-Native 3D MVC Playback (as possible)
Skin Titan Mod | Link: Color themes for Titan Mod | Link: Littles mods
For Intel Nuc : Kit Mpc-HC/BE : Config External player with 3D and Pathrought
Reply

Logout Mark Read Team Forum Stats Members Help
Add-on : copy file every minute (keepAwake)0