05-01-2018, 11:26 PM
(This post was last modified: 05-01-2018, 11:39 PM by Tim Curtis.
Edit Reason: eta
)
If your rip and copy process is happening on a remote computer then:
1) update MPD database
telnet moode 6600
update
2) truncate library cache so Library panel reloads from scratch
ssh pi@moode
truncate /var/local/www/libcache.json --size 0
I'm not sure how to automate (2)
The other option is to create a bash script in /var/www which contains the cmds below then run it remotely via the following url: http://moode/command?cmd=test.sh
#!/bin/bash
#
# /var/www/test.sh
#
mpc update
truncate /var/local/www/libcache.json --size 0
-Tim
1) update MPD database
telnet moode 6600
update
2) truncate library cache so Library panel reloads from scratch
ssh pi@moode
truncate /var/local/www/libcache.json --size 0
I'm not sure how to automate (2)
The other option is to create a bash script in /var/www which contains the cmds below then run it remotely via the following url: http://moode/command?cmd=test.sh
#!/bin/bash
#
# /var/www/test.sh
#
mpc update
truncate /var/local/www/libcache.json --size 0
-Tim