[Addon] Addons Menu - Install addons the easy way

Raspberry Pi related support

Re: [Addon] Addons Menu - Install addons the easy way

Postby tuna » 21 Nov 2017, 00:13

Rern - The branch mechanism works brilliantly!

SK - The YouTube addon has now been fixed for 0.4b, it's now in the process or getting approved

I'm hoping the new changes now make it alot easier for me to update and add features, as well as being cross compatible with both versions of rune.
Next I'm going to experiment with streaming from youtube-dl directly into MPD so there's no download delay.
tuna
 
Posts: 18
Joined: 30 Oct 2016, 17:39

Re: [Addon] Addons Menu - Install addons the easy way

Postby rern » 21 Nov 2017, 00:39

tuna wrote:...
The YouTube addon has now been fixed for 0.4b, it's now in the process or getting approved
...

It was merged and ready for update.
rAudio @ https://github.com/rern/rAudio-1
Raspberry Pi 4B
Raspberry Pi 3B > SMSL M8 DAC
Raspberry Pi Zero W
User avatar
rern
 
Posts: 723
Joined: 14 Jul 2016, 08:15

Re: [Addon] Addons Menu - Install addons the easy way

Postby s.k. » 21 Nov 2017, 05:35

i tested it and it works just fine!
Thanks a lot guys!
Regards
Stavros
RPi2B Rev 1.1, Allo DigiOne, ATXRaspi, 16x2 OLED display - running rAudio
s.k.
 
Posts: 113
Joined: 04 Jan 2017, 08:38

Re: [Addon] Addons Menu - Install addons the easy way

Postby ianhaynes » 21 Nov 2017, 14:53

I had the previous version of the YouTube add-on working on V0.4b without any problems. Having updated, it no longer does anything. I've tried uninstalling and re-installing but no difference. You get the initial dialog to enter the URL but on hitting Import there is no dialog that the file is being imported, nothing happens at all.

Ian

PS: Where you refer to 'MPC' on the Github page, do you mean 'MPD'?
Pi 2, Ver. 0.5b, IQAudio DAC+
ianhaynes
 
Posts: 207
Joined: 04 Mar 2015, 12:51

Re: [Addon] Addons Menu - Install addons the easy way

Postby ianhaynes » 23 Nov 2017, 15:46

I just launched the Addon menu and it gave an updating message. When the update had finished it gave me an option to update the Youtube addon, which I did (having previously found that the previous update didn't work on 0.4b).

Unfortunately now the Addon menu itself doesn't work. I've tried uninstalling and reinstalling but this didn't solve it.

How do I get out of this??

Ian
Pi 2, Ver. 0.5b, IQAudio DAC+
ianhaynes
 
Posts: 207
Joined: 04 Mar 2015, 12:51

Re: [Addon] Addons Menu - Install addons the easy way

Postby rern » 23 Nov 2017, 16:06

Hi Ian,

Try:
- uninstall Addons Menu
- remove from database
- restore original files
- reinstall Addons Menu

Code: Select all
# uninstall Addons Menu
uninstall_addo.sh

# remove from database
redis-cli hdel addons addo

# restore original files
# for 0.4b
wget https://github.com/rern/_assets/raw/master/RuneUI_enhancement/04b/footer.php -P /srv/http/app/templates
wget https://github.com/rern/_assets/raw/master/RuneUI_enhancement/04b/header.php -P /srv/http/app/templates
wget https://github.com/rern/_assets/raw/master/RuneUI_enhancement/04b/playback.php -P /srv/http/app/templates
# for 0.3
wget https://github.com/RuneAudio/RuneUI/raw/master/app/templates/footer.php -P /srv/http/app/templates
wget https://github.com/RuneAudio/RuneUI/raw/master/app/templates/header.php -P /srv/http/app/templates
wget https://github.com/RuneAudio/RuneUI/raw/master/app/templates/playback.php -P /srv/http/app/templates

# reinstall Addons Menu
wget -qN --show-progress https://github.com/rern/RuneAudio_Addons/raw/master/install.sh; chmod +x install.sh; ./install.sh
Last edited by rern on 24 Nov 2017, 01:09, edited 1 time in total.
rAudio @ https://github.com/rern/rAudio-1
Raspberry Pi 4B
Raspberry Pi 3B > SMSL M8 DAC
Raspberry Pi Zero W
User avatar
rern
 
Posts: 723
Joined: 14 Jul 2016, 08:15

Re: [Addon] Addons Menu - Install addons the easy way

Postby ianhaynes » 23 Nov 2017, 16:20

Unfortunately that hasn't made any difference. The Addon item on the menu disappeared after uninstalling and reappeared after reinstalling but the menu itself doesn't show when the menu option is selected.

Ian
Pi 2, Ver. 0.5b, IQAudio DAC+
ianhaynes
 
Posts: 207
Joined: 04 Mar 2015, 12:51

Re: [Addon] Addons Menu - Install addons the easy way

Postby FauDrei » 23 Nov 2017, 22:51

ianhaynes wrote:Unfortunately that hasn't made any difference. The Addon item on the menu disappeared after uninstalling and reappeared after reinstalling but the menu itself doesn't show when the menu option is selected.

Same here (Chrome browser on PC, RPi2 Rune 0.4 image, updated kernel, updated MPD, AddOns). I did not even mess with YouTube plugin - if I recall it correctly - today's (20171123) "RuneUI Enhancement" was last thing I've updated while AddOns were still working...
FauDrei
 
Posts: 19
Joined: 04 Mar 2014, 16:59

Re: [Addon] Addons Menu - Install addons the easy way

Postby rern » 25 Nov 2017, 02:15

FauDrei wrote:
ianhaynes wrote:Unfortunately that hasn't made any difference. The Addon item on the menu disappeared after uninstalling and reappeared after reinstalling but the menu itself doesn't show when the menu option is selected.

Same here (Chrome browser on PC, RPi2 Rune 0.4 image, updated kernel, updated MPD, AddOns). I did not even mess with YouTube plugin - if I recall it correctly - today's (20171123) "RuneUI Enhancement" was last thing I've updated while AddOns were still working...


Hi guys,

It's the install script failed to append addons lines to footer.php with echo:
Code: Select all
...
echo '<script src="<?=$this->asset('"'"'/js/addonsinfo.js'"'"')?>"></script>
<script src="<?=$this->asset('"'"'/js/addonsmenu.js'"'"')?>"></script>' $file
...

It's single quotes + double quotes + escaped single quotes + multiple lines together that I could not do it right.

It was switched to cleaner heredoc:
Code: Select all
...
cat << 'EOF' >> $file
<script src="<?=$this->asset('/js/addonsinfo.js')?>"></script>
<script src="<?=$this->asset('/js/addonsmenu.js')?>"></script>
...
EOF


SSH uninstall > re-install should put it back to business now.
Please try and report.

rern
rAudio @ https://github.com/rern/rAudio-1
Raspberry Pi 4B
Raspberry Pi 3B > SMSL M8 DAC
Raspberry Pi Zero W
User avatar
rern
 
Posts: 723
Joined: 14 Jul 2016, 08:15

Re: [Addon] Addons Menu - Install addons the easy way

Postby ianhaynes » 25 Nov 2017, 12:26

Sorry to say the Addons menu is still not working.

If I look at the footer I see the js files seemingly correctly referred to:

Code: Select all
<script src="<?=$this->asset('/js/addonsinfo.js')?>"></script>
<script src="<?=$this->asset('/js/addonsmenu.js')?>"></script>


Ian
Pi 2, Ver. 0.5b, IQAudio DAC+
ianhaynes
 
Posts: 207
Joined: 04 Mar 2015, 12:51

support RuneAudio Donate with PayPal

PreviousNext

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 7 guests