guddimon- / boblib Goto Github PK
View Code? Open in Web Editor NEWboblight client library for python
boblight client library for python
= 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
}}}
Hi guddimon-,
thank you very much for this lib, although i'm very new to python I get it working partially.
When I start the python-enviroment and "import boblib" I'm ready to connect and use i.e.: "bob.setColor(1, 0, 0)" which worked great. All lights red.
But when I try to set color of a specific light it does not work. For sure I use this command:
"bob.getLight()[11].getColor().setColor(1, 0, 0)" but nothing happens, no response in my python-enviroment and light 12 is still dark.
Any Ideas whats wrong here?
Greetings
BooStar
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.
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.