Need help on GUI update

General discussion about RuneAudio. Do not post any support or feature requests here.

Need help on GUI update

Postby mica » 03 Dec 2017, 00:37

mica
 
Posts: 2
Joined: 27 Nov 2017, 23:08
Location: Germany

Re: Need help on GUI update

Postby janui » 03 Dec 2017, 12:36

User avatar
janui
 
Posts: 714
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Need help on GUI update

Postby hondagx35 » 03 Dec 2017, 13:23

Hi mica.

in addition to januis description:
The backend (MPD) and the frontend (browser) communicate through web sockets see "/srv/httpassets/js/runeui.js".

With such a small screen I wouldn't go the browser route.
I would write a python script and control the backend with the library.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Need help on GUI update

Postby mica » 03 Dec 2017, 22:40

Thank you both,

I have changed from a Hifiberry DAC to a AMP and there I miss a simple method to change the volume.
This was the reason to add some small display to the RPI to change the volume locally without the PC / Laptop etc.
It is not intended to have the full features of the RuneUI on the small display, as this will make definitely no sense.
The picture gives you an impression on what I am trying to do:

However there are further things, which I think of:
- Select one of (up to 6 or so) pre-defined radio stations.
- Select a playlist.
But back to the basics (one step after the other :roll:).
I see that the values are updated by a pushstream method from the server side (thank you Frank for pointing to the right direction). I assume that I need to put some code inside the function updateGUI in runeui.js to update my own volume display.

Michael
Attachments
runeaudio_ (1).png
runeaudio_ (1).png (39.2 KiB) Viewed 1388 times
mica
 
Posts: 2
Joined: 27 Nov 2017, 23:08
Location: Germany

support RuneAudio Donate with PayPal


Return to General discussion

Who is online

Users browsing this forum: No registered users and 15 guests