Hi All,
I have bought the airmusic NW11 box:
root@airmusic:~# dmesg
Linux version 2.6.39.4 (jh@srv64) (gcc version 4.5.4 20110808 (prerelease) (Linaro GCC 4.5-2011.08) ) #5 Fri Nov 7 17:28:25 CST 2014
SoC: Atheros AR9330 rev 1
Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
Kernel command line: board=TL-WR703N console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd
MIPS: machine is TP-LINK TL-WR703N v1
wr703N
I have modified the "ushare" as you recommended:
root@airmusic:~# cat /etc/config/ushare
config 'ushare'
option 'username' 'nobody'
option 'servername' 'Airmusic'
option 'interface' 'wlan1'
option 'content_directories' '/tmp/mnt'
option 'disable_telnet' '1'
option 'disable_webif' '1'
option 'enabled' '1'
At the beginning, I had problem with it, my *.flac files were not visible,
while I could see directories. I had to enable the 'disable_webif' option.
After that, I could share/unshare folders under GUI, which has made
files visible for me (even under sub-directories).
In my case the [option 'content_directories' '/tmp/mnt'] did not help.
I see, the "ushare" creates a kind of configuration file,
which contains shared music files see:
root@airmusic:~# ls -l /tmp/mnt/disk-a0/.??*
-rwxrwxrwx 1 root root 4264 Jan 1 08:02 /tmp/mnt/disk-a0/.udisklist
I see, the "ushare" is unstable. Sometimes it hangs, sometimes crashes.
It seems, the problems appears when I create play list, which is probably
not supported or when I move forward/backward the playing song.
So, I created crontab job (as recommended by you):
root@airmusic:~# crontab -l
* * * * * if [ `ps | grep -c ushare` != 2 ] ; then /etc/init.d/ushare restart ; fi > /dev/null 2>&1
It restarts the "ushare" when it crashes, but I have to wait sometimes
longer than 1 minute to get the Airmusic server visible on my android apps.
It is unpredictable to use ushare on this box. I use:
BubbleUPnP, AirWire, AllConnect, GinkoDlna.
The last one shows Airmusic's IP and connection errors, which is helpful to see
when Airmusic server is available again.
I also used the "airmusic" android application, which is recommended by equipment
supplier, but it plays music when I am directly connect with the box.
I had a look around at configuration files on this box:
root@airmusic:~# ls /etc/rc.d/
K90network S39usb S50telnet S90firewall
K98boot S40network S50ushare S95done
K99umount S42wanlan S50wifi_save S97watchdog
S05defconfig S45dnsmasq S60dbus S98sysntpd
S10boot S50cron S61avahi-daemon S99sysctl
S20fstab S50lighttpd S69shairport
root@airmusic:~# cat /etc/rc.d/S50lighttpd
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50
BIN=lighttpd
DEFAULT=/etc/default/$BIN
LOG_D=/var/log/$BIN
RUN_D=/var/run
TMP=/tmp/lighttpd
PID_F=$RUN_D/$BIN.pid
OPTIONS=-f /etc/lighttpd/lighttpd.conf
start() {
[ -f $DEFAULT ] && . $DEFAULT
mkdir -p $LOG_D
mkdir -p $RUN_D
mkdir -p $TMP
$BIN $OPTIONS
}
stop() {
[ -f $PID_F ] && kill $(cat $PID_F)
}
root@airmusic:~# grep www /etc/lighttpd/lighttpd.conf
server.document-root = "/usr/mips/www"
#auth.backend.plain.userfile = "/var/www/passwd.dav"
root@airmusic:~# ls /usr/mips/www/*.shtml
/usr/mips/www/a_ad.shtml
/usr/mips/www/a_advanced.shtml
/usr/mips/www/a_fu.shtml
/usr/mips/www/a_network_connections.shtml
/usr/mips/www/a_settings.shtml
/usr/mips/www/index.shtml
/usr/mips/www/play.shtml
/usr/mips/www/setmac.shtml
/usr/mips/www/stm.shtml
/usr/mips/www/tips.shtml
/usr/mips/www/wait.shtml
/usr/mips/www/xml.shtml
When I put the play.shtml link into my internet explorer and native android web browser
I see all my songs: http://192.168.1.100/play.shtml
DLNA clients has to be disconnected form the airmusic box. I does not work for me
with the firefox (I do not see songs, but the only playing bar).
So be careful, which browser you use for this link.
It is a very simple web GUI, but it works. It does not hang, it is available in your
home network (you do not have to be connected directly to your airmusic box).
Does anybody of you know the SHTML and is willing to extend this GUI ?
It looks like the play.shtml is not finished by its author yet.
Please let me know if you have any related questions.
Cheers, Chris