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
Exception classes are called with a debug string parameter, but init does not accept any parameters.
central question:
should we change num_steps_per_cycle or pause_sec or both?
attrdict
instead of orderedattrdict
as implemented in #7
there is:
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.
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.
We are doing this as an "idle" show. Must find an elegant way to start it directly after an other show ended
create a driver interface for https://github.com/jgarff/rpi_ws281x
To 512 or 1024 or 1000 values. Float representation?
sudo
on raspiUnify p
, p_verifier
and p_preprocessor
to p
object with its own class, defined in server.lightshows.templates.base
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)
server-side realisation via MQTT will
to wait for MQTT to be initialized. otherwise the presets will not be loaded properly
in base template
have an abstract base class that drivers derive and use it throughout 102shows
in class utilities
it does the following:
stable/
branch.git
)102shows-server
executable in /usr/bin
under server/
introduce a common lib/
or helpers/
folder that contains the following files:
mqtt/helpers
lightshows/utilities/general.py
lightshows/utilities/verifyparameters.py
that makes it easier to share functionality between them
leave a toast notification for payloads in prefix/sys_name/notification
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.