Jump to content
  • 2

QA: Twinkly Lights ON / OFF


Question

11 answers to this question

Recommended Posts

  • 0

@BodyartSir, thnx, I am not near my PC and can't see file via Sank.

I hope this VD for HC2 can works with latest FW (as i can see developers add auth and remove some functions for example switching effects) 

Link to post
Share on other sites
  • 0

Hi @10der,

 

I used unofficial Twinkly API published here: https://xled-docs.readthedocs.io/en/latest/index.html  and it was last updated in 2018. It is still working with latest Twinkly firmware v2.5.6

 

I used RestAPI that is working on local network. Didn't want to use MQTT for which I expect that is changed after the last unofficial API.

 

Link to post
Share on other sites
  • 0
25 minutes ago, Sankotronic said:

Hi @10der,

 

I used unofficial Twinkly API published here: https://xled-docs.readthedocs.io/en/latest/index.html  and it was last updated in 2018. It is still working with latest Twinkly firmware v2.5.6

 

I used RestAPI that is working on local network. Didn't want to use MQTT for which I expect that is changed after the last unofficial API.

 

 

tnx for answer. I am using rest APi too.

but is not clear how to send effect with for example 

Fireworks

:(

 

 

 

 

Link to post
Share on other sites
  • 0

Ukraine flag (HC3 lua develop)

 

 

 

image.thumb.png.e9352fde7ae8186ae3b382aabe840e56.png

Edited by 10der
Link to post
Share on other sites
  • 0
27 minutes ago, 10der said:

 

tnx for answer. I am using rest APi too.

but is not clear how to send effect with for example 

Fireworks

:(

 

I know it is possible with MQTT to send name of the one of default effects. With RestAPI I still didn't find that possibility. For now this is what I tested and find working:

 

Changing LED operation mode payload sent to endpoint "/xled/v1/led/mode":

  • {"mode":"off"}
  • {"mode":"movie"} - starts last movie that was set with mobile app
  • {"mode":"effect"} - starts last default effect that was last played e.g. by demo (not mentioned in API reference)
  • {"mode":"demo"} - starts demo rotating through default effects
  • {"mode":"rt"} - real time movie need to send frames in real time

Changing LED brightness by sending payload to endpoint "/xled/v1/led/out/brightness":

  • {"value":brightness} where brightness is integer value 0 to 100 where 0 is also turning off LED (wrongly shows value sent as string {"mode":"enabled","type": "A","value": "100"})

And of course it is possible to send complete effect by uploading frames as you just demonstrated in previous post :-)

 

Edited by Sankotronic
  • Like 1
Link to post
Share on other sites
  • 0

tnx.

all function already was impemented.

i with to know how to switch to predefined effect. answer no how.

it's ok.

 

thank you very much

 

code for hc3 playing (local debugging by @jgabtools

 

attached

 

Twinkly.LUA

Edited by 10der
  • Thanks 1
Link to post
Share on other sites
  • 0

I think there is also {"mode": "playlist"}

I haven't checked it but such mode is displayed when I turn on playlist on Twinkly mobile app.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...