The new idle.py is now a part of the LinHES 8.3 installation and upgrade.

(NO more any change in idle.py !!)

After update the LinHES-system (8.3-15 -> 8.3-19) the new version is online.solution is in posting #4

THIS IS FOR INFORMATION ONLY

Hi,I use my Mythbackend server as a Samba server to share my music and picture files for connected windows client PCs. On my windows machine I have an wake-on-lan batch file (WolCmd.exe) that can remotely start the Mythbackend server.Mythwelcome and the LinHES script “/usr/LH/bin/idle.py” without some modifications have no check for active windows client connection.I have basic experience in Linux shell scripting, but not in python programming language. But I found a solution to check for active samba connections.

You can do the following steps:1) Make a copy of the file /usr/LH/bin/idle.py2) Cut and Replace the function “userlogins_check” 3) Save the change in a NEW file /usr/LH/bin/idle-samba.py4) Test the script with an active samba share5) Make a backup copy of the file /usr/LH/bin/mythwelcome-config.py6) Modify and execute the file /usr/LH/bin/mythwelcome-config.py7) Check in mythtv-setup the new setting of wake up

Thanks for updating the idle.py, that is now a part of the LinHES 8.3 installation and upgrade.

(NO more any change in idle.py !!)

After update the LinHES-system (8.3-15 -> 8.3-19) the new version is online.

Code:

usage: idle.py [-h] [-d] [-g] [-f] [-l] [-r] [-s] [-t TIME] [-u]

optional arguments: -h, --help show this help message and exit -d, --daily Include daily wake & about to start wake in system busy. (default: daily wake & about to start wake is system idle) -g, --logins Include user logins in system busy. Ignores mythtv (:0) in system busy. -f, --sambafiles Include Samba files in use in system busy. -l, --lock Include mythshutdown lock in system busy. (default: mythshutdown lock is system idle) -r, --runningfe Include running mythfrontends in system busy. (default: running mythfrontends are system idle) -s, --silent Run without printing output. Recommended for use in cron jobs or scripts. -t TIME, --time TIME Minutes of idle time needed to return idle for upcoming recordings and daily wake. -u, --usage Print usage instructions.

If you check for user logins and Samba files in use, use this settings of the /usr/LH/bin/idle.py

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum