Skip to content

realraum/r3LoTHRPipeLEDs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

r3LoTHRPipeLEDs

Experiment with NodeMCU and WS2812B LEDS

Features

New LUA scripts can be uploaded/replaced via telnet within the first 18 seconds after power on:

./upload.sh --ip 192.168.127.126</tt>

Inhibit execution of LED animation (in case of problems) by calling stopstartup()

nc 192.168.127.126 telnet <<< 'stopstartup()'

Change animation, animation parameters or switch of via MQTT:

./inject_mqtt_msg.py "action/PipeLEDs/pattern" '{"pattern":"rainbow","arg":2}'
./inject_mqtt_msg.py "action/PipeLEDs/pattern" '{"pattern":"rainbow","arg":10}'
./inject_mqtt_msg.py "action/PipeLEDs/pattern" '{"pattern":"off","arg":0}'

Caveats

  • pattern_rainbow() takes a long time
  • node.task.post(..) needs to be used so MQTT can be used in parallel

Todo

  • Stop playing with LUA, use Sming instead.

About

Experiment with NodeMCU and WS2812B LEDS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published