Autor Thema: Divoom Aurabox + Timebox + TimeboxEvo [Update, kommunizieren funktioniert]  (Gelesen 11868 mal)

Offline mumpitzstuff

  • Developer
  • Hero Member
  • ****
  • Beiträge: 1451
Okay. Ich versuche mal das extrahieren der Pixel und das einlesen der GIFs auch noch hinzukriegen.
Gefällt mir Gefällt mir x 1 Liste anzeigen

Offline mumpitzstuff

  • Developer
  • Hero Member
  • ****
  • Beiträge: 1451
Resize mit GD klappt wunderbar  :)

Cpan wollte nich, daher

sudo apt-get install libgd-graph-perl

Ich hätte gedacht das "libgd-perl" das Richtige Paket ist. Aber wenn es auch so geht...

Offline mumpitzstuff

  • Developer
  • Hero Member
  • ****
  • Beiträge: 1451
Kannst du mal bitte prüfen, ob das Umwandeln eines Bildes für die TB Evo hiermit klappt?

Ich habe erst einmal nur die Evo Funktion angepasst.

Offline schwatter

  • Full Member
  • ***
  • Beiträge: 320
Tippitoppi. Habe 2 verschiedene Größen getestet. Werden ohne Probleme resized und gesendet.

root@pi-zero-w1:/opt/fhem/divoom2# perl setdSizes.pl
Image: 384x384
Image: 384x384
Image: 384x384
Image: 384x384
Image: 384x384
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Image: 240x240
Create RFCOMM client (11:75:58:FD:4C:CC with port 1)...

done

Send raw command: 010d004500010001000000ff0000530102
Device answer: 01
done

Send plain command: 44000A0A04AA2D0000000007000000EAEAEAB4B4B4343840545252EA9C0000EAEA000000000000000000000000009224491200002265011000009224011000009224491200009248521200001291a4120000229224150000a29224150000a2962415000022dbb615000012d9b61200009248521200009224491200009224491200
Generated raw command: 01830044000A0A04AA2D0000000007000000EAEAEAB4B4B4343840545252EA9C0000EAEA000000000000000000000000009224491200002265011000009224011000009224491200009248521200001291a4120000229224150000a29224150000a2962415000022dbb615000012d9b61200009248521200009224491200009224491200531C02
Send raw command: 01830044000A0A04AA2D0000000007000000EAEAEAB4B4B4343840545252EA9C0000EAEA000000000000000000000000009224491200002265011000009224011000009224491200009248521200001291a4120000229224150000a29224150000a2962415000022dbb615000012d9b61200009248521200009224491200009224491200531C02
Device answer: 01
done

Send plain command: 44000A0A04AA2D0000000007000000EAEAEAB4B4B4343840EA9C0054525200EAEA000000000000000000000000009224491200002265011000009224011000009224491200009248521200001291ad12000022b26d15000022b26d15000022b26d15000022dbb615000012d9b61200009248521200009224491200009224491200
Generated raw command: 01830044000A0A04AA2D0000000007000000EAEAEAB4B4B4343840EA9C0054525200EAEA000000000000000000000000009224491200002265011000009224011000009224491200009248521200001291ad12000022b26d15000022b26d15000022b26d15000022dbb615000012d9b61200009248521200009224491200009224491200931C02
Send raw command: 01830044000A0A04AA2D0000000007000000EAEAEAB4B4B4343840EA9C0054525200EAEA000000000000000000000000009224491200002265011000009224011000009224491200009248521200001291ad12000022b26d15000022b26d15000022b26d15000022dbb615000012d9b61200009248521200009224491200009224491200931C02
Device answer: 01
done

Send plain command: 44000A0A04AA2D0000000007000000EAEAEAB4B4B4343840545252EA9C0000EAEA000000000000000000000000009224491200002265011000009224011000009224491200009248521200001291a412000022b22415000022b62d15000022b66c15000022dbb615000012d9b61200009248521200009224491200009224491200
Generated raw command: 01830044000A0A04AA2D0000000007000000EAEAEAB4B4B4343840545252EA9C0000EAEA000000000000000000000000009224491200002265011000009224011000009224491200009248521200001291a412000022b22415000022b62d15000022b66c15000022dbb615000012d9b61200009248521200009224491200009224491200081C02
Send raw command: 01830044000A0A04AA2D0000000007000000EAEAEAB4B4B4343840545252EA9C0000EAEA000000000000000000000000009224491200002265011000009224011000009224491200009248521200001291a412000022b22415000022b62d15000022b66c15000022dbb615000012d9b61200009248521200009224491200009224491200081C02
Device answer: 01
done

Send plain command: 44000A0A04AA2D0000000007000000EAEAEAB4B4B4343840545252EA9C0000EAEA000000000000000000000000009224491200002265011000009224011000009224491200009248521200001291a412000022922415000022922415000022b62515000022dbb615000012d9b61200009248521200009224491200009224491200
Generated raw command: 01830044000A0A04AA2D0000000007000000EAEAEAB4B4B4343840545252EA9C0000EAEA000000000000000000000000009224491200002265011000009224011000009224491200009248521200001291a412000022922415000022922415000022b62515000022dbb615000012d9b61200009248521200009224491200009224491200741B02
Send raw command: 01830044000A0A04AA2D0000000007000000EAEAEAB4B4B4343840545252EA9C0000EAEA000000000000000000000000009224491200002265011000009224011000009224491200009248521200001291a412000022922415000022922415000022b62515000022dbb615000012d9b61200009248521200009224491200009224491200741B02
Device answer: 01
done

Send plain command: 44000A0A04AA2D0000000006000000EAEAEAB4B4B434384054525200EAEA000000000000000000000000009224491200002265011000009224011000009224491200009248521200001291a4120000229224150000229224150000229224150000a2b66d15000012b5ad1200009248521200009224491200009224491200
Generated raw command: 01800044000A0A04AA2D0000000006000000EAEAEAB4B4B434384054525200EAEA000000000000000000000000009224491200002265011000009224011000009224491200009248521200001291a4120000229224150000229224150000229224150000a2b66d15000012b5ad1200009248521200009224491200009224491200AA1902
Send raw command: 01800044000A0A04AA2D0000000006000000EAEAEAB4B4B434384054525200EAEA000000000000000000000000009224491200002265011000009224011000009224491200009248521200001291a4120000229224150000229224150000229224150000a2b66d15000012b5ad1200009248521200009224491200009224491200AA1902
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000D0E02600E03570E024B07003800000006003007003412037213027D1A0697DEDEDEDD0000080138000000002143446577474407214444644844440741445464999949074444546599aa4907b4b45465a99a490744445465a99a49074444546499aa490441445545999949444444546588884844444454657777474744445465000040004144546511114111444444652222422244444465333343334444446566664646444444c6
Generated raw command: 01B50044000A0A04AA2D000000000D0E02600E03570E024B07003800000006003007003412037213027D1A0697DEDEDEDD0000080138000000002143446577474407214444644844440741445464999949074444546599aa4907b4b45465a99a490744445465a99a49074444546499aa490441445545999949444444546588884844444454657777474744445465000040004144546511114111444444652222422244444465333343334444446566664646444444c6F12F02
Send raw command: 01B50044000A0A04AA2D000000000D0E02600E03570E024B07003800000006003007003412037213027D1A0697DEDEDEDD0000080138000000002143446577474407214444644844440741445464999949074444546599aa4907b4b45465a99a490744445465a99a49074444546499aa490441445545999949444444546588884844444454657777474744445465000040004144546511114111444444652222422244444465333343334444446566664646444444c6F12F02
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDEC205050B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443354888848444444444377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5
Generated raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDEC205050B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443354888848444444444377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5C52B02
Send raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDEC205050B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443354888848444444444377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5C52B02
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000F0A01450A023C0A003B0600300000000700340A00530E0260100269DEDEDEA809090A004E0A00460B0141080138000000002143445366464400214444544744440041443454888848004444345388994800a4a43453988948004444345398894800444434548899480441444353888848444444345377774744444434536666464644443453000040bb41443453111141cc444444532d22422244444453333343334444445355554545444444e5
Generated raw command: 01BB0044000A0A04AA2D000000000F0A01450A023C0A003B0600300000000700340A00530E0260100269DEDEDEA809090A004E0A00460B0141080138000000002143445366464400214444544744440041443454888848004444345388994800a4a43453988948004444345398894800444434548899480441444353888848444444345377774744444434536666464644443453000040bb41443453111141cc444444532d22422244444453333343334444445355554545444444e59A2D02
Send raw command: 01BB0044000A0A04AA2D000000000F0A01450A023C0A003B0600300000000700340A00530E0260100269DEDEDEA809090A004E0A00460B0141080138000000002143445366464400214444544744440041443454888848004444345388994800a4a43453988948004444345398894800444434548899480441444353888848444444345377774744444434536666464644443453000040bb41443453111141cc444444532d22422244444453333343334444445355554545444444e59A2D02
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE8D06060B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443453888848444444445377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5
Generated raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE8D06060B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443453888848444444445377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5A22B02
Send raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE8D06060B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443453888848444444445377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5A22B02
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE5E04040B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5
Generated raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE5E04040B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c55E2B02
Send raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE5E04040B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c55E2B02
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000D0C00520D01490700390000000600300700340F026113046D15038DDEDEDE7805050A004E080138000000002132335466363306213333533733330631334353888838063333435488993806a3a3435498893806333343549889380633334354889938b331334454888838333333435477773733333343546666363633334354000030003133435411113100333333542222322233333354444434443333335455553535333333c5
Generated raw command: 01B50044000A0A04AA2D000000000D0C00520D01490700390000000600300700340F026113046D15038DDEDEDE7805050A004E080138000000002132335466363306213333533733330631334353888838063333435488993806a3a3435498893806333343549889380633334354889938b331334454888838333333435477773733333343546666363633334354000030003133435411113100333333542222322233333354444434443333335455553535333333c5692902
Send raw command: 01B50044000A0A04AA2D000000000D0C00520D01490700390000000600300700340F026113046D15038DDEDEDE7805050A004E080138000000002132335466363306213333533733330631334353888838063333435488993806a3a3435498893806333343549889380633334354889938b331334454888838333333435477773733333343546666363633334354000030003133435411113100333333542222322233333354444434443333335455553535333333c5692902
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE8A05050B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5
Generated raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE8A05050B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c58C2B02
Send raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE8A05050B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c58C2B02
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDEA703030B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480444443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5
Generated raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDEA703030B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480444443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5A62B02
Send raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDEA703030B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480444443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5A62B02
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000E0E015D0B00510C004909013F00000006003007003410026E14047C170494DEDEDECE06060A004E080138000000002143446577474407214444644844440741445464999949074444546599aa4907b4b45465a99a490744445465a99a49474444546599aa49c444445565999949444444546588884844444454657777474744445465000040004144546511114111444444652222422244444465333343334444446566664646444444d6
Generated raw command: 01B80044000A0A04AA2D000000000E0E015D0B00510C004909013F00000006003007003410026E14047C170494DEDEDECE06060A004E080138000000002143446577474407214444644844440741445464999949074444546599aa4907b4b45465a99a490744445465a99a49474444546599aa49c444445565999949444444546588884844444454657777474744445465000040004144546511114111444444652222422244444465333343334444446566664646444444d6653102
Send raw command: 01B80044000A0A04AA2D000000000E0E015D0B00510C004909013F00000006003007003410026E14047C170494DEDEDECE06060A004E080138000000002143446577474407214444644844440741445464999949074444546599aa4907b4b45465a99a490744445465a99a49474444546599aa49c444445565999949444444546588884844444454657777474744445465000040004144546511114111444444652222422244444465333343334444446566664646444444d6653102
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDEB708080B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899484443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5
Generated raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDEB708080B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899484443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5FF2B02
Send raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDEB708080B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899484443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5FF2B02
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000B0A00460A003B0600300000000700340A004E0C005E110369DEDEDE9B040408013800000000213233425535330521333343363333053133234377773705333323427788370593932342877837053333234287783705333323427788370331332242777737333333234266663633333323425555353633332342000030553133234211113100333333422222322233333342222232223333334244443434333333a4
Generated raw command: 01AF0044000A0A04AA2D000000000B0A00460A003B0600300000000700340A004E0C005E110369DEDEDE9B040408013800000000213233425535330521333343363333053133234377773705333323427788370593932342877837053333234287783705333323427788370331332242777737333333234266663633333323425555353633332342000030553133234211113100333333422222322233333342222232223333334244443434333333a4C92302
Send raw command: 01AF0044000A0A04AA2D000000000B0A00460A003B0600300000000700340A004E0C005E110369DEDEDE9B040408013800000000213233425535330521333343363333053133234377773705333323427788370593932342877837053333234287783705333323427788370331332242777737333333234266663633333323425555353633332342000030553133234211113100333333422222322233333342222232223333334244443434333333a4C92302
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE8003030B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894406444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5
Generated raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE8003030B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894406444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c57A2B02
Send raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE8003030B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894406444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c57A2B02
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000D1101690E005B0C004A09004100000006003007003414037B1603891A069BDEDEDE630303080138000000002143446577474407214444644844440741445464999949074444546599aa4907b4b45465a99a490744445465a99a49074444546599aa440441445565994949444444546588884844444454657777474744445465000040004144546511114111444444652222422244444465333343334444446566664646444444c6
Generated raw command: 01B50044000A0A04AA2D000000000D1101690E005B0C004A09004100000006003007003414037B1603891A069BDEDEDE630303080138000000002143446577474407214444644844440741445464999949074444546599aa4907b4b45465a99a490744445465a99a49074444546599aa440441445565994949444444546588884844444454657777474744445465000040004144546511114111444444652222422244444465333343334444446566664646444444c67A2F02
Send raw command: 01B50044000A0A04AA2D000000000D1101690E005B0C004A09004100000006003007003414037B1603891A069BDEDEDE630303080138000000002143446577474407214444644844440741445464999949074444546599aa4907b4b45465a99a490744445465a99a49074444546599aa440441445565994949444444546588884844444454657777474744445465000040004144546511114111444444652222422244444465333343334444446566664646444444c67A2F02
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE8203030B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398844406444434538849480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5
Generated raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE8203030B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398844406444434538849480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5272B02
Send raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE8203030B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398844406444434538849480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5272B02
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDEA806060B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538894480443443353484848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5
Generated raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDEA806060B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538894480443443353484848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5272B02
Send raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDEA806060B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538894480443443353484848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5272B02
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDED20B0B0B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345394844806444434534899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5
Generated raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDED20B0B0B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345394844806444434534899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5972B02
Send raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDED20B0B0B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345394844806444434534899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5972B02
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDEAE09090B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538499480443443353488848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5
Generated raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDEAE09090B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538499480443443353488848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5742B02
Send raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDEAE09090B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538499480443443353488848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5742B02
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE9306060B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345394894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5
Generated raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE9306060B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345394894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5932B02
Send raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE9306060B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345394894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5932B02
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000B0A00460A003B0600300000000700340A004E0C005E12046CDEDEDE71040408013800000000213233425535330521333343363333053133234377773705333323427788370593932342877837053333234287783705333323427788370331332242777737333333234266663633333323425555353533332342000030053133234211113100333333422222321133333342222232223333334244443434333333a4
Generated raw command: 01AF0044000A0A04AA2D000000000B0A00460A003B0600300000000700340A004E0C005E12046CDEDEDE71040408013800000000213233425535330521333343363333053133234377773705333323427788370593932342877837053333234287783705333323427788370331332242777737333333234266663633333323425555353533332342000030053133234211113100333333422222321133333342222232223333334244443434333333a4422302
Send raw command: 01AF0044000A0A04AA2D000000000B0A00460A003B0600300000000700340A004E0C005E12046CDEDEDE71040408013800000000213233425535330521333343363333053133234377773705333323427788370593932342877837053333234287783705333323427788370331332242777737333333234266663633333323425555353533332342000030053133234211113100333333422222321133333342222232223333334244443434333333a4422302
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE4E02020B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5
Generated raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE4E02020B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c54A2B02
Send raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE4E02020B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c54A2B02
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000E1405701104630F03580D024B00000006003007003416067D1704921B06A2DEDEDE6C03030B0143080138000000002143446577474407214444644844440741445464999949074444546599aa4907b4b45465a99a490744445465a99a49074444546599aa4904414455659999494444445465888848444444546577774747444454650000400041445465111141114444446522224222444444653333433344444465cccc4c4c444444d6
Generated raw command: 01B80044000A0A04AA2D000000000E1405701104630F03580D024B00000006003007003416067D1704921B06A2DEDEDE6C03030B0143080138000000002143446577474407214444644844440741445464999949074444546599aa4907b4b45465a99a490744445465a99a49074444546599aa4904414455659999494444445465888848444444546577774747444454650000400041445465111141114444446522224222444444653333433344444465cccc4c4c444444d66E3102
Send raw command: 01B80044000A0A04AA2D000000000E1405701104630F03580D024B00000006003007003416067D1704921B06A2DEDEDE6C03030B0143080138000000002143446577474407214444644844440741445464999949074444546599aa4907b4b45465a99a490744445465a99a49074444546599aa4904414455659999494444445465888848444444546577774747444454650000400041445465111141114444446522224222444444653333433344444465cccc4c4c444444d66E3102
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE8005050B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5
Generated raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE8005050B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5822B02
Send raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE8005050B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5822B02
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE9706060B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5
Generated raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE9706060B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c59B2B02
Send raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDE9706060B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c59B2B02
Device answer: 01
done

Send plain command: 44000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDEDD00000B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5
Generated raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDEDD00000B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5D52B02
Send raw command: 01B50044000A0A04AA2D000000000D0A004E0A00460A003B0600300000000700340C005E12046C14057CDEDEDEDD00000B0141080138000000002143445366464406214444544744440641443454888848064444345388994806a4a43453988948064444345398894806444434538899480443443353888848444444345377774744444434536666464644443453000040004344345311114111444444532b22422244444453333343334444445355554545444444c5D52B02
Device answer: 01
done

root@pi-zero-w1:/opt/fhem/divoom2#

Offline mumpitzstuff

  • Developer
  • Hero Member
  • ****
  • Beiträge: 1451
Bitte mal testen.

#!/usr/bin/perl
require "./divoom.pl";

my $i;
my @png = readAnimatedGif('helloween.gif');

# load picture
for ($i = 0; $i < scalar(@png); $i++)
{
  $png[$i] = convertImageTBEVO($png[$i], 16);
}

if (connectDivoom('11:75:58:4F:A1:CB'))
{
  # set clock
  sendPlain('4500', 5);
  for ($i = 0; $i < scalar(@png); $i++)
  {
    # set picture
    sendPlain('44000A0A04AA2D00000000'.$png[$i], 2, 0);
  }
  disconnectDivoom();
}
Gefällt mir Gefällt mir x 1 Liste anzeigen

Offline schwatter

  • Full Member
  • ***
  • Beiträge: 320
Mh, es meckert. So wie ich das sehe, liest du das Gif mit GD ein und pushed es nach Imager.
Da hapert irgendwas mit GD, sodass Imager den Dienst quittiert, weil das Gif noch raw ankommt?

root@pi-zero-w1:/opt/fhem/divoom2# perl setGif.pl
Can't read image /opt/fhem/divoom2/dSizes/Helloween.gif (format 'gif' not supported - formats bmp, ico, jpeg, png, pnm, raw, sgi, tga available for reading)
root@pi-zero-w1:/opt/fhem/divoom2#

edit:

Ne, du nutzt nur Imager.


edit2:

Sieht so aus, das man Imager Gif als Packet beibringen kann? Install läuft gerade per

cpan Imager::File::GIF
Mal sehen, was passiert.

edit3:
cpan is echt mist. Soll ich selber bauen. Aber, ich habs per apt-get gefunden und Imager nochmal installiert.
Siehe da, Gif senden läuft :)

apt-get install libimager-perl
edit4:
Habe die Anhängigkeiten im ersten Post geändert.

edit5:
Geschwindigkeitstweak auf 0.1 läuft auch schnell und ohne Probleme durch.

sendPlain('44000A0A04AA2D00000000'.$png[$i], 0.1, 0);

edit6:
Auch unterschiedlich große Gif's verwurstet das Script :)
« Letzte Änderung: 07 Mai 2019, 20:39:45 von schwatter »

Offline mumpitzstuff

  • Developer
  • Hero Member
  • ****
  • Beiträge: 1451
Ich schreib die Abhängigkeit mal oben mit ins Script rein, dann ist die Installation leichter. GD only zu verwenden ist daran gescheitert, das man damit zwar animated gifs erzeugen, aber keine einlesen kann. Habe ewig rum probiert, weil ich es nicht glauben konnte. Deshalb lese ich das jetzt mit Imager ein und wandle die Frames in png um und schiebe die als Variable der bereits existierenden Convert Routine zu.
Freut mich das es klappt.

Falls ich mal viel Zeit und Muße habe, kann ich ja auch noch mal die Animation angehen...

Offline schwatter

  • Full Member
  • ***
  • Beiträge: 320
Ah ok, alles klar danke.
Siehst du vielleicht eine Übergangsmöglichkeit, die extrahierten Pics aus dem Gif in einer Schleife auszuführen?
Vielleicht mit einem einfachen setzbaren doit('10times') or doit('360sec.') ?. Der Zero an dem der Pixoo hängt,
hat sonst nichts zu tun  ;D

edit1:
Den 'for loop' mehrmals setzten is eine Möglichkeit.
« Letzte Änderung: 07 Mai 2019, 23:00:00 von schwatter »

Offline mumpitzstuff

  • Developer
  • Hero Member
  • ****
  • Beiträge: 1451
Ja. Einfach um die for loop eine weitere drum legen.

#!/usr/bin/perl
require "./divoom.pl";

my $i;
my @png = readAnimatedGif('helloween.gif');

# load picture
for ($i = 0; $i < scalar(@png); $i++)
{
  $png[$i] = convertImageTBEVO($png[$i], 16);
}

if (connectDivoom('11:75:58:4F:A1:CB'))
{
  # set clock
  sendPlain('4500', 5);
  for (my $n = 0; $n < 10; $n++)
  {
    for ($i = 0; $i < scalar(@png); $i++)
    {
      # set picture
      sendPlain('44000A0A04AA2D00000000'.$png[$i], 2, 0);
    }
  }
  disconnectDivoom();
}
Gefällt mir Gefällt mir x 1 Liste anzeigen

Offline schwatter

  • Full Member
  • ***
  • Beiträge: 320
Das mit dem Gif extrahieren is echt super. Runningtext erstellt. Da schruppen mal eben 167pics durch.
Erspart vieeeeel Arbeit. Ganz dickes DANKE  ;D

root@pi-zero-w1:/opt/fhem/divoom2# perl setGif.pl
Frame 0: 384x384
Frame 1: 384x384
Frame 2: 384x384
Frame 3: 384x384
Frame 4: 384x384
Frame 5: 384x384
Frame 6: 384x384
Frame 7: 384x384
Frame 8: 384x384
Frame 9: 384x384
Frame 10: 384x384
Frame 11: 384x384
Frame 12: 384x384
Frame 13: 384x384
Frame 14: 384x384
Frame 15: 384x384
Frame 16: 384x384
Frame 17: 384x384
Frame 18: 384x384
Frame 19: 384x384
Frame 20: 384x384
Frame 21: 384x384
Frame 22: 384x384
Frame 23: 384x384
Frame 24: 384x384
Frame 25: 384x384
Frame 26: 384x384
Frame 27: 384x384
Frame 28: 384x384
Frame 29: 384x384
Frame 30: 384x384
Frame 31: 384x384
Frame 32: 384x384
Frame 33: 384x384
Frame 34: 384x384
Frame 35: 384x384
Frame 36: 384x384
Frame 37: 384x384
Frame 38: 384x384
Frame 39: 384x384
Frame 40: 384x384
Frame 41: 384x384
Frame 42: 384x384
Frame 43: 384x384
Frame 44: 384x384
Frame 45: 384x384
Frame 46: 384x384
Frame 47: 384x384
Frame 48: 384x384
Frame 49: 384x384
Frame 50: 384x384
Frame 51: 384x384
Frame 52: 384x384
Frame 53: 384x384
Frame 54: 384x384
Frame 55: 384x384
Frame 56: 384x384
Frame 57: 384x384
Frame 58: 384x384
Frame 59: 384x384
Frame 60: 384x384
Frame 61: 384x384
Frame 62: 384x384
Frame 63: 384x384
Frame 64: 384x384
Frame 65: 384x384
Frame 66: 384x384
Frame 67: 384x384
Frame 68: 384x384
Frame 69: 384x384
Frame 70: 384x384
Frame 71: 384x384
Frame 72: 384x384
Frame 73: 384x384
Frame 74: 384x384
Frame 75: 384x384
Frame 76: 384x384
Frame 77: 384x384
Frame 78: 384x384
Frame 79: 384x384
Frame 80: 384x384
Frame 81: 384x384
Frame 82: 384x384
Frame 83: 384x384
Frame 84: 384x384
Frame 85: 384x384
Frame 86: 384x384
Frame 87: 384x384
Frame 88: 384x384
Frame 89: 384x384
Frame 90: 384x384
Frame 91: 384x384
Frame 92: 384x384
Frame 93: 384x384
Frame 94: 384x384
Frame 95: 384x384
Frame 96: 384x384
Frame 97: 384x384
Frame 98: 384x384
Frame 99: 384x384
Frame 100: 384x384
Frame 101: 384x384
Frame 102: 384x384
Frame 103: 384x384
Frame 104: 384x384
Frame 105: 384x384
Frame 106: 384x384
Frame 107: 384x384
Frame 108: 384x384
Frame 109: 384x384
Frame 110: 384x384
Frame 111: 384x384
Frame 112: 384x384
Frame 113: 384x384
Frame 114: 384x384
Frame 115: 384x384
Frame 116: 384x384
Frame 117: 384x384
Frame 118: 384x384
Frame 119: 384x384
Frame 120: 384x384
Frame 121: 384x384
Frame 122: 384x384
Frame 123: 384x384
Frame 124: 384x384
Frame 125: 384x384
Frame 126: 384x384
Frame 127: 384x384
Frame 128: 384x384
Frame 129: 384x384
Frame 130: 384x384
Frame 131: 384x384
Frame 132: 384x384
Frame 133: 384x384
Frame 134: 384x384
Frame 135: 384x384
Frame 136: 384x384
Frame 137: 384x384
Frame 138: 384x384
Frame 139: 384x384
Frame 140: 384x384
Frame 141: 384x384
Frame 142: 384x384
Frame 143: 384x384
Frame 144: 384x384
Frame 145: 384x384
Frame 146: 384x384
Frame 147: 384x384
Frame 148: 384x384
Frame 149: 384x384
Frame 150: 384x384
Frame 151: 384x384
Frame 152: 384x384
Frame 153: 384x384
Frame 154: 384x384
Frame 155: 384x384
Frame 156: 384x384
Frame 157: 384x384
Frame 158: 384x384
Frame 159: 384x384
Frame 160: 384x384
Frame 161: 384x384
Frame 162: 384x384
Frame 163: 384x384
Frame 164: 384x384
Frame 165: 384x384
Frame 166: 384x384
Frame 167: 384x384
Image: �PNG

Offline namron2000

  • Newbie
  • Beiträge: 2
Hallo Zusammen,
ich habe es auch Versucht mein Pixoo bei Fhem einzubinden. Jedoch scheitere ich momentan glaube ich an der Bluetooth verbindung.
Wenn ich die Befehle sende also zBsp. "perl ExampleAni.pl" erscheint bei meinem Pixoo nur das Bluetoothsymbol, aber sonnst passiert nix.
Wenn ich den Befehl  "systemctl status blue* " verwende, bekomme ich als  Error :
Failed to set privacy: Rejected(0x0b)
No cache for XX:XX:XX:XX:XX (die Mac des Pixoo)
GAP attribute not found
gap-profile profile accept failed fpr XX:XX:XX:XX:XX


Ich hoffe ihr könnt mir vielleicht weiter Helfen. (Ich benutze eine Pi mit Jessy und kann deshalb nicht Bluealsa installieren)
« Letzte Änderung: 19 Mai 2019, 14:12:00 von namron2000 »

Offline schwatter

  • Full Member
  • ***
  • Beiträge: 320
Wenn am Pixoo das Bluetoothzeichen aufpop't, ist das ein gutes Zeichen.
Bei mir unter Stretch mit Bluealsa wird keine dauerhafte Kommunikation aufgebaut.
Das liegt wohl einfach daran, das Bluealsa keine dauerhafte Verbindung aufbauen
kann bei SPP-Only.
So connected das Script kurz und sendet die Daten.

Welche ExampleAni.pl benutzt du?
Außerdem musst du in der divoom.pl 2 Einstellungen anpassen.

# 0 = disable escape sequences (use it for devices like timebox evo)
# 1 = enable escape sequences (use it for devices like aurabox, timebox or timebox mini)
my $escaped = 0;

# the optional port parameter must be set to 1 for new devices like timebox evo
# default: port 4 for aurabox, timebox and timebox mini will be used
sub connectDivoom($;$)
{
  my $device = shift;
  my $port = shift;
  my $ret;
  my $success = 0;

  $port = 1 if (!defined($port));

Offline namron2000

  • Newbie
  • Beiträge: 2
Also ich benutze einmal nur deine Ordner., den den man von Dropbox runter läd. Und den von mumpitzstuff. Wenn ich deinen ausführe erhalte ich nur
ein bluetooth symbol und wenn ich den von mumpitzstuff ausführe Passier nichts.
Ja die Sachen habe ich im script von mumpitzstuff geändert.
Muss ich beide ordner ineinadner legen ? Oder Funktionieren die auch zusammen.
Komischer weiße erhalte ich auch nicht immer das bluetooth Symbol.
Zudem wenn ich den Befehl eingebe"sudo systemctl start blue* " erhalte ich nun nach einem reboot die Ausgabe. "Bluez-5.49.service inactiv und not-found".

Habe Zudem mal bluetoothctl wärend dem senden laufen lassen und das gibt immer aus. Device MAC Connected : yes und kurz drauf wieder no.
Die verbindun zwischen dem Pixoo und dem Pi wird anscheinend zu schnell getrennt.
« Letzte Änderung: 19 Mai 2019, 17:31:44 von namron2000 »

Offline schwatter

  • Full Member
  • ***
  • Beiträge: 320
Die Dropbox habe ich schon lange nicht mehr aktualisiert. Das ist noch für Aurabox/Timebox.
Probier mal den Anhang hier.

edit:
Das mit dem kurz connected und dann wieder no ist beim Pixoo normal. Dauerhaft connected sind nur
die Bluetoothlautsprecher.
« Letzte Änderung: 19 Mai 2019, 21:09:16 von schwatter »