guddimon- / boblight-client Goto Github PK
View Code? Open in Web Editor NEWThis code is for my project to control the lights connected to a Raspberry Pi running boblightd with an IR remote control.
This code is for my project to control the lights connected to a Raspberry Pi running boblightd with an IR remote control.
In case of disconnect from boblightd, the client must reconnect.
If pushing another button on remote control, the color changes to the one before and after that to the new one.
= get =
This command is used the request the server. Two things can be asked: version and lights
==version==
returns the protocol version used by the server, current version is 5.
{{{
get version
version <protocol_version>
}}}
===use===
Declare that we do not use this light or not. By default we use all lights. All color change request will be ignored for a light declared as unused.
{{{
set light <name_of_light> use
}}}
===singlechange===
I'm not sure.
the size of a step between the current value and the wanted value.
0.5 means that the device will apply 50% of the difference between the two colors. 1.0 will apply the wanted color now.
{{{
set light <name_of_light> singlechange
}}}
Something like:
KEY_NUMERIC_1 = [1, 1, 1]
where KEY_NUMERIC_1 is the same as the sent config in lircrc and [1, 1, 1] is the color in the form [red, green, blue]
Add configuration if buttons should be used or not.
[switch]
use_buttons = True/False
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.