Hi Guys,
I’m currently working on a pimatic app for iOS and need some help with the API:
Can someone give me an exmample what the API expects when using
updateDeviceOrder?
-
Pimatic Api updateDeviceOrder
-
@theslashy said in Pimatic Api updateDeviceOrder:
Can someone give me an exmample what the API expects when using
updateDeviceOrderupdateDeviceOrder is invoked with an array of device ids. It will update the order of all devices configured in config.json by the order of device ids given in the array. The array of device ids does not need to be complete. For example, you can pass an array with a single device id. Then this device will be put to beginning of the device configuration. The method will save the modified device configuration, i.e. save the config file. The array of device ids passed in is also returned.
https://github.com/pimatic/pimatic/blob/master/lib/devices.coffee#L1346-L1354
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
great thank you!