Help on getting data from http response

Avatar
  • updated
  • Under review

I'm  trying to get data from the respnonse "actualvolume" 

I've been exploring the forum here but i can't figure out what i'm doing wrong.


Parse type: Jhson

I get this response:

{"?xml":{"@version":"1.0","@encoding":"UTF-8"},"volume":{"@deviceID":"C4F312D5994F","targetvolume":"16","actualvolume":"16","muteenabled":"false"}}

Image 2282

Image 2283

Image 2284


Image 2288

Avatar
Dave De Busschere

I was using strings, but I just saw that there still was one uppercase fault.


Got it working.

Coming close to an end here, THANKS

Avatar
Ricardo Pinto


Case sensitive stuff is always tricky :-D

Best of luck to finish the integration. We're here to help.

Best regards

Avatar
Dave De Busschere
Quote from Ricardo Pinto


Case sensitive stuff is always tricky :-D

Best of luck to finish the integration. We're here to help.

Best regards

Thanks,

I'd like to make a spacing between the top 3 buttons and the preset buttons.

Do you know how I can make a divider and how to make the string respons 3 column wide?

Ffor the looks it can be with a spacer ( half or 1/3 of a button height) OR use the respons string with the radiostation as a spacer but in this case it has to be 3 column wide?

Avatar
Ricardo Pinto

Hi,

You can have different approaches:

The basic one, is to add a spacer, with the same size of the others: In an empty space of the frame, click on "Add Other Control", choose Spacer, and move the spacer up where you want it, after the 3 buttons.

If you want a spacer look, but thinner, you need to create a frame, set it to Horizontal orientation, with 1 Row, 3 Columns, move the 3 buttons to the frame, select the frame, and on the Menu properties set Bottom Menu to true. Then change the percentage to create an empty space. Please note that in this situation the buttons will look smaller due to the shrinking process.

I'd go for the option 1, to add a simple spacer, so you can keep a standard look.

BR

Avatar
Fabien Fuster

Always to quick for me Ricardo ! Well done since 2 days.... 

To add on the last post, I do sometime the following :

I create a main frame of 1 column and as many row as I need. Then on each row I add a new frame that I can again subdivide to as many column and row I need. Doing so, you can have a feedback full wide on row 1 and many control knobs on row 2 for example...same can be done per "box".

Don't pay attention to the content, this is used as a test screen on my end :

other example:

Avatar
Dave De Busschere

Great thanks guys, 

now i got it, how the layout works.

Avatar
Ricardo Pinto


This time I was quicker than you 😁

Well done Fabien, indeed the approach of "frame inside frame inside frame..." is actually one good option to create different layouts.

Thanks for screenshot, it's clarifying about the frames concept.

Go Dave!

Best regards