Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Junior Member
    Join Date
    Nov 2015
    Posts
    20

    and here's a hack from me [openvpn squeezelite tinbox]

    HW:
    Raspi 2 with PhatDAC and Cinch/miniJack Outs. Wifi: RA5370

    Currently running piCorePlayer.
    Remote: iPeng
    Later when I find the time will be merged with a rough prototype of a Raspbian VPN Client connecting to a LMS via OpenVPN.
    Wil then act also as a VPN gateway for "dns-unaware" Squeezebox Radios, providing a static IP to them.
    And gets a fancy red/green connection LED ;-)

    Cheers
    M

    PS: Sorry the pic sizes are a bit overdose.

    EDIT
    Seems quite stable now.
    - It got a red/green LED on front to speak about active/broken connection to LMS (blinky disco).
    - OpenVPN is implemented, sets up the routing/dns and eth0.1 install for the other SBRadios. Triggers the rest.
    - Also double dyndns registry (dynamic and static IP)
    - Remote WebGUI for wifi configuration (queries the webserver for all saved APs on each boot, confirms download with LEDs), writes down "wpa_supplicant.conf", for next boot.
    - Avahi http broadcast für LMS GUI and remote Wifi conf (Only Safari I guess though...)
    - I *think* it should fix itself on connection loss. Systemd is voodoo for me.

    Wifi signal varies greatly, dunno why. But lowest is 6mbit so quite enough for 24/96khz flac.
    I'll think about documentation later, if there's an interest. ATM I'm lacking the time for it.

    Name:  _MWE6435.jpg
Views: 1171
Size:  193.3 KB
    Name:  _MWE6436.jpg
Views: 1156
Size:  121.9 KB
    Name:  _MWE6440.jpg
Views: 1156
Size:  198.5 KB
    Name:  _MWE6444.jpg
Views: 1155
Size:  243.9 KB
    Name:  _MWE6445.jpg
Views: 1162
Size:  246.3 KB
    Last edited by maweber; 2016-03-14 at 18:18.

  2. #2
    Senior Member Mnyb's Avatar
    Join Date
    Feb 2006
    Location
    Västerås Sweden
    Posts
    15,828
    +1 for the "snake charmer" cigarette brand that was hilarius .

    Phat Dacs seems very very affordable , for multi-room support , whole house audio does not need to be super expensive . Hack on .
    --------------------------------------------------------------------
    Main hifi: Touch + CIA PS +MeridianG68J MeridianHD621 MeridianG98DH 2 x MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3 sub.
    Bedroom/Office: Boom
    Kitchen: Touch + powered Fostex PM0.4
    Misc use: Radio (with battery)
    iPad1 with iPengHD & SqueezePad
    (spares Touch, SB3, reciever ,controller )
    server HP proliant micro server N36L with ClearOS Linux

    http://people.xiph.org/~xiphmont/demo/neil-young.html

  3. #3
    Junior Member
    Join Date
    Nov 2015
    Posts
    20
    Quote Originally Posted by Mnyb View Post
    +1 for the "snake charmer" cigarette brand that was hilarius.
    :-)
    Indeed, but I was not even aware. Seems more obvious for the english speaking.
    It must have been that way of style to praise temptation, forever ago. ;-)

    m

  4. #4
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,475

    and here's a hack from me

    > Wil then act also as a VPN gateway for "dns-unaware" Squeezebox Radios,
    > providing a static IP to them.


    Now that's something I'm surprised hasn't come up before. At some point
    I even hoped somebody could come up with a solution to build this in to
    a SB Touch. But who needs a Touch for this nowadays when you can have a
    Pi for cheap :-). Please let us know about your findings!

    --

    Michael

  5. #5
    Junior Member
    Join Date
    Nov 2015
    Posts
    20
    Quote Originally Posted by mherger View Post
    > Wil then act also as a VPN gateway for "dns-unaware" Squeezebox Radios,
    > providing a static IP to them.


    Now that's something I'm surprised hasn't come up before. At some point
    I even hoped somebody could come up with a solution to build this in to
    a SB Touch. But who needs a Touch for this nowadays when you can have a
    Pi for cheap :-). Please let us know about your findings!

    --

    Michael
    yes basically it works. i cannot tell about speed because lossless i only tested with the pi on ethernet.
    but with good wifi... maybe.
    but to let the pi give itself an ip you need to aim a bit at a range, so it is not used by dhcp.
    of course you can autodetect free ips, but can be tricky in different locations, when you're on the road.
    another downside is I didnt manage to advertise LMS on the radio side. It seems that broadcast protocoll is so ancient...
    tweaked avahi db into it, just nothing happened.

    btw, everything else can be advertised :-)
    so there is now a direct SMB and AFP avahi broadcast for the LMS on the other side of the tunnel...

    as for iPeng and the web-browser remote I let the pi register his two adresses with dyndns.
    which can in turn itself be avahi-zed for mac safari.

    the only question right now is,
    how can I let the user define a new wifi AP without going terminal.
    php on the pi... again... yuck.

    best,
    gruess
    m

  6. #6
    Junior Member
    Join Date
    Nov 2015
    Posts
    20
    guess what...
    a timeless classic these coffee machines.

    Name:  _MWE6463.jpg
Views: 848
Size:  98.1 KB
    Name:  _MWE6465.jpg
Views: 856
Size:  106.6 KB

  7. #7
    Senior Member Mnyb's Avatar
    Join Date
    Feb 2006
    Location
    Västerås Sweden
    Posts
    15,828
    +1 cool BTW how is wi-fi when you build in metal chassis ( 2 now ) do you dangle the antenna on the outside
    --------------------------------------------------------------------
    Main hifi: Touch + CIA PS +MeridianG68J MeridianHD621 MeridianG98DH 2 x MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3 sub.
    Bedroom/Office: Boom
    Kitchen: Touch + powered Fostex PM0.4
    Misc use: Radio (with battery)
    iPad1 with iPengHD & SqueezePad
    (spares Touch, SB3, reciever ,controller )
    server HP proliant micro server N36L with ClearOS Linux

    http://people.xiph.org/~xiphmont/demo/neil-young.html

  8. #8
    Junior Member
    Join Date
    Nov 2015
    Posts
    20
    Quote Originally Posted by Mnyb View Post
    +1 cool BTW how is wi-fi when you build in metal chassis ( 2 now ) do you dangle the antenna on the outside
    yes. the small box got one attached.
    for the coffeemachine i dont know yet. i could mount it on top.
    but somehow it would break the visual characteristics of this old design.
    i guess the cleanest way would be at waist height right beside the phono plugs.
    so one could dettach it if using ethernet (d-sub plug).

    bad though i find no visually neutral antennas that are small.

    m

  9. #9
    Senior Member
    Join Date
    Apr 2013
    Posts
    141
    That looks great! Combining two of my favorite things, coffee and the squeezebox. Well done!

  10. #10
    Senior Member
    Join Date
    Apr 2008
    Location
    Paris, France
    Posts
    1,942
    Quote Originally Posted by maweber View Post
    yes basically it works. i cannot tell about speed because lossless i only tested with the pi on ethernet.
    but with good wifi... maybe.
    but to let the pi give itself an ip you need to aim a bit at a range, so it is not used by dhcp.
    of course you can autodetect free ips, but can be tricky in different locations, when you're on the road.
    another downside is I didnt manage to advertise LMS on the radio side. It seems that broadcast protocoll is so ancient...
    tweaked avahi db into it, just nothing happened.
    I'm used to setting up Ovpn, but I admit I don't use it to extend the reach of my LMS server.
    However, I can safely say that if you use an "old style", kernel-level bridging setup for openvpn (ie: define your own tap and plug it in your own bridge before openvpn starts), broadcasts work absolutely fine. Anything goes through.
    (It even becomes a bit of a problem if you want to allocate IPs via a local DHCP server: you have to filter lease offers from the remote DHCP server across the bridge to avoid them reaching local clients...)

    You can bridge in site-to-site mode with perfectly good results even over a thin pipe. Rumors of broadcasts eating up all the bandwidth are greatly exaggerated.
    Put a wifi card in the Pi, add the interface to the bridge, run hostapd and your local players will be fine.

    UPDATE. Well, distressing news. In fact I did imagine I could need one day to connect an SB player to a remote site. So I tried today connecting one of my SB3s to a bridged network that has an LMS server. Discovery went fine and menu navigation on the SB3 was usable with the IR remote (...)
    However I couldn't manage to play anything. I went down to a 32kbps mp3 file, but something was going wrong. Ping is over 70ms, I guess it doesn't help but it looked more like the SB3 was not receiving the stream at all or not able to respond.
    There are 3 firewalls along the way, and one of the openvpn server is very outdated, but I didn't want to mess with the setup too much so I left at that.
    I guess I'll scratch that itch one of these days.
    Last edited by epoch1970; 2016-04-01 at 05:11.
    3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •