SPOTIFY FOR PsionLX -- THE SOURCE
=================================
psionnet-spotify.c the program: GTK 2.4, C, one file
icons.h the Play, Pause, Next and Previous buttons (XPM)
psionnet-spotify.desktop its launcher: PROGRAMS > OTHER > Spotify
psionnet-spotify.png its 48x48 icon, drawn by mkicon.py
psionnet-spotify-128.png the same icon, larger
mkicon.py draws both icons (Python 3 with Pillow)
Written in 2026 for this release; Psion never had it. It is the netBook Pro
half of PsionNet, a free macOS app that puts Psion machines online
(https://github.com/JYewman/PsionNet). The
netBook Pro cannot reach Spotify itself: its newest TLS is 1.0 and no Spotify
client ever existed for its 2005 ARM Linux. So PsionNet, on a Mac on the same
network, does the talking to Spotify. It runs a Spotify Connect speaker named
"netBook Pro" (librespot), encodes what it plays as MP3, and serves that and
your library over plain HTTP. This program:
* finds PsionNet by broadcasting "PSIONNET?" to UDP port 8899, or asks for
the Mac's address, and remembers it in ~/.gpe/psionnet-spotify
* lists Liked Songs and your playlists, searches songs, albums and
playlists, and shows what is playing, with its cover
* plays through the GStreamer 0.8 already in Psion's image,
gst-launch-0.8 gnomevfssrc location=http://<mac>:8080/spotify/stream.mp3
! mad ! audioconvert ! esdsink
but only while Spotify says this machine is the speaker in use, so
choosing another speaker on your phone silences it here
* logs that pipeline's output to ~/.gpe/psionnet-spotify.log
Without PsionNet running on the network it does nothing but say so. PsionNet
needs a Spotify Premium account and a free Spotify developer Client ID; its
own README explains the setup.
BUILDING
rm -rf arm-oabi-chroot/build/psionnet-spotify
cp -R psionnet-spotify arm-oabi-chroot/build/
scripts/qbuild.sh jobs/job-spotify.sh
It compiles with gcc-3.4 in the ARM OABI chroot, against the chroot's GTK
2.6 headers. Only GTK 2.4 / GLib 2.4 calls are used, because those are the
libraries in Psion's image. scripts/linkcheck.py on the full image's tree
proves it: every symbol the program needs is defined in Psion's own
libraries. scripts/merge-soho.py then installs the binary, the launcher and
the icon into the full image, as its NEW category. It refuses a binary
older than this source.
TESTED
On a real netBook Pro, 4 October 2026: installed over the network on a
card running the full image, it found PsionNet by itself and played real
Spotify through the machine's own speaker, by way of Psion's GStreamer
and esd. The 400 MHz processor's load average was about 2 while playing.
Before that, in the emulator (scripts/guitest.sh with GUITEST_NET=1),
against PsionNet's demonstration bridge:
* launched from its PROGRAMS icon
* found PsionNet by broadcast
* listed the library, played a track and showed its cover, searched
* the pipeline above decoded the stream in real time, minus esdsink,
which needs sound hardware the emulator does not have
Spotify is a trademark of Spotify AB. This program is not made or endorsed by
Spotify. GPL-2.0-or-later, as part of PsionNet.