Req Add-on : copy file every minute (keepAwake) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222) +--- Forum: Feature Requests (https://forum.kodi.tv/forumdisplay.php?fid=9) +--- Thread: Req Add-on : copy file every minute (keepAwake) (/showthread.php?tid=379491) |
Add-on : copy file every minute (keepAwake) - Aphykit2006 - 2024-11-22 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. RE: Add-on : copy file every minute (keepAwake) - Hitcher - 2024-11-22 Why not set the server to never sleep? RE: Add-on : copy file every minute (keepAwake) - Aphykit2006 - 2024-11-22 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 RE: Add-on : copy file every minute (keepAwake) - pkscout - 2024-11-22 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. RE: Add-on : copy file every minute (keepAwake) - Aphykit2006 - 2024-11-23 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: sleep 60 done Regards RE: Add-on : copy file every minute (keepAwake) - pkscout - 2024-11-23 There's something strange with your Windows server setup then. A server shouldn't go to sleep if something is actively accessing a file. RE: Add-on : copy file every minute (keepAwake) - Aphykit2006 - 2024-11-23 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 RE: Add-on : copy file every minute (keepAwake) - Hitcher - 2024-11-23 Why not use a Kodi screensaver that accesses a folder on your server? RE: Add-on : copy file every minute (keepAwake) - Aphykit2006 - 2024-11-23 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. RE: Add-on : copy file every minute (keepAwake) - PatK - 2024-11-23 On the wild side: I suppose keep audio device alive in system does nothing for this issue? RE: Add-on : copy file every minute (keepAwake) - Aphykit2006 - 2024-11-23 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 RE: Add-on : copy file every minute (keepAwake) - Fuchs2468 - 2024-11-23 I think there is a Kodi addon that could achieve the result you want. In the Kodi repo there is only a Python 2 version of it. https://kodi.wiki/view/Add-on:Kodi_Callbacks#List_of_events But here is a Python 3 version. https://github.com/pikim/script.service.kodi.callbacks I haven't tested it yet, take a look. Maybe it will help you. |