Closed TheHighFlyingBirds closed 2 years ago
Hi dhrone
Closing this as its a volumio issue.
For information, I managed to get it working briefly by editing the statemachine.js file in root/volumio/app; however, it must be causing an issue elsewhere as it caused volumio to stop working until I removed my edits.
Hi dhrone,
I have a slight issue, that I cannot figure out. I have configured my pages file to display what I need to and it works well apart from one minor issue. I can display the bitrates for spotify tracks (have to use 'samplerate' in the widgets for this one for some reason), web radio, and when playing files directly from my NAS via the 'Media Servers' link in volumio.
However, when I select music from the 'Music Library' link in volumio that I have mounted and has been scanned, the bitrate does not show on my display. Both of these music sources are using the same canvas which is based on the conditions not db['stream']=='spotify' and not db['stream']=='webradio'" . For reference the tracks are the same and are from the same source just access by the two different links in volumio. Looking at the status via the 'localhost/api/v1/getState' web page and using the volumio status command in the CLI terminal replicates the same issue in that the 'bitrate' attribute is not even listed for music played via the 'Media Library' link.
The only difference I can see is that the 'stream' output differs between the two methods. For music played from the 'Media Server' link, the 'stream' output is 'false', for music played via the 'Music Library' link, the 'stream' output is listed as the filetype, e.g. mp3 or flac.
I see that you had updated musicdata_volumio2.py in response to issue #92, which I assume was the inclusion of line 134, and I see that the pydpiper.py script references the script in line 125, which matches my pydpiper script and I have the musicdata_volumio2.py script in my sources folder.
Do you have any ideas what it might be? I have tried looking at the various scripts, but I have to be honest, I am lower than novice level when it comes to coding.
For info I am currently running volumio (v3.198) on my pi4 (2GB rev 1.5) and the latest branch of pydpiper (used 'sudo git clone https://github.com/dhrone/pydPiper' and then ran the install_docker and install_volumio scripts).
Apologies for the long post.
Thanks