• WANTED: Happy members who like to discuss audio and other topics related to our interest. Desire to learn and share knowledge of science required as is 20 years of participation in forums (not all true). There are daily reviews of audio hardware and expert members to help answer your questions. Click here to have your audio equipment measured for free!

Simple Python Web App for WiiM Mini Display

Brantome

Major Contributor
Joined
Apr 4, 2020
Messages
1,042
Likes
865
I’ll try and retrace my steps and get back with what I remember I did ;)
Hi, when dealing with new stuff like this I tend to take a scattergun approach, so maybe one of the following steps was what did the trick for me, so as best I can recall this is what I did:

1. Download and install Python 3.7.9 on Windows 11, probably choosing the default options, including the one to set the PATH variable
2. Download the github contents into a folder, F:\Software\Python in my case
3. Amended server.py with the IP address of my WiiM Mini
4. As I recall, I did pip installs for each import line in that script e.g. pip install upnpclient, pip install xmltodict etc - I think some may already have been included in the core Python system anyway, but I still ran thru each. I may have run a pip update first too i.e. pip install --upgrade pip
5. Followed the instructions for the chrome extension at http://mytypings.com/converting-website-to-a-google-chrome-extension/
6. Set up a small batch file wiim.bat in that same folder to run up the server with the lines
CD f:\Software\Python
.\server.py
exit /b
7. When I fire up my PC, I run that batch file then click on the extension in Chrome, and all's well...

If I remember any other steps I took, I'll come back and update this
 

JeremyFife

Senior Member
Joined
Jan 8, 2022
Messages
488
Likes
527
Location
Scotland
Hi, when dealing with new stuff like this I tend to take a scattergun approach, so maybe one of the following steps was what did the trick for me, so as best I can recall this is what I did:

1. Download and install Python 3.7.9 on Windows 11, probably choosing the default options, including the one to set the PATH variable
2. Download the github contents into a folder, F:\Software\Python in my case
3. Amended server.py with the IP address of my WiiM Mini
4. As I recall, I did pip installs for each import line in that script e.g. pip install upnpclient, pip install xmltodict etc - I think some may already have been included in the core Python system anyway, but I still ran thru each. I may have run a pip update first too i.e. pip install --upgrade pip
5. Followed the instructions for the chrome extension at http://mytypings.com/converting-website-to-a-google-chrome-extension/
6. Set up a small batch file wiim.bat in that same folder to run up the server with the lines
CD f:\Software\Python
.\server.py
exit /b
7. When I fire up my PC, I run that batch file then click on the extension in Chrome, and all's well...

If I remember any other steps I took, I'll come back and update this
Time to start reading! Thanks for this, it's hand-holding above and beyond :)
 
OP
Ralph_Cramden

Ralph_Cramden

Major Contributor
Joined
Dec 6, 2020
Messages
2,337
Likes
3,134
Nope. WiiM Mini doesn't allow CORS. So, we're stuck with an intermediary web server.

View attachment 215925
Well, actually....

Been reading up on this - it CAN be done without the python server, in a background.js script. I've posted a VERY preliminary example over on the WiiM forum.

 
OP
Ralph_Cramden

Ralph_Cramden

Major Contributor
Joined
Dec 6, 2020
Messages
2,337
Likes
3,134
Put this up on github. MUCH easier to install, no Python required, just a Chrome extension for the Chrome (and Cromium-based) browser.

For you Radio Paradise fans, the WiiM app now supports the RP FLAC streams, but not their metadata. This will detect which RP stream you're playing on the WiiM, and show the metadata pulled directly from RP.


1677373994375.png
 
Top Bottom