Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
GGGG tt bb lll
GG GG aa aa tt eee bb lll uu uu
GG aa aaa tttt ee e bbbbbb lll uu uu
GG GG aa aaa tt eeeee bb bb lll uu uu
GGGGGG aaa aa tttt eeeee bbbbbb lll uuuu u
======
======
Gateblu (SkyNet Hub) allows you to connect devices with or without IP addresses to SkyNet (i.e. Phillips Hue, Belkin WeMo, Insteon, Blink1, Raspberry Pi, etc.).
The Octoblu gateway has an extensible plugin architecture allowing you to create plugins for devices that we have not had a chance to connect yet. You can search NPMJS.org for a list of active SkyNet Hub plugins.
For example if you wish to install the SkyNet plugin for the Philips hue, you can simply npm install skynet-hue
in the directory your hub installed.
Clone the git repository, then:
$ npm install
$ node server.js
If you would like to connect your SkyNet Hub to a private SkyNet cloud, then:
$ env SKYNET_SERVER=127.0.0.1 SKYNET_PORT=3000 GATEBLU_PORT=8888 node server.js
An Octoblu gateway can have subdevices attached to it. A subdevice is a configured instance of a plugin. It could be anything from a Philips hue lighting system to an arduino to a simple javascript function that just calls a shell script on the Octoblu gateway itself.
You can have as many subdevices on the gateway as you wish, as long as gateway has the plugin type installed that you want to use for your subdevice.
If you have direct access to your gateway, then a simple way to create an subdevice is with a curl command. For example if you wish to create a subdevice of type skynet-hue:
curl -X POST http://192.168.1.110:8888/subdevices -H "Content-Type: application/json" -d '{"name":"living_Room_Lights", "type":"skynet-hue", "options":{"ipAddress": "192.168.1.115", "apiUsername": "newdeveloper"}}'
You can then message subdevices directly from skynet by sending a normal skynet message to the Octoblu gateway and specifing:
{
devices: 'xxxxxx-uuid-of-a-skynet-hub-xxx',
subdevice: 'living_Room_Lights',
payload: { setState: {lightNumber: 1, on: true} }
}
Gateblu has a websocket API called gatewayConfig that allows you to query, configure, install, and uninstall plugins and subdevices.
Once you are connected to Meshblu (formerly SkyNet.im), you can call gatewayConfig with the following methods:
Here are sample gatewayConfig websocket API calls:
conn.gatewayConfig({
uuid: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX',
token: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX',
method: 'configurationDetails'
}, function(results){ console.log(results); });
conn.gatewayConfig({
uuid: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX',
token: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX',
method: 'getSubdevices'
}, function(results){ console.log(results); });
conn.gatewayConfig({
uuid: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX',
token: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX',
method: 'createSubdevice',
type: 'skynet-greeting',
name: 'hellos',
options: {"greetingPrefix": 'hello'}
}, function(results){ console.log(results); });
conn.gatewayConfig({
uuid: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX',
token: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX',
method: 'updateSubdevice',
type: 'skynet-greeting',
name: 'hellos',
options: {"greetingPrefix": 'yes'}
}, function(results){ console.log(results); });
conn.gatewayConfig({
uuid: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX',
token: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX',
method: 'deleteSubdevice',
type: 'skynet-greeting',
name: 'hellos'
}, function(results){ console.log(results); });
conn.gatewayConfig({
uuid: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX',
token: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX',
method: 'reloadSubdevice'
name: 'greeting'
}, function(results){ console.log(results); });
conn.gatewayConfig({
uuid: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX',
token: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX',
method: 'getPlugins'
}, function(results){ console.log(results); });
conn.gatewayConfig({
uuid: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX',
token: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX',
method: 'installPlugin',
name: 'skynet-insteon'
}, function(results){ console.log(results); });
conn.gatewayConfig({
uuid: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX',
token: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX',
method: 'updatePlugin',
name: 'skynet-insteon'
}, function(results){ console.log(results); });
conn.gatewayConfig({
uuid: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX',
token: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX',
method: 'uninstallPlugin',
name: 'skynet-insteon'
}, function(results){ console.log(results); });
conn.gatewayConfig({
uuid: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX',
token: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX',
method: 'getDefaultOptions',
name: 'skynet-hue'
}, function(results){ console.log(results); });
(MIT License)
Copyright (c) 2014 Octoblu info@octoblu.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Gateblu core library
The npm package gateblu receives a total of 125 weekly downloads. As such, gateblu popularity was classified as not popular.
We found that gateblu demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.