awtrix/draw sur Jeedom

Comment envoyer une commande avec le topic awtrix/draw à votre Awtrix V2.
Ouvrez le plugin JMQTT.

Sélectionnez dans MesJMQTT, Jeedom

Allez sur l’onglet Commandes.
Vous devriez voir ceci :

C’est que tout est OK.
Maintenant cliquez sur « Ajouter une commande action »

Remplissez comme ceci (à titre d’exemple) :
– Nom : pacman
– Sous-Type : Défaut
– Topic : awtrix/draw

Dans la fenêtre valeur, vous allez copier coller le code suivant :

{"draw":[{"type":"fill","color":[0,0,0]},{"type":"bmp","size":[8,8],"position":[0,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,65516,65516,65513,65513,65513,65513,65516,65516,65516,65516,65513,65513,65513,65513,65513,65516,65516,65516,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[1,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,0,0,65513,65513,65513,65513,65516,0,0,0,65513,65513,65513,65513,65513,65516,6339,0,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[2,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,65516,65516,65513,65513,65513,65513,65516,65516,65516,65516,65513,65513,65513,65513,65513,65516,65516,65516,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[3,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,0,0,65513,65513,65513,65513,65516,0,0,0,65513,65513,65513,65513,65513,65516,6339,0,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[4,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,65516,65516,65513,65513,65513,65513,65516,65516,65516,65516,65513,65513,65513,65513,65513,65516,65516,65516,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[5,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,0,0,65513,65513,65513,65513,65516,0,0,0,65513,65513,65513,65513,65513,65516,6339,0,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[6,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,65516,65516,65513,65513,65513,65513,65516,65516,65516,65516,65513,65513,65513,65513,65513,65516,65516,65516,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[7,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,0,0,65513,65513,65513,65513,65516,0,0,0,65513,65513,65513,65513,65513,65516,6339,0,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[8,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,65516,65516,65513,65513,65513,65513,65516,65516,65516,65516,65513,65513,65513,65513,65513,65516,65516,65516,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[9,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,0,0,65513,65513,65513,65513,65516,0,0,0,65513,65513,65513,65513,65513,65516,6339,0,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[10,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,65516,65516,65513,65513,65513,65513,65516,65516,65516,65516,65513,65513,65513,65513,65513,65516,65516,65516,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[11,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,0,0,65513,65513,65513,65513,65516,0,0,0,65513,65513,65513,65513,65513,65516,6339,0,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[12,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,65516,65516,65513,65513,65513,65513,65516,65516,65516,65516,65513,65513,65513,65513,65513,65516,65516,65516,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[13,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,0,0,65513,65513,65513,65513,65516,0,0,0,65513,65513,65513,65513,65513,65516,6339,0,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[14,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,65516,65516,65513,65513,65513,65513,65516,65516,65516,65516,65513,65513,65513,65513,65513,65516,65516,65516,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[15,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,0,0,65513,65513,65513,65513,65516,0,0,0,65513,65513,65513,65513,65513,65516,6339,0,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[16,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,65516,65516,65513,65513,65513,65513,65516,65516,65516,65516,65513,65513,65513,65513,65513,65516,65516,65516,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[17,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,0,0,65513,65513,65513,65513,65516,0,0,0,65513,65513,65513,65513,65513,65516,6339,0,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[18,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,65516,65516,65513,65513,65513,65513,65516,65516,65516,65516,65513,65513,65513,65513,65513,65516,65516,65516,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[19,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,0,0,65513,65513,65513,65513,65516,0,0,0,65513,65513,65513,65513,65513,65516,6339,0,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[20,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,65516,65516,65513,65513,65513,65513,65516,65516,65516,65516,65513,65513,65513,65513,65513,65516,65516,65516,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[21,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,0,0,65513,65513,65513,65513,65516,0,0,0,65513,65513,65513,65513,65513,65516,6339,0,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[22,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,65516,65516,65513,65513,65513,65513,65516,65516,65516,65516,65513,65513,65513,65513,65513,65516,65516,65516,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[23,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,0,0,65513,65513,65513,65513,65516,0,0,0,65513,65513,65513,65513,65513,65516,6339,0,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[24,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,65516,65516,65513,65513,65513,65513,65516,65516,65516,65516,65513,65513,65513,65513,65513,65516,65516,65516,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[25,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,0,0,65513,65513,65513,65513,65516,0,0,0,65513,65513,65513,65513,65513,65516,6339,0,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"bmp","size":[8,8],"position":[26,0],"data":[0,0,0,0,0,0,0,0,0,0,65513,65513,65513,65513,0,0,0,65513,65513,65513,0,65513,65513,0,65513,65513,65513,65513,65513,65516,65516,65516,65513,65513,65513,65513,65516,65516,65516,65516,65513,65513,65513,65513,65513,65516,65516,65516,0,65513,65513,65513,65513,65513,65513,0,0,0,65513,65513,65513,65513,0,0]},{"type":"show"},{"type":"wait","ms":150},{"type":"clear"},{"type":"exit"}]}

Sauvegardez
Ce qui donne :

Vous pouvez maintenant tester votre commande.
Vous voyez un pacman défiler de gauche à droite.

Si vous voulez d’autres exemples de codes pour le topic awtrix/draw et faire plein de dessins rigolos, c’est par ici !