Thank you for your donation!


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


Update sources from command line?
#2
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
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Update sources from command line? - by sjoerdju - 05-01-2018, 12:26 PM
RE: Update sources from command line? - by Tim Curtis - 05-01-2018, 11:26 PM
RE: Update sources from command line? - by DRONE7 - 05-03-2018, 10:22 PM
RE: Update sources from command line? - by DRONE7 - 05-10-2018, 06:20 AM

Forum Jump: