Page 1 of 1

Text box

Posted: 25 Aug 2019 22:26
by sc-magnus
Hi,
Is there anyway to create a "text box" in the z-way UI ?
I want to make a module that show text ( current playing song on spotify )
I can already control my Mopidy server using HTTP device for play, paus, volume etc etc
but I cant figure out how to display some sort of text .

Anyone got some tips?

/Magnus

Re: Text box

Posted: 26 Aug 2019 12:12
by IgoriokLT
XML or JSON vDev can help you with that.

Re: Text box

Posted: 28 Aug 2019 17:39
by sc-magnus
Hi
Have very little json and xml skills.
Can anyone point me in the right direction?
Would like to send a http command and then display the respons in a "text box"
Or is there a usermodule that i may modify/use the code from?

/Magnus

Re: Text box

Posted: 28 Aug 2019 18:44
by sc-magnus
Hi again.
I can use the InfoWidget module.
But how do I change de "metric.title" and "metrics.text"
Can it be changed with HTTP API?
Cant figure how to send a command to change the text