mihosoft.eu
Programming, Art, Linux, Free Software…
mihosoft.eu
Navigation
  • Home
  • VRL-Studio
  • SonoAir
  • Monochrome Wars
  • About
  • Impressum
  • Datenschutz
You are here: Home › Featured › SonoAir JavaFX App

SonoAir JavaFX App

March 12, 2015 | Filed under: Featured, Java, JavaFX, Sonos and tagged with: AirPlay JavaFX, AirSonos, Java, SonoAir, Sonos
SonoAir

SonoAir

Since a few days I have a Sonos speaker. I was very impressed with its sound quality. But I was really surprised when I found out that it doesn’t support AirPlay.

Fortunately, there are many Sonos related open source projects out there. Oe of the most helpful one for me is AirSonos. It’s a node.js module that adds AirPlay support to Sonos. But the installation of the correct node.js version, native libraries etc. is not always easy. SonoAir also leverages the sono-java-api for device control.

SonoAir is a JavaFX application that contains all necessary libraries to run AirSonos without installation. In addition it provides controls to adjust speaker volume and led:

SonoAir Device Control

SonoAir Device Control

Currently, builds for OS X are available. But I plan to provide builds for Linux and Windows as well.

Download SonoAir Beta 1 from http://sonoair.mihosoft.eu.

Beta 2 is coming soon…

UPDATE: BETA 2 has been released!

Did you like this article? Share it with your friends!

Tweet

Written by admin

Visit my Website Follow me on Twitter

68 Responses to "SonoAir JavaFX App"

  1. Anleitung: Sonos-Player per Knopfdruck zum AirPlay-Empfänger machen - Der Tutonaut says:
    March 17, 2015 at 11:12

    […] für Mac OS X zur Verfügung und funktioniert dabei auch problemlos unter Yosemite. In einem Blogpost hat Entwickler Michael Hoffer angekündigt, bald auch eine Version von SonoAir für Windows und […]

    Reply
  2. Rene says:
    May 9, 2015 at 08:12

    Nice idea. I will love it for my Sonos System. But it didn’t worked out for me. “An error occurred while connecting to the AirPlay device “Kitchen (SonoAir)”. An unknown error occurred (-15000).” Any idea why this happend?

    Reply
    1. miho says:
      May 9, 2015 at 08:16

      Have you looked at the SonoAir error log? It gives you a link to a possible solution (See the error screenshot): http://sonoair.mihosoft.eu/codec-not-supported.html

      Reply
      1. TPM says:
        August 19, 2015 at 17:46

        Thanks for this hint @miho, but that doesn’t work out, because the desired AirPlay device doen’t display in thel list of the speaker icon.

        Reply
  3. rogtheranter999 says:
    May 13, 2015 at 10:55

    Great app! Much easier than trying to install xcode, npm etc etc to get AirSonos working. Thanks!

    It would be cool if you could launch it to the menu bar rather that leaving it in the tray if possible.

    Reply
  4. Cedric says:
    May 14, 2015 at 15:00

    Hey miho, thank you for your good job by producing this software & usign airsonos. Sadly I have to tell you, that i’m not able to see sonos devices in your software on my Mac OS X 10.10.3 I’ve disabled my firewall and little snitch, running on my MacBook. Also I’m able to ping to my sonos devices and get a great response. Do you’ve other ideas for me tok solve this problem?

    Thank you for your patience!

    Greetings form Frankfurt (Höchst), Cedric

    Reply
    1. miho says:
      July 1, 2015 at 15:09

      Maybe the Sonos controller app is the problem. Try to close all instances (Mac, Phone etc.). Does that help

      Reply
  5. dgburke says:
    May 17, 2015 at 15:31

    I contributed 10 Euro for SonoAir and after trying to install it on an older MacBook, it stated that I needed Lion OSX or greater. Unfortunately, Snow Leopard is the highest I can go with my hardware. I’m using this old laptop as a dedicated iTunes server for my Sonos system and would love to connect directly to Sonos via AirPlay (currently using the AirPort method connected to a Play:5).

    Is there anything I can do to make this application work on Snow Leopard? I’m willing to contribute more money to the cause.

    Reply
    1. miho says:
      July 13, 2015 at 01:31

      Thanks for your donation 🙂

      Reply
  6. Agnes says:
    May 22, 2015 at 21:47

    great app, thank you! but I am wondering if it is possible to group my speakers, so far I manage only to listen in at the time …

    Reply
    1. miho says:
      July 13, 2015 at 01:29

      The new 1.0 (beta 3.2) can discover groups that you defined with a Sonos controller app.

      Reply
  7. Rob says:
    June 13, 2015 at 18:39

    Hey, great app you made here. I was using airsonos through terminal before and it was too much of a pain. This is so simple! I came across your app when googling how to make one to save the trouble of airsonos turns out you already had. I have ONE BIG request. Can you please make the app in the menu bar and not the dock. The reason for this is so it can open at log in and show very minimal sign of running apart from the menu bar icon.

    Reply
    1. miho says:
      July 13, 2015 at 01:33

      Currently, I’m more concerned about device discovery. But I’ll investigate…

      Reply
  8. Rene says:
    June 21, 2015 at 17:38

    After I played for a while (and with your hints) I managed to run the airsononos properly! Thank you for your work, something I looked for a while.

    At my system (10.8) it dos not run rock-solid, but its wortth the hassle. If there will be a more reliable version, I am ready to pay my share. And if there will be a version for Synology I am willing to pay it double 🙂

    Thanks for the work.

    Reply
  9. David says:
    June 21, 2015 at 20:14

    Any chance this can be run on snow leopard? I’m using an old MacBook as an iTunes server. Willing to contribute monetarily! Thanks.

    Reply
    1. miho says:
      July 13, 2015 at 01:30

      I don’t have a Mac with 10.6 right now. So this would be rather difficult.

      Reply
  10. Daniel Leismann says:
    June 24, 2015 at 14:54

    Hallo Michael! Danke für deine geniale App! Funktioniert super, bis auf dass das mein Mac den Codec nicht supported… Also über das Air Play Symbol bekomme ich den Fehler -15000. Nun kann ich über “alt+rechte Maustaste” den Songs Player anwählen, funktioniert auch gut, Trotzdem bleibt es dann nur bei einem Ausgabegerät. Will ja gleichzeitig mehrere Ausgabegeräte ansteuern. Ist es möglich den Codec nachzurüsten oder ähnliches? Hast du Vl. eine Lösung meines Problems?

    Reply
    1. miho says:
      July 13, 2015 at 01:25

      Leider geht das bisher nicht. Man kann derzeit nur ein Gerät bzw. eine Group ansteuern.

      Reply
  11. Sus says:
    June 27, 2015 at 09:09

    Hallo Michael, danke für die APP. Ich kann nun vom iPhone z.B. Audible mit Airplay abspielen – ein großer Gewinn. Leider sehe ich die Sonos aber auf meinem Macbook immer noch nicht in Spotify. Hast Du einen Tipp? Grüße Sus

    Reply
    1. miho says:
      July 13, 2015 at 01:23

      Hallo Sus,

      leider nicht. Man sollte doch auf dem iPhone generell AirPlay als Audioausgang einstellen können, oder? Sorry, habe kein iPhone.

      Reply
  12. uvmann says:
    June 30, 2015 at 20:12

    Any idea how to avoid confusing or getting things running at all when having a group of a Playbar, Sub and 2 Play:3 running as »living room« and the Sonoair list shows just 4 items named the same… »living room«? Is there a trick to avoid that confusion?

    Works pretty good with single player or stereo/couples.

    Thanks for the great work!

    Reply
    1. miho says:
      July 1, 2015 at 00:25

      I have only one pair of speakers. Currently, I cannot test other setups. Does one of the four items work?

      Reply
      1. uvmann says:
        July 1, 2015 at 11:13

        No. None of them works at all. And I couldn’t find a way to identify what is what without disconnecting the group. Using the Playbar und the surround pair alone works perfectly. Could be the sub that is confusing. (Or the group of more than two players in one zone.)

        I’m not complaining, but if there is anything I can do to help find a solution, let me know.

        Reply
        1. miho says:
          July 1, 2015 at 15:07

          I’m not complaining, but if there is anything I can do to help find a solution, let me know.

          No problem. It’s good to know the issue even though I can’t provide a solution at this point. One thing that might help with identifying the devices: can you enable/disable the device LEDs?

          Reply
          1. uvmann says:
            July 8, 2015 at 20:09

            Sorry for the late reply, but yes, I can enable/disable the device LEDs. But as I said, there is no chance of addressing them for listening, as all four are in the list under one name. Another stereo pair I own is shown just once under it’s collective name. So it’s either the Sub or the Playbar or the fact of four devices being grouped the causes the »trouble«.

  13. frederiekpascal says:
    July 1, 2015 at 17:35

    hello,

    only 3 of my 6 Sonos speakers are recognised… How comes?

    Reply
    1. miho says:
      July 1, 2015 at 17:37

      I can’t exactly tell. I only have two speakers. Can you tell me more about your setup (Speakers,Groups,OS X version)?

      Reply
      1. frederiekpascal says:
        July 3, 2015 at 15:08

        Okay, I have 1 X play 5, 2 X play 3 and 4 X play 1

        I use latest mac osX release (yosemite)

        Here’s a screenshot of what I see in your app : https://www.dropbox.com/s/rj4m90ggirat1d8/Screenshot%202015-07-03%2015.07.24.png?dl=0

        Only 3 of my 6 Sonos machines are recognised… That sucks 🙂

        I guess I’ll stay with my airport express solution for now?

        Reply
        1. miho says:
          July 12, 2015 at 19:07

          I created a new version that implements discovery differently. Interested in testing before I release it officially?

          Reply
  14. SanDaan says:
    July 5, 2015 at 17:46

    I love this app but it doesn’t work a all. It keeps searching without finding any of my 3 devices. Any idea what the issue could be?

    Reply
    1. miho says:
      July 6, 2015 at 17:19

      Sorry to hear that. Are you sure that the Firewall does not block the program?

      Reply
      1. SanDaan says:
        July 6, 2015 at 17:50

        Yes I’m sure the Firewall was turned off for testing.

        Reply
      2. Cedric says:
        July 6, 2015 at 18:37

        The same here – Maybe, that’s because I’m using a bridge ? Do you have some other ideas for this problem ?

        Reply
      3. Cedric says:
        July 6, 2015 at 18:39

        sry 4 double post – but maybe it could work by using an ip adress to connect to? So if it’s just the auto-detecting function who has a problen, we can solve this by trying 2 connect using the direct ip adress of an player ? What dou you think, miho ?

        Reply
        1. miho says:
          July 7, 2015 at 18:34

          Ok, I will add a manual setup window or something. My airsonos-fork supports manual setup anyway.

          Reply
        2. miho says:
          July 12, 2015 at 19:08

          I am working on a different discovery algorithm. Interested in testing the next version before I release it officially?

          Reply
          1. SanDaan says:
            July 12, 2015 at 21:27

            Yes I’m interested in the trial version.

          2. Cedric says:
            July 12, 2015 at 23:22

            Yes. Senf me more Details 2 my Mail Adress 🙂

          3. miho says:
            July 13, 2015 at 01:12

            I already released the new beta since it worked surprisingly well in my test environment. Please give feedback how it works for you. Thanks!

  15. Andre says:
    July 6, 2015 at 17:15

    i get always an error “SonoAir does not support the requested codec.” i want to play from itunes (apple music stream) with osx 10.10.4

    Reply
    1. miho says:
      July 6, 2015 at 17:19

      When SonoAir shows this message the log contains a link to the solution: http://sonoair.mihosoft.eu/codec-not-supported.html

      Does that help?

      Reply
      1. Andre says:
        July 6, 2015 at 17:45

        Sorry no, now itunes tried to cennect to speaker, but the error dialog shows, i cannot connect to… (“Die Verbindung zu „Holti Mobilfunk (SonoAir)“ konnte nicht hergestellt werden”)

        Reply
        1. Tim says:
          July 7, 2015 at 18:32

          Same here. i guess its because of the new update on itunes or osx? osx yosemite 10.10.4 here.. will it work if airsonos gets updated? i just got my new sonos play 5 and i would like to test it with “normal” airplay

          Reply
          1. miho says:
            July 7, 2015 at 18:36

            I just updated my test machine and will try it with Mac OS 10.10.4 and iTunes 12.2 soon.

  16. Jonas says:
    July 9, 2015 at 19:21

    wow very nice, and it works!! Keep up the good work, i hope in the future that it is possible to airplay from itunes, en not to open the system preferences en than select sound. My english is not so good 😉 But i love it, very nice!!

    Reply
  17. Michael_CGN says:
    July 11, 2015 at 09:17

    Ich kann mit SonoAir jetzt problemlos meine Sonos Boxen ansteuern. Was allerdings nicht klappt, ist ein zweites Ausgabegerät z.B. Boxen, die an eine AirportExpress Station angeschlossen sind zusätzlich parallel anzusteuern. Es geht bei mir nur entweder oder. Gibt es hier einen Trick, oder mache ich etwas falsch? Beste Grüße aus Köln

    Reply
    1. miho says:
      July 13, 2015 at 01:27

      Das wird leider nicht unterstützt.

      Reply
  18. Dustin Ranem says:
    July 12, 2015 at 03:21

    Installed fine, but no audio is coming out. I also have 10.10.4

    Reply
    1. miho says:
      July 13, 2015 at 01:27

      Sorry, I can’t reproduce the bug with 10.10.4.

      Reply
      1. Dustin Ranem says:
        July 13, 2015 at 16:03

        Stange. It opens fine, but when I select the speaker it goes silent…

        Reply
  19. SanDaan says:
    July 12, 2015 at 19:18

    Yes I’m interested!

    Reply
    1. miho says:
      July 13, 2015 at 01:12

      I already released the new beta since it worked surprisingly well in my test environment. Please give feedback how it works for you. Thanks!

      Reply
      1. SanDaan says:
        July 13, 2015 at 01:21

        Hi, ich hab’s gerade versucht aber leider bliebt die App nach wie vor beim “searching devices…” hängen. Hab ein iMac 27″ (late 2009), mit OS X 10.10.4 und 12.2.0.145.

        Sonst funktioniert das SONOS System perfect (v5.3.2) auch AirPlay über der AppleTV lauft einwandfrei.

        Hast Du ein Idee was es problem sein könnte? Gibt’s die Möglichkeit die Lautsprecher direkt zu adressieren?

        Reply
        1. miho says:
          July 13, 2015 at 01:39

          Ja, aber dafür gibt es leider noch kein Interface. Du kannst airsonos aus dem Bundle direkt starten und die IP-Adressen direkt angeben:

          Terminal App öffnen und folgendes eintippen (–device-list 192.168.1.11,192.168.1.22 an die eigenen Speaker anpassen):

          /Applications/SonoAir.app/Contents/Java/resources/osx/node-v0.10.28-darwin-x64/bin/node /Applications/SonoAir.app/Contents/Java/resources/osx/node-v0.10.28-darwin-x64/bin/airsonos --device-list 192.168.1.11,192.168.1.22
          

          Das sollte ungefähr die folgende Ausgabe liefern:

          Setting up SonoAir for Schlafzimmer {192.168.1.11:1400}
          Setting up SonoAir for Schlafzimmer {192.168.1.22:1400}
          
          Reply
          1. SanDaan says:
            July 13, 2015 at 01:45

            Wenn ich dass Eintrag in Terminal kommt “No such file or directory” zurück. Ist die App dann nicht richtig installiert?

          2. SanDaan says:
            July 13, 2015 at 02:50

            Hi, Ich antworte mal in Englisch da vielleicht weitere Benutzer was davon haben können.

            I’ve found the issue it was something on the network. I’ve the latest Rogers Hitron CGN3 (Advanced) and this module has sometimes issues with the Time Capsule I’m using. Don’t ask me why it happens but it seems to have something to do with the DNS Server which isn’t properly propagated after a while anymore. The solution is to reboot the router and afterwards the Time Capsule. Then everything works fine and I can even discover the device instantly. I guess this functionality broke while installing new hardware to the system. Looking back I understand why had other issues on the network too (Belkin Wemo not visible anymore, new Hue software on my iMac not being able to detect the bridge).

            I still would like to see the fixed IP addresses though since I would never have an issue anymore if that feature is available. 🙂

            And anyone with a better solution as rebooting for the general issue between the Time Capsule and the Hiltron box feel free to answer too. 😉

            Gr. Sander

          3. miho says:
            July 13, 2015 at 16:04

            The problem with manually specified IPs seems to be that the speakers show up but Mac OS still complaints that it cannot connect to the corresponding AirPlay device. This is what other users reported just recently.

          4. SanDaan says:
            July 13, 2015 at 16:11

            Ok, for now it seems to work and I’ll be changing my network topology to move the router functionality to the Time Capsule instead of the crappy Rogers/Hiltron box.

            If I can support you with any data or simple test results please let me know.

  20. Nik Cake says:
    July 28, 2015 at 11:21

    Ich erhalte leider dauerhaft die Meldung “Die Verbindung zu “Büro (SonoAir)” konnte nicht hergestellt werden. Gibt es hierzu eine Lösung bzw. welches Problem liegt vor?

    Reply
    1. miho says:
      September 13, 2015 at 17:07

      Was sagt SonoAir? Gibt es eine Fehlerausgabe von SonoAir, oder nur die Meldung von Mac OS?

      Reply
  21. Ali says:
    August 2, 2015 at 19:07

    Hallo miho ! Ich finde SONOAIR Klasse ! Nur nervt das, dass der Mac die ganze Zeit dabei parallel laufen muss… ich benutze hauptsächlich mein iPhone für AirPlay und nicht meinen Mac… wirst Du das bald lösen können, dass man bspw. direkt von der iPhone App aus auf die Sonos Lautsprecher per AirPlay zugreifen kann OHNE dass der Mac an sein muss ? z.B. direkt aus der SONOS App selbst, oder mit einer speziellen programmierten JAVA App fürs iPhone ? Das wäre die Kirsche auf der Sahnetorte 😀 😀 Würde mich auf eine Antwort von Dir freuen ! Viel Erfolg noch !

    Reply
    1. miho says:
      September 13, 2015 at 17:06

      SonoAir auf dem iPhone fände ich auch echt toll. Leider wird daraus aber vorerst nichts 🙁 Wenn sich mehrere Mitstreiter finden, die sowas unterstützen würden, wäre es evtl. machbar.

      Reply
  22. dhil says:
    October 12, 2015 at 13:28

    Hi Miho,

    Any idea, when SONOAIR will support OSX 10.11?

    Reply
  23. Michael says:
    December 10, 2015 at 18:50

    hallo miho, bei mir erzeugt die SONOAPP einen Zeitversatz von ca. 4 Sekunden. kann dies irgendwie verändert werden?

    Reply
    1. michael says:
      December 10, 2015 at 18:56

      korrigiere es sind genau 2800ms

      Reply
      1. michael says:
        December 10, 2015 at 19:28

        und das Einstellrad (rechts) neben dem SonosAuswahl [Wohnzimmer] ist bei mir nicht anwählbar, warum kann das so sein?

        Reply
  24. martin says:
    May 22, 2016 at 19:08

    Select the desired AirPlay device from the speaker icon in the menubar (Alt+Primary Mousebutton). Genau dieses wird bei gar nicht angeboten unter dem Lautsprecher? Woran kann das liegen?

    Reply
  25. fernando says:
    July 12, 2018 at 14:37

    Hi there

    will you release a Windows version soon?

    Regards

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Pages

  • About
  • Datenschutz
  • Impressum
  • Seminar 2019

Categories

  • 3D Printing
  • Any-Key
  • Art
  • C/C++
  • Devoxx
  • Digital Painting
  • Featured
  • IoT
  • Java
  • JavaFX
  • Javakurs 2015
  • JavaOne
  • Linux
  • Linux on Apple Hardware
  • Linux: Daily Usage Tips
  • Mobile Apps
  • Mobile Devices
  • Programming Languages
  • Repair Things
  • Science
  • Sonos
  • Teaching
  • Uncategorized
  • Virtual Reality
  • VRL

Tags

3D 3D Printing 3d visualization AirSonos Apple Music Devoxx Devoxx 2013 gradle graph iOS Java Java 8 JavaFX JavaFX 8 JavaOne JavaOne 2013 jdk9 JFXtras JInternalFrame Linux MacBook MDI mobile apps OpenDive OpenJDK OpenJFX Open Source Performance scientific visualization SonoAir Sonos Ultimaker Virtual Reality Virtual World visual programming VPlot VRL VRL-Studio VWorkflows window control Window Node Window System workflow workflows X11

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

JavaOne Rockstar

JavaOne Rockstar
Follow @mihosoft

Recent Posts

  • Native JDK9 Application Bundles
  • Running C code from Java via VTCC
  • SonoAir finally supports macOS High Sierra!
  • JavaOne 2017 Community Keynote Artwork
  • The JGrounds App: better teaching apps for Java 9 [BOF5047]

Recent Comments

  • ¿Ventanas completamente personalizadas de JavaFX? - Fallosweb.com on VFXWindows
  • JavaFX entirely customized windows? – w3toppers.com on VFXWindows
  • Volel Mondesir on Adding Custom Icons to JFXtras Window Control (VFXWindows)
  • Volel Mondesir on Adding Custom Icons to JFXtras Window Control (VFXWindows)
  • Switching between different JDK versions in Windows - ErrorsFixing on JSelect: switch between different JDK versions

Archives

  • February 2018
  • October 2017
  • September 2017
  • February 2017
  • June 2016
  • May 2016
  • November 2015
  • September 2015
  • July 2015
  • March 2015
  • September 2014
  • March 2014
  • February 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • November 2010
  • February 2010
  • November 2009
  • October 2009
  • February 2009
  • August 2008
  • May 2008
  • April 2008
  • March 2008
Privacy & Cookies: this site uses cookies. By continuing to use this website, you agree to their use.
To find out more, see here: Impressum & Datenschutz

© 2023 mihosoft.eu