Dashboard auto layout

Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Locked
User avatar
Luraco
 
Posts: 6
Joined: Tue Aug 30, 2022 2:49 pm

Dashboard auto layout

Post by Luraco »

Hi,

Is there any way we can auto arrange the layout of blocks in the dashboard. I used the row and column when I create them via HTTP Post. but they always go to first location and added after the last one.

thanks

User avatar
Luraco
 
Posts: 6
Joined: Tue Aug 30, 2022 2:49 pm

Re: Dashboard auto layout

Post by Luraco »

Any json command to arrange the dashboard blocks for LG display?

User avatar
jwcooper
 
Posts: 1004
Joined: Tue May 01, 2012 9:08 pm

Re: Dashboard auto layout

Post by jwcooper »

Here is a previous forum post on how to use the blocks api (mostly used internally) to position blocks. Set the row and column in the json:
viewtopic.php?p=898219&hilit=io+api+blocks#p898219

User avatar
Luraco
 
Posts: 6
Joined: Tue Aug 30, 2022 2:49 pm

Re: Dashboard auto layout

Post by Luraco »

jwcooper wrote: Tue Sep 06, 2022 2:33 pm Here is a previous forum post on how to use the blocks api (mostly used internally) to position blocks. Set the row and column in the json:
viewtopic.php?p=898219&hilit=io+api+blocks#p898219
I am sending the row and column but is not working.

{"column":4,"row":4,"visual_type":"momentary_button","size_x":1,"size_y":1,"properties":{"text":"System Status","value":"1","release":"0"},"block_feeds":[{"feed_id":"21031222-p"}]}

Here is the screen shot of the json reply.
reply.png
reply.png (9.07 KiB) Viewed 124 times
dashboard image
dashboard.png
dashboard.png (28.34 KiB) Viewed 124 times
Block info row and columns are empty even size too.
block intfo.png
block intfo.png (33.8 KiB) Viewed 124 times

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”