Closed richardjm closed 2 years ago
Hi richardjm,
I took up the topic. In the appendix I have attached my releases with the adjustment. Can you test this? It is important here that the position is also sent under "bitmap". This is required because it would otherwise be 0. This command works for me:
{
"bitmap": {
"data": [0, 52857, 52857, 52857, 52857, 52857, 0, 0, 0, 52857, 53247, 53247, 53247, 52857, 0, 0, 0, 52857, 53247, 53247, 53247, 52857, 0, 0, 0, 0, 52857, 53247, 52857, 0, 0, 0, 0, 0, 0, 52857, 0, 0, 0, 0, 0, 0, 52857, 0, 52857, 0, 0, 0, 0, 52857, 0, 0, 0, 52857, 0, 0, 0, 52857, 52857, 52857, 52857, 52857, 0, 0],
"size": {
"width": 8,
"height": 8
}
},
"text": {
"textString": "Hello World",
"bigFont": false,
"scrollText": "false",
"centerText": false,
"color": {
"r": 255,
"g": 255,
"b": 255
}
}
}
If it works I will create a pull request.
LG partytown :-)
I just see that the API is not called correctly by you . The size of the bitmap was forgotten:
"size": {
"width": 8,
"height": 8
}
and for the text the position:
"position": {
"x": 8,
"y": 1
},
The correct call must look like this:
{
"bitmap": {
"data": [0, 52857, 52857, 52857, 52857, 52857, 0, 0, 0, 52857, 53247, 53247, 53247, 52857, 0, 0, 0, 52857, 53247, 53247, 53247, 52857, 0, 0, 0, 0, 52857, 53247, 52857, 0, 0, 0, 0, 0, 0, 52857, 0, 0, 0, 0, 0, 0, 52857, 0, 52857, 0, 0, 0, 0, 52857, 0, 0, 0, 52857, 0, 0, 0, 52857, 52857, 52857, 52857, 52857, 0, 0],
"size": {
"width": 8,
"height": 8
}
},
"text": {
"textString": "Hello World",
"bigFont": false,
"scrollText": "false",
"centerText": false,
"position": {
"x": 8,
"y": 1
},
"color": {
"r": 255,
"g": 255,
"b": 255
}
}
}
Expected behaviour - text appears beside icon. What happens - text appears on the left without icon.
REST call - change
"Hello World"
to"Hello"
or set"scrollText"
tofalse
to create issueWorkaround is to use a call like