Bort

Forum Replies Created

Viewing 30 posts - 1 through 30 (of 35 total)
  • 5. März 2017 at 18:14 #27452

    Hi,

    I could reproduce this behaviour.
    The webinterfaces kernel-updater is interrupted by the safety question about the driver compability since the 4.9 kernel is in the master branch of rpi-update.
    If I run rpi-update via ssh an answer the safety question everything runs fine – but max2play doesn’t recognise the PI3 anymore (just BCM2835) and settings are locked as described above.

    I could get my new Zero W working with just a „dist-upgrade“ so I could resign ugrading the kernel to 4.9.

    The Zero W is working nicely so far with the 4.4 kernel, but an upgrade would be nice. The recent image doesn’t support rpi-update (has to be upgraded?) on the Zero W and obviously the WiFi drivers are missing in the recent 2.41 image too – a dist upgrade on a PI3 did solve this problem for me.

    So long it’s a litlle bit more complex to get the Zero W working – hoping for a new image with all the driver packet already included an maybe support for the new kernel 🙂

    11. Juli 2016 at 19:15 #21429

    Just give fhem a try… I’am running nearly all that tasks via fhem and the squeezebox modules.

    6. Juli 2016 at 21:41 #21275

    Mmh, ich benutze exakt den Stick an allen meinen Pi’s mit einer 7390.
    Was passiert denn, wenn Du WLAN über WPS konfigurieren lässt? (Zur Not mit ’nem nackten Image zum Test)
    Hast Du mal probiert mit der MAC-Adresse des Sticks ein neues Netzwerkgerät kitvfester Wunsch-IPnin der FB anzulegen?
    Zu guter letzt: Taucht der Raspi denn im WLAN-Log der FB mit der „komischen“ IP Oberhaupt auf?

    Mehr Ideen hab ich tatsächlich auch nicht 🙁

    1. Juli 2016 at 20:34 #21066

    The latest builds of squeezelite are supporting gpio.
    I’ve used a simple and small fhem Installation with the squeezebox modules instead… (my whole home Automation based in that, so it was just a small step – but even without that: really easybif squeezelite gpio doesn’t work)

    1. Juli 2016 at 20:30 #21065

    Should work flawlessly – I used same procedure with an A+
    Just boot thevmost recent Jessie m2p image in the B, edit WLAN and switch the card to the zero – make all the rest oft the setup in the zero….

    1. Juli 2016 at 20:25 #21064

    Hallo Peter,

    Deine IP sieht stark nach einem AVM-Router aus…. Da kannst Du doch einfach unter Netzwerkgeräten festlegen welche IP welcher MAC-Adresse zugewiesen wird.

    23. Mai 2016 at 22:09 #20235

    It compatible to the hifiberry dac… So it should work flawlessly.

    21. März 2016 at 11:52 #19387

    Hallo,

    einfach alsamixer starten, Soundkarte auswählen, Lautstärke hoch und abschließend mit sudo alsactl store abspeichern, damit die Lautstärkeeinstellung einen Neustart überlebt….

    2. März 2016 at 20:16 #19028

    Hello Heiner,

    would this be the right place for errors found in the in the beta?

    Nethertheless here are the first two hints:
    1. rpi-update is not installed in jessie lite
    2. On Raspberry Pi 3 the wps doesn’t work with new integrated WiFi

    2. März 2016 at 13:17 #19010

    Wo genau im der Bildschirmschoner eingestellt wird, kann ich Dir von hier aus nicht sagen – fühlte sich aber damals nicht nach Raketenwissenschaft an – also irgendwo in Einstellungen/Bildschirm…
    Das Abschalten der Displaybeleuchtung hängt am „blank screen“-Schoner… (sorry für die Gedächtnislücke)
    Grundlagen zum Abschalten der Beleuchtung und für weitergehendes Debugging:
    https://www.max2play.com/forums/topic/raspberry-7-touchdisplay-schaltet-sich-nicht-komplett-ab/

    Der erwähnte „Powerknopf“ macht glaub ich auch nur Stop + Bildschirmschoner sofort -> hängt also auch an den Bildschirmschonereinstellungen.

    Egal ob für FLIRC oder eine andere Lösung der Tastaturemulation für Jivelite hier die komplette Tastenbelegung:
    https://github.com/clivem/jivelite/blob/master/share/jive/jive/InputToActionMap.lua


    @Rainer
    :
    „Spulen“:

    ["Z"]  = "scanner_rew"
    ["B"]  = "scanner_fwd"
    • This reply was modified 8 years, 1 month ago by Bort.
    2. März 2016 at 13:05 #19003

    Hi,

    Logitech media server (sorry I’m not have running it on a pi):
    http://wiki.slimdevices.com/index.php/What_To_Backup%3F
    Look where the LMS installation on your pi stores all relevant data, create a smb share to the folder and copy all to your PC. Backward same procedure…

    Kodi: As far as I know, the default user for kodi on m2p ist pi himself.
    So create a smb share to /home/pi/.kodi/ (otherwise it would be /home/kodi/.kodi/) and copy the content to your backup location… in the new image copy it back, start Kodi 15.2 once and then update to Jarvis…

    • This reply was modified 8 years, 1 month ago by Bort.
    2. März 2016 at 9:12 #18963

    With the apt-get update and dist-upgrade process the preinstalled m2p version of kodi will be completely replaced by the jarvis version from the repository.
    The kodi integration in the m2p web interface works for me (it shows the recent version correct (16.0-2jessie)).

    The jessie image has already (marked as beta) arrived in the dowlnoad area.
    There is an manual update path from wheezy to jessie: https://www.max2play.com/forums/topic/update-auf-debian-jessie/

    But after the official release has arrived I would prefer the start with a fresh image and restore the old settings.

    1. März 2016 at 21:24 #18957

    With the new Jessie image this will be much more easy 🙂
    I’am using the pipplware repository to have an always up to date kodi… here you may find how to integrate it:
    http://forum.kodi.tv/showthread.php?tid=233308
    Instead of the wheezy path just use the Jessie path: http://pipplware.pplware.pt/pipplware/dists/jessie/main/binary

    • This reply was modified 8 years, 1 month ago by Bort.
    1. März 2016 at 21:01 #18956

    Hi,

    I’am running a MQTT broker on one of my M2P raspis. There are no interferences between MQTT and the functions oft M2P. So you may just install it following the instructions on owntracks and everything will be fine 🙂
    Just using one pi for kodi and MQTT may cause some performance problems if youre using MQTT very heavy….

    1. März 2016 at 20:25 #18953

    Hallo,

    den Bildschirmschoner musst Du ggf. noch auf „blackscreen“ konfigurieren, dann klappt das Abschalten auch nach STOP. Ansonsten siehst Du in der obersten Menüebene oben links ein Aus-Schalter-Symbol – das Stoppt das Playback und schaltet den Schoner ein und somit den Bildschirm aus…

    FLIRC (25,- € bei z.B. amazon, ab und zu für 20,-$ auch vom Hersteller im Angebot auf eBay – kommt dann halt aus USA) ist schon ziemlich genial… soooo kompliziert ist es allerding mit einem TSOP und zu Fuß auch nicht: https://www.max2play.com/forums/topic/infrared-remote-for-max2play-rpi-squeezebox/
    Gerade zu LIRC findet man ja viel im Netz… Also eher etwas copy and paste 😉

    • This reply was modified 8 years, 1 month ago by Bort.
    1. März 2016 at 19:13 #18952

    Absolutely great news!!!!

    24. Februar 2016 at 21:20 #18731

    Hi,

    A simple solution would be to simplify the libraries for the kids: http://wiki.slimdevices.com/index.php/Multi_Library_plugin

    24. Februar 2016 at 14:40 #18701

    Du kannst im SB_Player Modul ein Device als Amplifier definieren (also z.B. ei GPIO mit einem Relay). Das wird dann vollautomatisch bei Play aktiviert. Die Ausschaltverzögerung bei Stop und Pause kannst Du ebenfalls konfigurieren.

    Keine Angst für sowas simples muss man bei FHEM nicht programmieren können:

    Installation von wiringpi: sudo apt-get wiringpi
    Installation von FHEM: über das Max2Play-Plugin 😉
    fhem user berechtigen und in die wiringpi-Gruppe: cd /opt && sudo chmod -R a+w fhem && sudo usermod -a -G tty pi && sudo usermod -a -G tty fhem && sudo usermod -a -G gpio fhem

    FHEM: update und anschliessend shutdown restart
    SB_PLAYER und SB_Server Module installieren: http://www.fhemwiki.de/w/index.php?title=Squeezebox_Modul&redirect=no

    SB_Server Device anlegen, die PLayer werden dann schnell automatisch gefunden.

    Der Rest (GPIO Device, Konfiguration etc.) ist eigentlich nur klicken – die Doku ist darüber hinaus wirklich hilfreich, findet man alles schnell, wenn man mal nicht weiter weiß…

    24. Februar 2016 at 14:34 #18700

    Hallo Maximilian,

    1.) Das Problem kenn ich nur sporadisch (seltenst) – mein SBS läuft allerdings auf einer zentralen Synology (per LAN am Router) und nicht auf einem der Clients.
    2.) Danke 🙂
    3.) Ich nutze ein Suptronics X400 Extension Board – Super Leistung und ein paar Extras zu einem fairen Preis… http://www.suptronics.com/Xseries/x400.html
    Abgesehen von der Visualisierung läuft es in mehrfacher Ausführung hier echt gut. (Wobei das an gefühlt tausend anderen Sachen liegen kann… u.A. einem Upgrade der Images auf Jessi und der Tatsache, dass ich damit die Binaries nicht nehmen kann, sondern selbst kompilieren muss…)

    • This reply was modified 8 years, 2 months ago by Bort.
    • This reply was modified 8 years, 2 months ago by Bort.
    23. Februar 2016 at 21:45 #18679

    Hallo,

    ich mache das mit FHEM und wiringpi.
    Die Module SB_Player und SB_Server sind die Lösung 🙂

    17. Februar 2016 at 21:02 #18564

    Sorry, should read the question next time completely 😉

    • This reply was modified 8 years, 2 months ago by Bort.
    • This reply was modified 8 years, 2 months ago by Bort.
    29. Januar 2016 at 23:43 #18254

    Ich habe nach den ersten Versuchen nur noch das jungfräuliche max2play auf Jessie gezogen, dann alles installiert und die Konfigurationen wieder eingespielt…. Je mehr schon läuft, um so anfälliger wirds vermutlich….
    Vermutlich läuft das SB-Server-Interface über ein Snippet-include in der Apache-Config – einfach mal die includes im alten checken und dann in der neuen per Hand wieder inkludieren…

    29. Januar 2016 at 22:44 #18251

    Im Prinzip habe ich nur die Sachen in der conf behoben, die einen Dienstestart (wird schon bei der Installation versucht und ist dann im Nachgang aufzuräumen aufwendiger) unter Jessie verhindert haben (trial and error und das log). Da ich keine max2play-spezifischen Anpassungen bei Apache gefunden habe, erschien mir das Neuschreiben dann sinnvoll. So ist es hält nicht nur debugged sondern sauber… Übrigens gibt es das Angebot für die Default-Conf nur bei erfolgreichem Dienstestart.

    Bei anderen Diensten (z.b. samba) gibt es diese spezifischen Anpassungen….

    Und ganz ehrlich: Außer Apache hat nichts gezickt und alle Funktionen laufen, also warum dran rumfummeln 😉

    28. Januar 2016 at 10:59 #18184

    Hallo,

    zu 1.) Da stellt jivelite eigentlich nur das zur Verfügung was der Server will – vielleicht hast Du auf der Seite einen Hänger? (einfach mal am Server ein bisschen rumspielen, insbesondere die Integration der externen Quellen wie tunein oder Logitech rausnehmen…)
    zu 3.) funktioniert seit dem Umstieg auf iqAudioAmp-clones bei mir leider auch nicht mehr – da wäre ich also für Tipps dankbar (wobei ich davon ausgehe, dass es schlicht nicht geht aus dem DAC eine Visualisierung zurückzubekommen, wenn an Steuerung alles dahin verschoben ist ….)
    zu 4.) https://www.max2play.com/forums/topic/jivelite-reboot-und-shutdows/

    28. Januar 2016 at 10:52 #18183

    Hi,

    just take a look at fhem…
    It has a very nice an stable GPIO implementation and delivers all the tools you need for your project (eg. threshold for long key press detection).
    Some simple DOIF and WATCHDOG rules should realise all you want 🙂

    28. Januar 2016 at 10:34 #18182

    Hallo,

    das wäre in der Tat schön – allerdings ist es auch relativ unproblematisch, das selbst zu machen…
    Ich habe nahezu alle meine Installationen mittlerweile auf Jessie hochgezogen. Zum einen ist das Rechtehandling für wiringpi praktischer (nutze ich für das Schalten der Verstärker über fhem) und zum anderen gibt es für aktuelle KODI-Versionen einfach mehr Repositories für Jessie (z.B. Pipplware – für wheezy ist ja schon 15.2 kaum zu bekommen).

    Vorbereitung:
    1.) Die apache2.conf ist inkompatibel mit der neuen Version
    Es muss die LockFile-Zeile auskommentiert werden.

    #
    # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
    #
    #LockFile ${APACHE_LOCK_DIR}/accept.lock

    Zusätzlich habe ich die includes für externe snippets ganz am Ende der Datei auskommentiert.

    2.) Upgrade:
    System auf aktuellen Stand ziehen:

    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get dist-upgrade

    In den Source-Listen alles von wheezy auf jessie ändern:

    sudo sed -i /deb/s/wheezy/jessie/g /etc/apt/sources.list
    sudo sed -i /deb/s/wheezy/jessie/g /etc/apt/sources.list.d/*.list

    Und auf jessie updaten:

    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get dist-upgrade

    Die Fragen nach der zu installierenden Version der jeweiligen Dienste-config habe ich eigentlich mit Ausnahme von Apache2 immer mit „bestehende Version behalten“ beantwortet.

    Am Ende saubermachen:

    sudo apt-get autoremove
    sudo apt-get autoclean

    Bislang hatte ich keinerlei Probleme mit den so hochgezogenen Systemen – eher Vorteile… es läuft alles (jivelite inkl. Hintergrundbeleuchtungsmod für das 7″ Display, iqAudioAmp+ clone, ir, kodi 15.2 ;-), fhem…..)
    Vorher Backup machen sollte man – einen gescheiterten Versuch hatte ich allerdings nie.

    Einziger Nachteil bisher: insbesondere bei jivelite sind die fertigen binaries halt gegen wheezy kompiliert – dass heißt man musst die lange Variante wählen und die sources runterladen und kompilieren lassen. (Mache ich aber bei jivelite sowieso lieber, da ich da mittlweile auch anderweitig dran rum gefummelt habe…)

    Hoffe das hilft Dir ein wenig – und vielleicht auch dem Team: jessie läuft stressfrei mit Eurem tollen Produkt 😉

    23. Januar 2016 at 13:33 #18101

    Hi,

    very nice idea 🙂
    And it’s simple – I’ve just copied the KodiControl folder to to PowerControl (in /opt/jivelite/jivelite/share/jive/applets/)

    And then modified the files:
    PowerControlApplet.lua (renamed KodiControlApplet.lua)

     --[[
     =head1 NAME
     
     applets.PowerControl.PowerControlApplet - PowerControl Applet
     
     =head1 DESCRIPTION
     
     Reboot and Shutdown from Jivelite
     Author: Stefan Rick | Max2Play 2015 | modified by me
      
     =head1 FUNCTIONS
     
     Applet related methods are described in L<jive.Applet>. 
     
     =cut
     --]]
     
     
     -- stuff we use
     local tostring = tostring
     local os		      = require("os")
     local oo                     = require("loop.simple")
     local string                 = require("string")
     
     local Applet                 = require("jive.Applet")
     local RadioButton            = require("jive.ui.RadioButton")
     local RadioGroup             = require("jive.ui.RadioGroup")
     local Window                 = require("jive.ui.Window")
     local Popup                  = require("jive.ui.Popup")
     local Textarea               = require('jive.ui.Textarea')
     local SimpleMenu             = require("jive.ui.SimpleMenu")
    
     module(...)
     oo.class(_M, Applet)
     
     function menu(self, menuItem)
     
           log:info("menu")
           local group = RadioGroup()
           local currentSetting = self:getSettings().currentSetting
     
           -- create a SimpleMenu object with selections to be created
           local menu = SimpleMenu("menu", {
                   -- first menu item
                   {
    
                           -- text for the menu item
                           text = self:string("POWER RESTART"),
                           -- add a radiobutton with a callback function to be used when selected
                           icon = RadioButton(
                                   -- skin style of radio button (defined in DefaultSkin)
                                   "radio",
                                   -- group to attach button
                                   group,
                                   -- callback function
                                   function()
                                           log:info("Reboot")
       				       os.execute("sudo reboot")
    			       end
                           ),
                   },
                   {
                           text = self:string("POWER SHUTDOWN"),
                           icon = RadioButton(
                                   "radio",
                                   group,
                                   function()
    					os.execute("sudo shutdown now")
                                   end
                           ),
                   }
           })
     
           -- create a window object
           local window = Window("window", self:string("POWER CONTROL")) 
     
           -- add the SimpleMenu to the window
           window:addWidget(menu)
     
           -- show the window
           window:show()
     end
     
     function warnMasses(self, warning)
           log:info(self:string(warning))
     
           -- create a Popup object, using already established 'toast_popup_text' skin style
           local powercontrol = Popup('toast_popup_text')
     
           -- add message to popup
           local powercontrolMessage = Group("group", {
                           text = Textarea('toast_popup_textarea',self:string(warning)),
                 })
           powercontrol:addWidget(powercontrolMessage)
     
           -- display the message for 3 seconds
           powercontrol:showBriefly(3000, nil, Window.transitionPushPopupUp, Window.transitionPushPopupDown)
     end
    

    PowerControlMeta.lua (renamed KodiControlMeta.lua)

     local oo            = require("loop.simple")
     local AppletMeta    = require("jive.AppletMeta")
     local appletManager = appletManager
     local jiveMain      = jiveMain
     
     module(...)
     oo.class(_M, AppletMeta)
      
     function jiveVersion(meta)
           return 1, 1
     end
     
     function defaultSettings(meta)
           return {
                   currentSetting = 0,
           }
     end
     
     function registerApplet(meta)
           jiveMain:addItem(meta:menuItem('powercontrolapplet', 'home', "POWERCONTROL", function(applet, ...) applet:menu(...) end, 1000))
     end
    

    and the strings.txt

    #
    # The two letter codes are defined by ISO 639-1
    # http://en.wikipedia.org/wiki/List_of_ISO_639_codes
    
    POWER RESTART
    	EN	Reboot
    	DE	Neustart
    POWER SHUTDOWN
    	EN	Shutdown
    	DE	Herunterfahren
    POWERCONTROL
    	EN	Reboot and Shutdown
    	DE	Neustart und Herunterfahren
    POWER CONTROL
    	EN	Reboot and Shutdown
    	DE	Neustart und Herunterfahren
    

    Works like a charm 🙂

    PS: OK, wäre auch in deutsch gegangen – sollte hoffentlich aber auch so verständlich sein 😉

    20. Januar 2016 at 22:30 #18031

    Here is the script I start via crontab @reboot

    #!/bin/bash                                                                                                         
                                                                                                                        
    # Nur ausführen, wenn jivelite im Autostart                                                                         
    autostart=$(grep -a "jivelite=1" /opt/max2play/autostart.conf | wc -l)                                              
    if [ $autostart -eq 0 ];                                                                                            
    then                                                                                                                
      echo "Jivelite nicht im Autostart - irxevent wird nicht gestartet!"                                               
      exit 0                                                                                                            
    fi                                                                                                                  
                                                                                                                        
    # Warten bis jivelite gestartet ist                                                                                 
    while [ -z "$(pidof jivelite)" ];                                                                                   
    do                                                                                                                  
      sleep 1                                                                                                           
    done                                                                                                                
                                                                                                                        
    # Warten bis Lircd gestartet ist                                                                                    
    while [ -z "$(pidof lircd)" ];                                                                                      
    do                                                                                                                  
      sleep 1                                                                                                          
    done                                                                                                                
                                                                                                                        
    if [ -z "$(pidof irxevent)" ];                                                                                      
    then                                                                                                                
      echo "Starte irxevent!"                                                                                           
      echo 'DISPLAY=:0 irxevent -d /etc/lirc/lircrc'                                                                 
    else                                                                                                                
      echo "Starte irxevent neu!"                                                                                       
      echo 'sudo kill “$(pidof irxevent)“'                                                                            
      sleep 1                                                                                                           
      echo 'DISPLAY=:0 irxevent -d /etc/lirc/lircrc'                                                                
    fi                                                                                                                  
                                                                                                                        
    exit 0
    • This reply was modified 8 years, 3 months ago by Bort.
    • This reply was modified 8 years, 3 months ago by Bort.
    15. Januar 2016 at 16:33 #17913

    Von mir auch ein dickes Dankeschön für die Wochenend-Überraschung 🙂
    Funktioniert perfekt!

    11. Januar 2016 at 17:06 #17728

    Since one of my player schould be named „Küche“ I had the same problem.
    The name in the “Settings/Reboot” menu seems to be linked with the hostname… no option 😉

    So thanks to FareakyGnome for the tip with the playername.txt

    Like Maximilian wrote: the most simple solution: just set the name in the audioplayer extended options: -n Küche added to the squeezelite starting parameters works always (not just with multisqueeze)!

    • This reply was modified 8 years, 3 months ago by Bort.
    • This reply was modified 8 years, 3 months ago by Bort.
Viewing 30 posts - 1 through 30 (of 35 total)