Forum Replies Created
-
21. März 2016 at 16:44 #19396
Hallo Mario,
zum Reconnect: dieser sollte automatisch (ohne den nötigen Klick im Interface) erfolgen, wenn die BT-Lautsprecher ausgeschaltet sind und der RPi läuft und dann die BT-Lautsprecher angeschalten werden (Reihenfolge beachten, d.h. immer zuerst den Pi anschalten). Zumindest funktioniert das bei den Boxen, die ich getestet habe – kannst du das mal probieren?
Eine Verzögerung für eine Squeezelite-Instanz zu erreichen ist mit dem aktuellen Max2Play nicht möglich. Es scheint in Squeezelite eine Einstellung zu geben, die, wenn man Portaudio nutzt ein Delay hinzufügt (siehe Doku Squeezelite). Ob das aber ausreicht – oder überhaupt funktioniert kann ich nicht sagen. Aktuell laufen alle Audiodienste mit Alsa oder Pulseaudio.
Viele Grüße
Stefan18. März 2016 at 15:07 #19358You can expand the Filesystem with the Max2Play Webinterface and the Beta of Debian Jessie by:
– Update the Webinterface to the latest BETA (on settings page) -> this fixes the bug that is still in the SD-Card image that you downloaded
– make sure that you don’t have any external drives / usb-sticks connected when you expand the filesystemAs the downloadable Beta version of the Jessie SD-Card-Image did not change until now, always make sure you update to the latest beta in the web interface if something doesn’t work as expected. I usually just put bugfixes in the Beta-update and once everything seems fine I will create a new SD-Card image that already contains the fixes.
18. März 2016 at 12:13 #19349Hallo Rainer,
danke für die Hinweise und dein Feedback!
zu 1. Der Desktop (wird automatisch mit Jivelite gestartet) muss mindestens einmal gestartet werden, damit die Dateien verfügbar sind, die zum Minimieren der Taskleiste und für das Vollbild zuständig sind. Ich werde die Fehlermeldung mal etwas anpassen, damit das klarer wird. Also: 1 mal starten -> dann kann die Funktion genutzt werden und nach einem Neustart von Jivelite läuft es wie gewünscht.
zu 2. Die neuen SD-Images werden das Problem nicht mehr haben (wir versuchen immer alle Updates die verfügbar sind bei der Erstellung eine SD-Images zu installieren) – bei den älteren Images war der Kernel noch nicht in der Lage die Hintergrundbeleuchtung zu steuern.
Viele Grüße
Stefan18. März 2016 at 11:45 #19348Hallo sirsmu,
danke für den Tip! Da war noch ein Fehler in der Ersetzung der MAC-Adresse drin. Ich habe den jetzt behoben – damit sollte es nach einem Update nun auch damit funktionieren. Ich hatte die letzte Zeit fast nur noch mit der Debian Jessie Beta Version für den Raspberry Pi gearbeitet (wegen RPi 3), da ist mir der Fehler leider nicht aufgefallen.
Viele Grüße
Stefan17. März 2016 at 17:34 #19339Hallo,
danke Rainer für die genau Schilderung. Ich konnte den Fehler jetzt reproduzieren: Es liegt an der Installation von Jivelite. Dabei wird bereits eine Einstellung von uns in die Screensaver Datei geschrieben, die dazu führt, dass die „Wenn Aus“ Option gar nicht mehr verfügbar ist.
Eine schnelle Lösung besteht darin auf einer existierenden Installation im Webinterface unter Jivelite auf „Reset Jivelite Settings“ zu klicken und anschließend Jivelite neu zu starten und beim Start zu konfigurieren, was sehr schnell geht (Sprache und Joggler Skin wählen).
In der Beta habe ich den Fehler jetzt korrigiert. Ab Version 2.29 wird das auch behoben sein.
17. März 2016 at 13:42 #19335@verstrepeng & sirsmu : everything looks good in your Debug output. Can you try to manually Stop Squeezelite -> Start Squeezelite and see what happens?
16. März 2016 at 17:50 #19318Hi Flo,
the rotary encoder in the IQAudIO image is only working with the IQAudIO cards as it directly connects to the card to set the ALSA Volume. We might build a more general way to change volume with a hardware control in future, but right now there is none. You might have a look at the IQAudIO rotary encoder code on Github to start your own project based on this code.
Stefan
16. März 2016 at 17:44 #19317@q20: I cannot really help, because there might be different problems that lead to the error. You may change permissions of the launch script by using „sudo chmod 777 /etc/init.d/logitechmediaserver“ but I don’t know why this script has not the rights to start… a reinstall is probably the easiest and fastest solution.
16. März 2016 at 13:08 #19310Bluetooth Addon is available for download: https://www.max2play.com/en/portfolio/plugin-bluetooth-2/
16. März 2016 at 12:06 #19307@q20: never had such an error. Installation and Startup on every testsetup went OK so far. Did you change something else on your SD-Card-image? The error is indicating missing user rights to start the squeezebox server – maybe your installation is broken (SD-card error). In this case you should start with a fresh SD-Card-Image.
Make sure to install Squeezebox Server Nightly 7.9 (otherwise it won’t start because of missing libraries).
15. März 2016 at 15:02 #19277Hi castalla,
the addon is just made for one BT-device to be connected at a time. It is not meant to run different squeezelite instances for different BT-devices. Although it is possible to easiliy switch the output to another BT-speaker by:
– „disconnect“ from currently connected BT-Speakers
– „reconnect“ the speakers you want to useOn the Jessie-based Image, once BT-speakers are connected pulseaudio (soundserver) will change to play on the BT-speakers. If no BT-speakers are connected squeezelite will default play on the main soundcard. By this you don’t have to change anything in your settings -> just power on BT-Speakers and they will start to play!
The Beta should work for you – maybe you changed some settings while playing with different BT-devices? There is a cronjob in the background running every minute, that detects if BT-speakers are connected.
I just had the problem, that after reconnecting I had to stop and start squeezelite manually, although the output device was correctly set and the squeezelite was running (sounds quite similar to your problem)… maybe I need to add a restart to squeezelite after a successful connection. I think this was mainly because squeezelite was still playing (didn’t pause the stream).If you power off your BT-speakers and power on later again (what you do in normal usage), they should be connected automatically and the stream for squeezelite should be pointed to the BT-speakers (after maximium 1 minute).
14. März 2016 at 12:58 #19252Hi!
At first: Thanks a lot for testing and your impressions!
Important note for BETA versions:
There is the SD-Card-Image Beta (Jessie Image) AND the Max2Play Update Beta (> 2.28 for testing). The Max2Play Beta Update can only be run with a activated licence and can be found on the settings page in the web interface. For the Bluetooth Addon there are some changes in the main Max2Play version that are not coming with installation of the bluetooth addon.2 different versions of the Bluetooth Addon:
The Jessie Image and the Old Wheezy based Image of Max2Play do have a complete different Bluetooth Support. Using the latest Max2Play Update both should automatically connect once the BT-device that is choosen on the Bluetooth addon page is powered on. Only the last choosen BT-device will be automatically connected. Right now it is not possible to connect to more than one BT-device at a time. When you want to switch to an other BT-speaker you have to choose it in the BT-Addon (click reconnect).
@castalla:
You need the Beta-Updates of Max2Play to get the autoconnect functionality for squeezelite without the need of restarting
@ninux:
I never tested with the RPi V1 but it should work. Your Squeezelite player seems to have trouble to connect to the Alsa bluetooth-device. Your settings are fine and the BT-device is connected (very good). Maybe some other audio player is blocking the audio-device. Try to stop Shairport and Kodi (if running) and restart Squeezelite. If this doesn’t help, you may give the Jessie Image (Beta) from our Download-page a try as this uses another way to play the audio.Cheers,
Stefan14. März 2016 at 11:14 #19249Hi,
I am sorry, but the licence verification was not available on the weekend due to some changes in our server architecture (bringing SSL encryption). It is now working again. If your licence is not marked as active please remove your email / licence code, click save and enter it again to make sure it is updated and saved.
@Robert: I had to remove your post about how to bypass validation.11. März 2016 at 14:58 #19202Hallo,
das Raspberry Pi-Image wird leider nicht funktionieren auf dem Pogoplug. Da müsste basierend auf einem Pogoplug Image das Webinterface und die Player installiert werden, was unter umständen allerdings sehr aufwändig ist (bis alles funktioniert). Aktuell gibt es da leider keine Lösung.
10. März 2016 at 11:42 #19185Hi Mike,
currently only external devices can be used as target.
Just an idea: You may use a second SD-Card with Max2Play and the Imageburner addon to create and store the image from the „Main“ SD-card.
10. März 2016 at 11:36 #19184Hi,
the main problem is, that:
„I still get no video output even for sandard Max2play interface – screen is just blank
I get a similar error message when trying to start Kodi (as shown below)“this is why Kodi is not able to show anything on the screen (as stated in the error message on start up).
How to fix: Make sure to connect the HDMI-Cable on startup of the XU4 and turn on TV/monitor. Make sure to use a quality HDMI-cable. Some thin cables may not work…
Hope this helps!
Stefan7. März 2016 at 16:51 #19151News:
- most apps are working with the RPi 3 and the current Beta (make sure to update to latest Max2Play-beta)
- WPS is currently not working with Raspberry Pi 3 integrated WiFi (thanks Bort for investigating) – I think there are some driver issues that need to be solved. External USB-Wi-Fi sticks are working with WPS.
- I built a bluetooth addon that wants to be tested – if you like you can get it from http://shop.max2play.com/media/downloadable/beta/bluetooth.tar – this will let you connect to bluetooth speakers and let kodi / squeezelite and other players use it as audio output
If you want to upgrade to the latest packages, you should call „apt-get update && apt-get upgrade“. This can also be done at the bottom of the web interface on the Raspberry PI Settings Addon.
I am still testing and preparing to build the final version of Max2Play 2.28. If you experience any problems in the Beta with Kodi 15.2 or other Addons, this is the place to post them 🙂
All the best
Stefan7. März 2016 at 16:37 #19150Hi,
did you use the Beta-Download of the newest Max2Play for Raspberry Pi 3 (based on Debian Jessie) from the Download Page? This should work out of the Box and Jivelite is already installed.
1. März 2016 at 17:57 #18950Hi Teetertank,
I did a lot of testing to reproduce your setup, but did not find anything going wrong. The mountpoints where loaded correctly. I added a „unmount“ option to the latest Max2Play-Beta (available from 2.28 in regular Max2Play) that lets you unmount the USB-storage before unplugging it.
One important note: I always use a powered USB-Hub when connecting hard-drives via USB as the power-supply of the Odroid XU4 might not be strong enough to handle the external hard drive. If you directly connect your hard drives this might be the problem.
26. Februar 2016 at 16:11 #18781Hi Elembee,
it seems like the squeezebox server is not starting at all. Can you post the Debug Log from the Squeezebox Server page – this should have some details. You may also try to install Squeezebox Server 7.9 nightly.
Common problem is a full SD-card (no space left, not expanded). If this happens you should start from scratch. You may see if you have space left on the bottom of the settings page (Debug Info) in the web interface.
Stefan
19. Februar 2016 at 15:05 #18595Hi Malina,
there should not be any delay or bad quality in airplay with shairport – even on the older Rapsberry Pi B.
First thing: what version of Max2Play do you use? Did you try it with the latest Max2Play 2.27 from the download page?
A few ideas:
– remove squeezelite from autostart and stop it
– remove kodi from autostart and stop it if it is running
– check the load of your pi in the Debug output on the settings page of the webinterface (at the bottom)
– do you have WiFi or LAN connection?
– do you output audio with HDMI or with a separate DAC or soundcard (if so, try an other sound output)19. Februar 2016 at 12:20 #18593Noch ein kleiner Nachtrag zum Thema:
Aktuell ist es mit Max2Play nur möglich Squeezelite und Kodi gleichzeitig laufen zu lassen. Dafür muss in den erweiterten Einstellungen von Squeezelite die Option „nutze USB-Soundkarte“ aktiviert werden. Wichtig dabei ist, dass Kodi eine andere Soundkarte als Squeezelite nutzt. Z.B. USB-DAC/HifiBerry DAC oder AMP für Squeezelite und HDMI für Kodi.
Zum Aktivieren von Airplay über Squeezelite bietet sich das Addon Shairtunes an, welches auf der Squeezebox Server Seite im Webinterface einfach installiert werden kann. Danach wird Shairport nicht mehr benötigt und Airplay über Squeezelite und Kodi sind gleichzeitig möglich.
16. Februar 2016 at 17:23 #18525Hi azr,
manually running http://translate.google.com/translate_tts?ie=UTF-8&tl=de&q=zefix+noch+eins.&client=tw-ob in a browser works, but a call by a machine (Squeezebox Server) might be interrupted by Googles abuse system as stated here: http://stackoverflow.com/questions/9893175/google-text-to-speech-api
What you can do as a workaround:
– install your own Text-to-speech software on the raspberry (e.g. espeak) with
apt-get update && apt-get install espeak– generate WAV-Files by calling the text-to-speech-engine the following way and save to your media-path
/usr/bin/espeak "zefix+noch+eins" -w /media/yourtext.wav # get more infos with: espeak --help # set language, voice, speed and more...– make sure the Squeezebox Server is not trying to convert the files: deactivate flac and mp3 in Squeezebox-Server Settings -> Advanced -> File types -> WAV (I had to do this, otherwise it did not play sound)
– test and play the generated file
You may also create your own HTTP-service that acts the same way like the Google TTS Engine and creates the WAV-file. You could do this by creating a Max2Play-Addon that takes the words as HTTP-GET Parameter, runs espeak and generates the WAV-File in the background and sends it as result of the HTTP-Call (if the file already exists it would just send it). The Addon should also have a installer for espeak and a basic set up (default language, voice, reading speed).
Maybe anyone likes to implement this feature? I could help you with special questions. There might be others waiting for this one 🙂
Stefan
12. Februar 2016 at 11:14 #18468Hi noop and asplundj,
thanks for sharing your scripts!
If you like to add this feature to Max2Play you could contribute to the Github project of Max2Play.
There is one thing, that could be improved to use the capabilities of the Max2Play-Framework: Max2Play automatically runs the script „/opt/max2play/start_audioplayer.sh“ as cronjob every minute. This script looks for autostart parameters and can be used to run your script too (instead of doing the loop every 10 sec and permanently running the script).
In your scenario it would be easy to add a checkbox on the Kodi page of the max2play web interface that sets a parameter (e.g. AUTOSTART_STOP_KODI_BY_HDMI_STATUS) in /opt/max2play/autostart.conf to make the script run optional and to activate / deactivate it with the web interface.
To add a checkbox to the kodi page you should have a look at this 2 pages:
view file to add checkbox in HTML:
https://github.com/max2play/webinterface/blob/master/max2play/application/plugins/max2play_settings/view/xbmc.phpAutostart/Stop Kodi by HDMI Status: <input type="checkbox" <?php if($sp->view->AUTOSTART_STOP_KODI_BY_HDMI_STATUS) echo "checked"; ?> value="1" name="AUTOSTART_STOP_KODI_BY_HDMI_STATUS" />controller file to set parameter AUTOSTART_STOP_KODI_BY_HDMI_STATUS in /opt/max2play/autostart.conf
https://github.com/max2play/webinterface/blob/master/max2play/application/plugins/max2play_settings/controller/Xbmc.phpthere is an easy function for setting a Parameter in a file (add this to the existing „save“ action in Xbmc.php):
if($_GET['action'] == 'save'){ $this->selectAutostart(isset($_GET['autostart']) ? 1 : 0); // Set selected Status $this->saveConfigFileParameter('/opt/max2play/autostart.conf', 'AUTOSTART_STOP_KODI_BY_HDMI_STATUS', isset($_REQUEST['AUTOSTART_STOP_KODI_BY_HDMI_STATUS']); } // Get Status for Checkbox in view file (add this at the End of the function __construct) $this->view->AUTOSTART_STOP_KODI_BY_HDMI_STATUS = $this->getConfigFileParameter('/opt/max2play/autostart.conf', 'AUTOSTART_STOP_KODI_BY_HDMI_STATUS');The parameter for the autostart can be checked in the script „/opt/max2play/start_audioplayer.sh“ and run your script if set to 1.
https://github.com/max2play/webinterface/blob/master/opt/max2play/start_audioplayer.sh# Add this to /opt/max2play/start_audioplayer.sh AUTOSTART_STOP_KODI_BY_HDMI_STATUS=$(cat /opt/max2play/autostart.conf | grep AUTOSTART_STOP_KODI_BY_HDMI_STATUS=1 | wc -l) if [ "0" -lt "$AUTOSTART_STOP_KODI_BY_HDMI_STATUS" ] then /opt/max2play/YOURSCRIPT.sh & fi14. Dezember 2015 at 16:13 #17325Super – freut mich! Vielen Dank für die Anleitung zu der Konfiguration von Alsa mit den Bindings.
14. Dezember 2015 at 14:30 #17322Hallo Tim,
aktuell gibt es im Webinterface keinen Parameter den du dafür direkt nutzen kannst. Allerdings gibt es die Funktion, die den Squeezelite Player deaktiviert, sobald über Shairport ein Stream abgespielt wird. Diese Funktion kannst du „umbasteln“ damit es die GPIO Pins anspricht.
Der Punkt, an dem du ansetzen kannst, ist in dem Max2Play Startscript von Shairport
/etc/init.d/shairportin der Zeile 20, die die „on-start“ und „on-stop“ Parameter beinhaltet. Darin kannst du deine eigenen Scripte mit Parametern hinterlegen.if [ ! "$LMSIP" = "" ]; then SHAIRPORT_OPTIONS="--on-start '/opt/max2play/shairport_switch.sh shutup' --on-stop '/opt/max2play/shairport_switch.sh resume'" else SHAIRPORT_OPTIONS="" fiDann schaut das z.B. so aus (die if-Anweisung rausnehmen)
SHAIRPORT_OPTIONS="--on-start '/opt/gpio-script.sh activate' --on-stop '/opt/gpio-script.sh deactivate'"Viele Grüße
Stefan11. Dezember 2015 at 15:52 #17289Hallo kippi,
mit dem Multisqueeze Addon bist du daran gebunden, welche Ausgabemöglichkeiten der Squeezelite Player sieht. Auf der Audioplayer Seite hast du ganz unten eine „Debug“ Ausgabe, die alle Soundausgabemöglichkeiten zeigt. Auf der Konsole siehst du es z.B. mit
/opt/squeezelite/squeezelite -lWenn die Soundkarte es unterstützt einzelne Kanäle (z.B. Front Links) mit separaten Inhalten zu bespielen, könntest du eine Alsa-Konfiguration dafür erstellen bzw. die existierende ändern. Diese sollte dann auch Squeezelite erkennen. Wie genau das geht, kann ich leider nicht sagen, allerdings könntest du diese Frage z.B. im Squeezebox Forum stellen. Hier findet sich bestimmt jemand der dabei helfen kann.
11. Dezember 2015 at 15:44 #17288Hallo Tim,
die Schwierigkeit liegt an der Erkennung, ob Musik abgespielt wird.
Das ist mit Shairport (Airplay) relativ einfach, da man hier Start- und Stopparameter übergeben kann, die jeweils Scripte ausführen wenn ein Stream startet oder stopt. Wenn es dir also nur um Shairport geht, dann ist es kein Problem damit die GPIO Pins zu schalten. Dazu bearbeitest du z.B. das Startscript unter
/etc/init.d/shairport(allerdings kannst du dann keine Max2Play-Updates mehr durchführen)Mit Squeezelite und anderen Audioplayern kenne ich leider keine verlässliche Möglichkeit, den Zustand (spielt ab / pause) zu erkennen.
11. Dezember 2015 at 15:38 #17287Hi elemay,
it is not that difficult (little programmer skills required) to create some buttons or a new menu in Jivelite. You may have a look at the „Kodi Control“ Addon that I created to start / stop Kodi on the device. You should have a look at the files in the Jivelite applets folder:
/opt/jivelite/jivelite/share/jive/applets/KodiControl/To create a new menu for your FHEM control, you should start with copying an existing applet, rename it and start playing… There is some documentation on LUA development on other websites.
One thing you might also be interested in is coming within next weeks: voice control via Siri or Google Now. With a Z-Wave-Server running on Max2Play you can also control FHEM via HTTP-Calls with Apples Siri.
10. Dezember 2015 at 12:46 #17228Hi Olly,
I never really used the type NFS to mount any folders on a media device at home. Instead I always use SMB/CIFS as this is really easy. The help instructions are really misleading on this (just changed this for the current BETA and the next release), thanks for pointing this out!
You might try setting up a simple SMB-Share on your Diskstation (with a user login) and connect to this (probably fastest solution).
If you want to stick to the NFS Type and the mounting on Max2Play says everything worked fine, you may check if the Setup of your NFS-Share on the Diskstation is complete (try accessing the NFS share from another computer in your network).
@Claudio: Thanks for your input! I added the „*“ option to the help instructions.
-

