-
Notifications
You must be signed in to change notification settings - Fork 4
Developing Lightshows
Simon Leiner edited this page Dec 29, 2016
·
1 revision
102shows version: 0.2
a lightweight example is lightshows/solidcolor.py
-
any show should reside in its own file (aka module) under
server/lightshows/
for examplemyshow.py
-
the module must be registered in the list
__all__
inlightshows/__init__.py
for example:
__all__ = ['foo', 'bar', 'myshow']
- all lightshows should inherit the basic lightshow template under
lightshows/templates/base.py
for example:
from lightshows.templates.base import *
def MyShow(Lightshow):
def run(self):
...
def check_runnable(self):
...
def set_parameter(self):
...
- it must be registered under
shows
in theconfig.py
file
for example:
configuration.shows('MyShow') = myshow.MyShow