Moode Forum
[How to do instruction] pydPiper for Audiophonics I-Sabre ES9023 V3 [Winstar 80x16 OLED] - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: FAQ and Guides (https://moodeaudio.org/forum/forumdisplay.php?fid=9)
+--- Thread: [How to do instruction] pydPiper for Audiophonics I-Sabre ES9023 V3 [Winstar 80x16 OLED] (/showthread.php?tid=550)

Pages: 1 2 3 4 5


pydPiper for Audiophonics I-Sabre ES9023 V3 [Winstar 80x16 OLED] - rikardo1979 - 10-05-2018

Instruction how to install pydPiper python scripts for RaspDAC Audiophonics I-Sabre ES9023 V3 [Winstar 80x16 OLED]



Download and install pydPiper
Code:
cd /home/pi
git clone https://github.com/dhrone/pydPiper.git
cd pydPiper
./install_docker.sh
sudo wget https://raw.githubusercontent.com/audiophonics/Pydpiper-Raspdac/master/pydPiper.cfg
sudo wget https://raw.githubusercontent.com/audiophonics/Pydpiper-Raspdac/master/pages_raspdac_16x2.py


You can test display with this command :
Code:
sudo docker run --network=host --privileged -v /var/log:/var/log:rw -v /home/pi/pydPiper:/app:rw dhrone/pydpiper:v0.31-alpha python /app/pydPiper.py


Service Installation :
Code:
sudo wget https://raw.githubusercontent.com/audiophonics/Pydpiper-Raspdac/master/pydpiper.service


Start the configuration:
Code:
sudo python configure.py


And set all as followed:
Code:
Startup mode duration (in seconds)? [5]: 5

DISPLAY CONFIGURATION
Display type ?: winstar_weg
Register select pin? [7]: 7
Enable pine? [8]: 8
Data 4 pin? [25]: 25
Data 5 pin? [24]: 24
Data 6 pin? [23]: 23
Data 7 pin? [27]: 27
Width of display (in pixels)? [80]: 80
Height of display (in pixels)? [16]: 16
Enable pulse duration (in microseconds)? [0.1]: 0.1
Location of the pagefile? [pages_lcd_16x2.py]: pages_raspdac_16x2.py
Animation Smoothing (in seconds)? [0.15]: 0.15

SYSTEM CONFIGURATION
Location of log file? [/var/log/pydPiper.log]: /var/log/pydPiper.log
Logging Level? [info]: info
Time Zone? [Europe/London]: Europe/London
24-hour clock? [True]: true
Temperature Scale? [fahrenheit]: celsius
Enable weather? [n]: n

MUSIC DISTRIBUTION
Name of distribution? [moode]: moode
Server address? [localhost]: localhost
Port? [3000]: 6600
Password:


Now we need to edit :
Code:
sudo nano pages_raspdac_16x2.py
In the section "sequence" replace all the stream by encoding in db ['stream' ] to have db ['encoding'] 
save and exit (ctrl-x, yes, enter)


Then activate service :
Code:
sudo cp pydpiper.service /etc/systemd/system
sudo systemctl enable pydpiper
sudo systemctl start pydpiper

All should be working smooth after reboot
I take no credits for any of the work done. I just put the simple steps together so its easy to follow.
[Image: UDedgy.jpg][Image: TaA0Eq.jpg][Image: HSvzEO.jpg][Image: KubFUP.jpg][Image: RQbkcf.jpg]


RE: pydPiper for Audiophonics I-Sabre ES9023 V3 [Winstar 80x16 OLED] - miklau - 10-07-2018

Hi Rikardo
Thanks for your reply at drones GitHub page regarding the pydPiper in MoOde 4.3.

Im stil having trouble regarding the docker. Did your install gave any errors regarding that? This happens when I am trying to test the display. The hello world from docker is displayed. I did at update/upgrade first and also to see if I am out of space. I have a 16gb SD. This is what is displayed:
Code:
pi@moode:~/pydPiper $ sudo docker run --network=host --privileged -v /var/log:/var/log:rw -v /home/pi/pydPiper:/app:rw dhrone/pydpiper:v0.31-alpha python /app/pydPiper.py
Unable to find image 'dhrone/pydpiper:v0.31-alpha' locally
v0.31-alpha: Pulling from dhrone/pydpiper
689dda5de45e: Extracting [==================================================>]  40.62MB/40.62MB
a3ed95caeb02: Download complete
7e28376ea400: Download complete
f98467deb8d3: Download complete
7d26b233d4ce: Download complete
a5642ef2c19b: Download complete
c1543a387200: Download complete
docker: failed to register layer: Error processing tar file(exit status 1): write /usr/share/perl/5.14.2/unicore/lib/Blk/NumberFo.pl: no space left on device.
See 'docker run --help'.
pi@moode:~/pydPiper $ df -i
Filesystem     Inodes  IUsed  IFree IUse% Mounted on
/dev/root      189696 107661  82035   57% /
devtmpfs       117529    344 117185    1% /dev
tmpfs          118681      1 118680    1% /dev/shm
tmpfs          118681    712 117969    1% /run
tmpfs          118681      3 118678    1% /run/lock
tmpfs          118681     10 118671    1% /sys/fs/cgroup
/dev/mmcblk0p1      0      0      0     - /boot
tmpfs          118681     10 118671    1% /run/user/1000

Not sure if it makes any sense. I can also try to ask at drones GitHubs page...

Thanks in advance Smile


RE: pydPiper for Audiophonics I-Sabre ES9023 V3 [Winstar 80x16 OLED] - rikardo1979 - 10-08-2018

(10-07-2018, 05:56 PM)miklau Wrote: Hi Rikardo
Thanks for your reply at drones GitHub page regarding the pydPiper in MoOde 4.3.

Im stil having trouble regarding the docker. Did your install gave any errors regarding that? This happens when I am trying to test the display. The hello world from docker is displayed. I did at update/upgrade first and also to see if I am out of space. I have a 16gb SD. This is what is displayed:
Code:
pi@moode:~/pydPiper $ sudo docker run --network=host --privileged -v /var/log:/var/log:rw -v /home/pi/pydPiper:/app:rw dhrone/pydpiper:v0.31-alpha python /app/pydPiper.py
Unable to find image 'dhrone/pydpiper:v0.31-alpha' locally
v0.31-alpha: Pulling from dhrone/pydpiper
689dda5de45e: Extracting [==================================================>]  40.62MB/40.62MB
a3ed95caeb02: Download complete
7e28376ea400: Download complete
f98467deb8d3: Download complete
7d26b233d4ce: Download complete
a5642ef2c19b: Download complete
c1543a387200: Download complete
docker: failed to register layer: Error processing tar file(exit status 1): write /usr/share/perl/5.14.2/unicore/lib/Blk/NumberFo.pl: no space left on device.
See 'docker run --help'.
pi@moode:~/pydPiper $ df -i
Filesystem     Inodes  IUsed  IFree IUse% Mounted on
/dev/root      189696 107661  82035   57% /
devtmpfs       117529    344 117185    1% /dev
tmpfs          118681      1 118680    1% /dev/shm
tmpfs          118681    712 117969    1% /run
tmpfs          118681      3 118678    1% /run/lock
tmpfs          118681     10 118671    1% /sys/fs/cgroup
/dev/mmcblk0p1      0      0      0     - /boot
tmpfs          118681     10 118671    1% /run/user/1000

Not sure if it makes any sense. I can also try to ask at drones GitHubs page...

Thanks in advance Smile

Strange. Do you have another SD car to try it on maybe?


RE: pydPiper for Audiophonics I-Sabre ES9023 V3 [Winstar 80x16 OLED] - miklau - 10-08-2018

I did a fresh install using the mosBuild instead of burning the image. Not sure if this is necessary but it worked. 

This time I had to activate the i2c bus in the raps-config file which I didn't experience the last time I install pydPiper...
Code:
sudo raspi-config



RE: pydPiper for Audiophonics I-Sabre ES9023 V3 [Winstar 80x16 OLED] - Tim Curtis - 10-08-2018

Stock settings in the Build and the ISO image are same and include i2c ON

Code:
pi@rp3:~ $ cat /boot/config.txt
disable_splash=1
hdmi_drive=2
dtparam=i2c_arm=on
dtparam=i2s=on
.
.

If there is a different i2c setting that raspi-config creates then please post it and I'll have a look.


RE: pydPiper for Audiophonics I-Sabre ES9023 V3 [Winstar 80x16 OLED] - miklau - 10-09-2018

Hi Tim

Thanks for your reply. My settings are the same as yours. Not sure if this was set på the raps-config after it enable the i2c bus...
Code:
pi@moode:~ $ cat /boot/config.txt
disable_splash=1
hdmi_drive=2
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=off
dtoverlay=rpi-dac
#dtoverlay=pi3-disable-wifi
#dtoverlay=pi3-disable-bt

This very nice pydPiper display made by drone is using the metadate from the MPD (if I have understood it correct Wink ). Is it possible to also have the Airplay and Spotify connect metadata sent to the MPD so it can be displayed by the display? Smile


RE: pydPiper for Audiophonics I-Sabre ES9023 V3 [Winstar 80x16 OLED] - rikardo1979 - 10-13-2018

As some of you may realised there was a little glitch with pydPiper when you streamed online sources such as Tidal/Qobuz etc.
Only source text 'WEB RADIO' and 'track title' was displayed, but 'album title' was missing.

This has been fixed now by the developer/maintainer @dhrone

So if you have installed this before yesterday you would need to pull/reinstall again to get the fix

Please read on github


RE: Power management for Audiophonics I-Sabre ES9023 V3 - Jempie - 02-08-2019

display work by testing

then i follow the script and get this


Last login: Fri Feb 8 06:16:33 2019 from 192.168.2.120
pi@moode:~ $ sudo wget https://raw.githubusercontent.com/audiophonics/Pydpiper-Raspdac/master/pydpiper.service
--2019-02-08 06:25:28-- https://raw.githubusercontent.com/audiophonics/Pydpiper-Raspdac/master/pydpiper.service
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.36.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.36.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 328 [text/plain]
Saving to: ‘pydpiper.service’

pydpiper.service 100%[===================>] 328 --.-KB/s in 0s

2019-02-08 06:25:29 (3.30 MB/s) - ‘pydpiper.service’ saved [328/328]

pi@moode:~ $ sudo python configure.py
python: can't open file 'configure.py': [Errno 2] No such file or directory
pi@moode:~ $


RE: Power management for Audiophonics I-Sabre ES9023 V3 - Jempie - 02-08-2019

Rikardo,

Now we need to edit :
Code:
sudo nano pages_raspdac_16x2.py
In the section "sequence" replace all the stream by encoding in db ['stream' ] to have db ['encoding']
save and exit (ctrl-x, yes, enter)

don't know what you mean

SEQUENCES = [
{ 'name': 'seqSplash', 'canvases': [
{ 'name':'raspdac', 'duration':3 },
{ 'name':'ip', 'duration':4 }
], 'conditional': "db['state']=='starting'" },

{
'name': 'seqPlay',
'canvases': [
{ 'name':'playAP1', 'duration':10, 'conditional':"not db['stream']=='webradio'" },
{ 'name':'playAP2', 'duration':15, 'conditional':"not db['stream']=='webradio'" },
{ 'name':'playAP3', 'duration':6, 'conditional':"not db['stream']=='webradio'" },
{ 'name':'radioAP1', 'duration':10, 'conditional':"db['stream']=='webradio'" },
{ 'name':'radioAP2', 'duration':10, 'conditional':"db['stream']=='webradio'" },

],
'conditional': "db['state']=='play'"
},
{
'name': 'seqStop',
'canvases': [
{ 'name':'stoptimetemp_popup', 'duration':15, 'conditional':"not db['outside_conditions']=='No data'" },
{ 'name':'stoptime24', 'duration':15, 'conditional':"db['outside_conditions']=='No data'" },
{ 'name':'ip', 'duration':2 }
],
'conditional': "db['state']=='stop' or db['state']=='pause'"
},
{
'name':'seqVolume',
'coordinates'Sad0,0),
'canvases': [ { 'name':'volume_changed', 'duration':5 } ],
'conditional': "db['volume'] != dbp['volume']",
'minimum':5,
},
{
'name': 'seqAnnouncePlay',
'canvases': [ { 'name':'showplay', 'duration':2 } ],
'conditional': "db['state'] != dbp['state'] and db['state']=='play'",
'minimum':2,
},
{
'name': 'seqAnnounceStop',
'canvases': [ { 'name':'showstop', 'duration':2 } ],
'conditional': "db['state'] != dbp['state'] and db['state']=='stop'",
'minimum':2,
},
{
'name': 'seqAnnouncePause',
'canvases': [ { 'name':'showpause', 'duration':8 } ],
'conditional': "db['state'] != dbp['state'] and db['state']=='pause'",
'minimum':2,
},


RE: Power management for Audiophonics I-Sabre ES9023 V3 - Jempie - 02-08-2019

Rikardo,

display work, when selecting music

on the display "no active widget"