Announcement

Collapse
No announcement yet.

PERL: HS MainLobby - Song Count Display

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    PERL: HS MainLobby - Song Count Display

    Here's a handy little script I find really useful. It's a basic file counter that totals up the number of song files in "My Music" or any other directory to a virtual device and also writes to a txt file for optional use. Modify any way you want.



    • Download the zip file
    • Extract to HS scripts directory
    • Create events to run "SongCount.pl" and "SongCountVR.pl" .
    • create a virtual device
    • Open up the scripts and modify to read from whatever directory you want and whatever file ending...default is wildcard.
    Files included are:
    SongCount.pl (Script that counts the files and assigns to virtual device)
    SongCountVR.pl (TTS value of virtual device)
    SongCount.txt (Optional use: SongCount.pl writes the total file count number to this text file if you want to use it for something)

    You will need at a minimum:
    HomeSeer
    ActiveState Perl
    Install Perl Module File::List (Use Active States PPM with the command: install File::List

    Optional Software:
    MainLobby
    MLHS Plugin
    ML Server

    What I am doing with it:
    Having HS speak the total number of songs
    Displaying the total song count of my library in MusicLobby. I have an event that runs this script once per night to pick up any new songs I've ripped that day. It's pretty cool to ask HS "Song Count"...
    Attached Files
    Last edited by kevind; September 7, 2005, 06:47 PM.
Working...
X