yottabits / 102shows Goto Github PK
View Code? Open in Web Editor NEWRaspberry Pi + APA102 + MQTT + 102shows = LED awesomeness!
License: GNU General Public License v2.0
Raspberry Pi + APA102 + MQTT + 102shows = LED awesomeness!
License: GNU General Public License v2.0
under server/
introduce a common lib/
or helpers/
folder that contains the following files:
mqtt/helpers
lightshows/utilities/general.py
lightshows/utilities/verifyparameters.py
create a driver interface for https://github.com/jgarff/rpi_ws281x
The open() method needs a Loader argument.
In configparser.py, get_configuration() has 2 open() calls that should be:
...
defaults = yaml.load(file, Loader=yaml.FullLoader)
...
user_config = yaml.load(file, Loader=yaml.FullLoader)
sudo
on raspihave an abstract base class that drivers derive and use it throughout 102shows
it does the following:
stable/
branch.git
)102shows-server
executable in /usr/bin
in base template
in class utilities
Unify p
, p_verifier
and p_preprocessor
to p
object with its own class, defined in server.lightshows.templates.base
Not sure if this is maintained anymore or not, but I could not get this to work on Raspbian Buster.
Got Node Red working.
Installed Mosquitto.
102shows/server/run.sh (per install doc) does not exist, tried server.py instead, looks like that works. Output:
2020-01-31 15:27:08 raspberrypi 102shows.server.mqttcontrol[10286] INFO Starting MyLED
2020-01-31 15:27:08 raspberrypi 102shows.server.mqttcontrol[10286] INFO Initializing LED strip...
2020-01-31 15:27:08 raspberrypi 102shows.drivers[10286] INFO sync-up
2020-01-31 15:27:08 raspberrypi 102shows.server.mqttcontrol[10286] INFO Connecting to the MQTT Broker
2020-01-31 15:27:08 raspberrypi 102shows.server.mqttcontrol[10286] INFO MyLED is ready
2020-01-31 15:27:08 raspberrypi 102shows.server.helpers.configparser[10286] INFO Successfully parsed defaults.yml as default configuration
2020-01-31 15:27:08 raspberrypi 102shows.server.helpers.configparser[10286] INFO Successfully parsed config.yml as user configuration
2020-01-31 15:27:08 raspberrypi 102shows.server.mqttcontrol[10286] INFO Starting the show clear
2020-01-31 15:27:08 raspberrypi 102shows.server.mqttcontrol[10286] INFO subscription on Broker localhost for led/MyLED/show/+/start and led/MyLED/show/+/stop
2020-01-31 15:27:08 raspberrypi 102shows.drivers[10289] INFO sync-down
Went to myserverip:1880/ui and all I get is a blank screen.
We are doing this as an "idle" show. Must find an elegant way to start it directly after an other show ended
attrdict
instead of orderedattrdict
server-side realisation via MQTT will
To 512 or 1024 or 1000 values. Float representation?
there is:
Exception classes are called with a debug string parameter, but init does not accept any parameters.
that makes it easier to share functionality between them
leave a toast notification for payloads in prefix/sys_name/notification
as implemented in #7
Max sent me a report about a similar chip to the APA102, SK9822: https://cpldcpu.com/2016/12/13/sk9822-a-clone-of-the-apa102/
To have full compatibility with the SK9822, an additional sending of the start frame must be added to the LEDStrip.show
method.
to wait for MQTT to be initialized. otherwise the presets will not be loaded properly
central question:
should we change num_steps_per_cycle or pause_sec or both?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.