Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automate SqueezeBox music library rescan based on new additions?
#1
This question has a couple parts - the ultimate goal is to automate the end to end addition of new ripped albums to my squeezebox library.

At the moment, I put a CD in the drive in my workstation, and J River automatically rips it in FLAC format to \\Media\Music\Albums\<Artist>\<Album>\<Track #> - <Track Name>

At that point my automation ends - i have to manually go to media:9000 and click through to "rescan library for new and changed music".

So I think the way this could work is:
1) Trigger a CQC event based on a directory change
2) React to that event with a rescan in the SqueezeServer driver.

I'm pretty sure 2) is straightforward, but how would I do 1)? Any other potential solutions?

Thanks very much!
Reply
#2
I just use a scheduled event every evening. If I need it sooner then I have a command button that rescans the library.
Reply
#3
this is working ok for me but still doesn't feel 'automated'.

basically, my wife buys a CD, sticks it in the slot, JR Media Center automatically rips, tags, and encodes it and then places it in the right network share. no buttons at all.

to have to either wait, or open a browser, or open the CQC IV, sort of defeats the purpose.

So it it possible to have CQC monitor for a change to a directory? or have some other process that does so that can trigger CQC events?
Reply
#4
There's currently no way to do this. Unless JR were capable of sending out a signal of some sort, there's no way to know it's now at the point where it's now appropriate to rescan. It's not a process you'd want to happen every time some file might change really. You'd want to know that now everything is done, the XML is rewritten, the cover art is in place, etc... now you can rescan.

You guys should bug them about the ability to configure it so that it can send out a UDP broadcast on a configured port whenever it has finished adding new content or after changes have been made (not just each individual CD, you don't want to kick off a rescan every time if you are going to sit there and load 20 of them, and certainly not for every change you might make while editing), but maybe as the interface is closing or something after you are done.
Dean Roddey
Explorans limites defectum
Reply
#5
Can JR execute a command after a rip, if so, use a batch file or vbs script to send a command over IP to the General IP-based tirgger driver and trigger off that.

I use that IP driver for an IR receiver that is using winLirc. WinLirc send out a command on port xyz and driver allows me to run any action I want based on the string send from Lirc.

Just be careful as to how long it takes for the refresh to occurr.

For me it takes half hour or longer due to the large number of songs, but if your repository is small, then you can get away with it this way.

Mick
Mykel Koblenz
Illawarra Smart Home
Reply
#6
I assume you are using the file tag repo though, not the J.River repo, right? That one should go fairly fast since it only has to parse the XML file and load the image data.
Dean Roddey
Explorans limites defectum
Reply
#7
Neither, I use the squeezebox driver.
Reply
#8
I thought the SB driver is just for playing, there has to be a repo driver installed as well to pass the values to the SB driver. Or is that what the use database option does for you?

Either the file tag browser driver or the JR driver. There may be others as well that I can't remember.

Mick
Mykel Koblenz
Illawarra Smart Home
Reply
#9
znelbok Wrote:I thought the SB driver is just for playing, there has to be a repo driver installed as well to pass the values to the SB driver. Or is that what the use database option does for you?

Either the file tag browser driver or the JR driver. There may be others as well that I can't remember.

Mick

The SB driver can use the SB server repository via the Use Database option.

The repository interface isn't public/published so I had to deal with it within the driver.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Used Toshiba ATOM based Tablets jokermac 0 7,001 09-23-2021, 03:58 PM
Last Post: jokermac
  AI based home automation potts.mike 7 8,756 01-09-2018, 08:59 PM
Last Post: potts.mike
  Alexa, Amazon Echo gains multiroom music playback sic0048 0 2,039 08-29-2017, 01:29 PM
Last Post: sic0048
  Need advise on Music system George M 39 8,883 08-09-2016, 03:52 PM
Last Post: batwater
  The Trackr - Room based occupation sensing possability znelbok 3 2,874 04-19-2016, 08:36 AM
Last Post: Dean Roddey
  Google Music All Play Logitech Media Server Plugin batwater 6 8,970 01-02-2015, 05:46 AM
Last Post: batwater
  Automate Christmas Lights with Nest Away Feature finish.06 1 2,219 12-17-2014, 09:32 AM
Last Post: Dean Roddey
  IP based power ellisr63 0 2,061 02-04-2014, 01:52 PM
Last Post: ellisr63
  Question: ID based on MAC address? jkmonroe 1 2,740 11-10-2013, 02:28 PM
Last Post: Dean Roddey
  Squeezeplug - a Raspberry Pi alternative to Squeezebox znelbok 3 5,624 09-06-2013, 03:09 PM
Last Post: znelbok

Forum Jump:


Users browsing this thread: 1 Guest(s)