Change/set block size and position programmatically

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
Senspix
 
Posts: 2
Joined: Fri Oct 09, 2015 10:21 am

Change/set block size and position programmatically

Post by Senspix »

Hi,

I'm creating dashboards and blocks programmatically using the Arduino API. It works "sort of".
I would like to control the placement (row,column) of a block but I have not been successful.

I've experimented with the http-api but PATCHing a block does not seem to work so I'm desperately looking for a detailed example of a working http-request.
See http://adafruit.github.io/io-api/#operation/updateBlock

Cheers
/Anders

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

Re: Change/set block size and position programmatically

Post by jwcooper »

It looks like you're linking to our old api documentation.

Here is the current documentation on manipulating a dashboard:
https://io.adafruit.com/api/docs/#dashboards

In particular, modifying the column, row, size_x, and size_y values should get you what you're looking for using PUT rather than PATCH.

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”