The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: How to automate daily update of library?
#1
Question 
I am using Moodeaudio on a Raspberry Pi with HifiBerry. My muisc library is on a Synology NAS connected via Wifi.

The whole setup works fine.

I now want to automate the update of the music library so that changes are incorporated automatically.

I have enabled cron on the pi and defined a daily job to update the library. I tried to update using 


Code:
mpc -w update
   or
mpc -w rescan
   or
curl http://<hostname>/command/cmd=update

All three comands work from the command line interface (user: pi, no error messages). cron activates the script, as I can see from the logfile. I also tried the commands directly from the shell.

With mpc rescan, I verified afterwards with
Code:
mpc listall
and saw that new files were added tp the database.

With all three commands, when I login to moodeaudio later, new files in the library are not shown. When I do update from Configure>Library>update
it works fine.

Can anyone give me a hint what I am doing wrong?

Thank you,
Gerhard
Reply


Messages In This Thread
How to automate daily update of library? - by lessger - 08-02-2020, 07:01 AM

Forum Jump: