awtrix3 icon indicating copy to clipboard operation
awtrix3 copied to clipboard

[BUG] Parameter "pos" not working

Open cbornemann opened this issue 4 months ago • 6 comments

Bug report

Describe the bug

When i push a new app with the parameter "pos", than the parameter is ignored and the position of the new app is always on the end of the loop.

Additional information

  • Devices involved:
    • Model: Ulanzi Awtrix Smart Pixel Clock 2882 (TC001)
    • awtrix3 version: v0.98

To Reproduce

Push a new app with the parameter "pos".

Expected behavior

When i push a new app with pos=0 after an app with pos=1, the new app is on position 1 now.

cbornemann avatar Sep 16 '25 06:09 cbornemann

According to the documenation, this function is still experimental. It is expected to be removed in future versions.

Blueforcer avatar Sep 16 '25 06:09 Blueforcer

I understand. Is there any solution to sort the cards?

cbornemann avatar Sep 16 '25 09:09 cbornemann

Send them in the desired order, or you can try to use a hidden and also experimental api /reorder by sending a json array with the apps name after all apps are sent. Like ["time","date","custom1"]

Blueforcer avatar Sep 16 '25 09:09 Blueforcer

Thank you, it´s working. But after restart, the sort ist reset.

Howewer, thank you for your great work.

cbornemann avatar Sep 16 '25 13:09 cbornemann

Thats correct. Apps are saved temporarily in the RAM. Because it take care of the flash wroting cycles and in normal operation your smarthome sends new app anyways at each sensor update. You can listen to the awtrix online state and send the reorder after it gets online or after all apps sent their first states

Blueforcer avatar Sep 16 '25 14:09 Blueforcer

Send them in the desired order, or you can try to use a hidden and also experimental api /reorder by sending a json array with the apps name after all apps are sent. Like ["time","date","custom1"]

@Blueforcer: would it be possible to also enable the /reorder API via MQTT in the next release? At the moment, this only works via HTTP...

casdevs avatar Oct 03 '25 17:10 casdevs