LCD display and buttons in Python (tutorial and code)

Raspberry Pi related support

Re: LCD display and buttons in Python (tutorial and code)

Postby TommyBoy » 26 Jan 2017, 18:50

any one know where in the file structure i can find song playback info ?
like tittle ? play time, remain time ? resolution ? sample rate ?
User avatar
TommyBoy
 
Posts: 111
Joined: 29 Mar 2016, 14:04
Location: Copenhagen Denmark

Re: LCD display and buttons in Python (tutorial and code)

Postby hondagx35 » 26 Jan 2017, 19:00

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

Re: LCD display and buttons in Python (tutorial and code)

Postby TommyBoy » 26 Jan 2017, 19:45

thanks so much.
however the numbers dont update ??
i hear the music play, but no time indicators move.. ??

update : if i change volume in the UI, and then ask the command as you suggest in the console
NOW i see changed time info..
can i get updated LIVE values via the console, with out need to touch the UI ?

and one other "thing" the JSON i get looks like yours, but nothing at all like the standards i can read about
here for example
https://en.wikipedia.org/wiki/JSON
User avatar
TommyBoy
 
Posts: 111
Joined: 29 Mar 2016, 14:04
Location: Copenhagen Denmark

Re: LCD display and buttons in Python (tutorial and code)

Postby TommyBoy » 27 Jan 2017, 18:36

No news / solution ?
The UI dont update either, try webradio whete they write the track they play, i need to change volume one up, and then down again, to get an update, same as with this json string,
Just too bad, i had a super idea for a display, but it just will not work, since this stuff is not live.
User avatar
TommyBoy
 
Posts: 111
Joined: 29 Mar 2016, 14:04
Location: Copenhagen Denmark

Re: LCD display and buttons in Python (tutorial and code)

Postby hondagx35 » 28 Jan 2017, 00:05

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

Re: LCD display and buttons in Python (tutorial and code)

Postby TommyBoy » 28 Jan 2017, 01:03

i am sorry, I dont understand a single thing in this answer ?

WHAT exactly do I type in the console, to get that kind og cool info ?

please help ?
User avatar
TommyBoy
 
Posts: 111
Joined: 29 Mar 2016, 14:04
Location: Copenhagen Denmark

Re: LCD display and buttons in Python (tutorial and code)

Postby hondagx35 » 28 Jan 2017, 01:11

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

Re: LCD display and buttons in Python (tutorial and code)

Postby TommyBoy » 28 Jan 2017, 01:23

OK it works in the console via putty.
but does it also work, like via a serial line ?
this way I can also access the console, right ?

by the way I dont understand the time, and elapsed in status ?
none of them reveal real length of the track ?
that is in "currentsong" info
but in secs

where do I find all telnet commands for MPD ?
User avatar
TommyBoy
 
Posts: 111
Joined: 29 Mar 2016, 14:04
Location: Copenhagen Denmark

Re: LCD display and buttons in Python (tutorial and code)

Postby hondagx35 » 28 Jan 2017, 10:06

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

Re: LCD display and buttons in Python (tutorial and code)

Postby Yatsushiro » 28 Jan 2017, 11:14

Yatsushiro
 
Posts: 90
Joined: 11 May 2016, 10:30

support RuneAudio Donate with PayPal

PreviousNext

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 15 guests