Had to install cron: sudo apt-get install cron
Had to insert shebang at start of script: #!/bin/bash
Had to make start.sh executable: sudo chmod +x start.sh
I will join the request. Maybe someone will tell you in great detail for the most inexperienced how to make the autoplay of the Internet radio playlist begin after switching on (rebooting). Thank you in advance.
The autostart plugin works flawless on V3.xxx, only an update for NPM is required. Already did it in this zip file. Make sure to adjust the time, so you’re sure Volumio is fully started. Currently I set it to 40000 (40 seconds) autostart.zip (152.4 KB)
unzip it
Place it in your home folder: /home/volumio
Open putty and run the command: cd autostart && volumio plugin install
Hello Wheaten!
Cool !
But for me it is not working, maybe you could help me ?
i can see the plugin in the Web-UI, when i switch it to ON settingbutton appears.
But the state still is Red-dot inactive.
If I klick on settings, no configuration is available appears.
If I do “volumio plugin list” the following appears:
prettyName: ‘AutoStart’,
name: ‘autostart’,
category: ‘miscellanea’,
version: ‘1.1.2’,
icon: ‘fa-play-circle-o’,
isManuallyInstalled: false,
enabled: true,
active: false
i tried but it still does not work, its not shown anymore on the web-UI
hmmm, i could not find the volumio.log (/var/log/…)
just the mdp.log:
-bash-5.0$ cat mpd.log
Mar 09 14:11 : zeroconf: No global port, disabling zeroconf
Mar 09 14:11 : zeroconf: No global port, disabling zeroconf
Mar 09 14:12 : client: [0] opened from local
Mar 09 14:12 : exception: No such directory
Mar 09 14:12 : client: [1] opened from local
Mar 09 14:12 : zeroconf: No global port, disabling zeroconf
Mar 09 14:12 : client: [0] opened from 127.0.0.1:36078
Mar 09 14:12 : client: [1] opened from 127.0.0.1:36080
Mar 09 14:12 : client: [2] opened from 127.0.0.1:36092
Mar 09 14:12 : client: [3] opened from local
Mar 09 14:12 : client: [4] opened from 127.0.0.1:36104
Mar 09 14:13 : client: [5] opened from 127.0.0.1:36292
Mar 09 14:13 : client: [6] opened from 127.0.0.1:36296
Mar 09 14:13 : exception: Failed to read mixer for ‘alsa’: no such mixer control: PCM
Mar 09 14:13 : client: [0] closed
Mar 09 14:13 : client: [1] closed
Mar 09 14:13 : client: [2] closed
Mar 09 14:13 : client: [4] closed
Mar 09 14:14 : client: [5] closed
-bash-5.0$
Hi Balbuze,
I am not the developer nor considering to become one nor even want to spend time to go through all new requirements at this moment. I respect those who did.
I just took the zip file from my V3.3xx system which is working and also for @trekaf (which is a really funny name in Dutch) and hoped it would work for DannyH to
I have created /etc/rc.local that tests for webservice, and some of the startup files from volumio, to then call the “play” command (yes, for loop ugly, but ensures not too much waiting.
Make sure you have rc.local service enabled.
#!/bin/bash
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# ref: https://linuxhint.com/use-etc-rc-local-boot/
[ -d /etc/boot.d ] && run-parts /etc/boot.d
export RC_LOG=/tmp/rc_local.log
export VOLEXEC=/volumio/app/plugins/system_controller/volumio_command_line_client/volumio.sh
export SNPFILE=/tmp/shairport-sync.conf
touch $RC_LOG
echo "starting $(date)" >> $RC_LOG
while !(lsof -Pi :3000 -sTCP:LISTEN -t >/dev/null); do
echo "waiting for internet $(date)" >> $RC_LOG
sleep 30
done
echo "service up $(date)" >> $RC_LOG
while [ ! -f $SNPFILE ]; do
echo "no file yet $(date)" >> $RC_LOG
sleep 20
done
echo "SNPFILE there $(date)" >> $RC_LOG
# just try waiting and then kick off the request
for i in {1..10};
do
echo "retrying" >> $RC_LOG
sleep 30
$VOLEXEC play
done
echo "finished $(date)" >> $RC_LOG
exit 0
I’m the developer of the plugin autostart. I sent a pull request in Feb. Update AutoStart plugin dependencies and tested with Volumio 3 by thomasdoerr · Pull Request #649 · volumio/volumio-plugins · GitHub but it has been declined as far as I unterstand. I just took a look at the URL you mentioned in that PR.
It’s unclear for me, how I can update the plugin and bring it into the new version.
I just updated my radio and since the plugin is missing, it doesn’t work anymore . Could you give me a short hint on how to do it? I’d like to fix it, since I see that others also use it.