
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
netbeast-cli
Advanced tools
| Linux & Mac | Windows | Docker | Docs | Forum | Demo | *
|----------|:-------------:|:------:|:------:|:------:|:------:|:------|------:|
| |
|
|
|
|
|
One API, unlimited products and hacks. Netbeast middleware translates messages from different IoT protocols and device interfaces so they work as one. Have no more "hubs". Work across devices not brands.
var netbeast = require('netbeast')
netbeast.find().then(function () {
netbeast('lights').set({ power: 1 }) // will turn on all lights in your home
})
Make sure you have installed git and nodejs.
npm install -g netbeast-cli
netbeast start
Find it live at http://localhost:8000 or run it as netbeast start --port <PORT>
Pro tip. To get started developing you will find handy to have it installed in a folder of your choice.
git clone https://github.com/netbeast/dashboard
cd dashboard
npm install --production
npm start
## Raspberry / Beagle Bone / Pine64 or your choice of board Make sure again you have installed git and nodejs. It can be tricky depending on your OS & architecture. If any doubts please reach forum or open an issue.
git clone https://github.com/netbeast/dashboard . # clone in this folder
npm i --production # no front-end or test dependencies
npm i -g pm2
sudo pm2 start index.js --port 80
Make sure you already have docker installed.
docker pull netbeast/netbeast
docker run -p 49160:8000 -d netbeast/netbeast
This will run your docker container on the port 49160
CONTAINER_IP
.http://CONTAINER_IP:49160
– Et voilà
Netbeast apps are HTML5 user interfaces that enable controlling IoT or visualizing their data. Netbeast plugins are apps that translate from the Netbeast IoT Unified Scheme, to each particular implementation of an IoT device.
Explore existing apps and plugins of our public registry.
Take a look on our unified API on action in this demo on youtube, under a Netbeast app that creates new scenes.
https://www.youtube.com/watch?v=YNERwJdykuQ
Use the Netbeast API along with the dashboard to publish data through MQTT or reuse it in your apps. Read more.
## Write IoT apps without spending on hardware or suffering expensive deployments Take advance of Netbeast IoT middleware to test your apps with software that mocks the hardware interface.
Find tutorials in the docs, read a blog post about it on TopTal or join the forum to ask how to do it.
We publish a gitbook with fresh documentation on https://docs.netbeast.co. If you want to open an issue, contribute or edit it, find your way on its github repo https://github.com/netbeast/docs.
In Netbeast we care about education, openness and interoperability. We have created a series of workshops to teach developers to better use HTTP, MQTT in combination with the Dashboard to create data bindings and incredible apps. Use your favorite boards and platforms as Arduino, Pi Zero, Pine64, Belkin Wemo, Homekit and a infinite list, connected.
A Netbeast app allows you to run the Dashboard unique API in the browser or backend equally. Just expose some user interface in your apps root. In the following snippet we serve in the root all files inside public
folder.
var express = require('express')
var app = express()
// Netbeast apps need to accept the port to be launched by parameters
var argv = require('minimist')(process.argv.slice(2))
app.use(express.static('public'))
var server = app.listen(argv.port || 31416, function () {
var host = server.address().address
var port = server.address().port
console.log('Example app listening at http://%s:%s', host, port)
})
Learn how to create new scenes and user interfaces as bots, speech recognition, smart triggers. Learn how to develop Netbeast apps, debug and publish them on the documentation
A plugin is an app that enables your Dashboard to communicate with a different protocol or proprietary device. It's like if you, that want to learn Chinese, could speak Chinese by installing an app. Luis, cofounder of Netbeast
A basic plugin must implement at least a discovery
primitive to declare itself on Netbeast's database.
Fill the gaps to create your first hardware integration into Netbeast:
var netbeast = require('netbeast')
var express = require('express')
var cmd = require('commander') // reads --port from command line
// Netbeast tells you in which port to run your Plugin endpoint
cmd.option('-p, --port <n>', 'Port to start the HTTP server', parseInt)
.parse(process.argv)
var app = express()
/*
* Discover your resources / scan the network
* And declare your routes into the API
*/
app.get('/discover', function () {
/* TODO, implement discovery */
/* for each device */
netbeast('topic').create({ app: 'my-first-plugin', hook: 'DEVICE_ID' })
/* end of for */
/* or */
/* Register all device together and delete the resources no longer available */
netbeast('topic').udateDB({ app: 'my-first-plugin', hook: ['DEVICE1_ID', 'DEVICE2_ID', 'DEVICE3_ID', 'DEVICE4_ID'] })
})
/*
* Create here your API routes
* app.get(...), app.post(...), app.put(...), app.delete(...)
*/
app.get('/:device_id', function (req, res) {
// id of the device the dashboard wants
// << req.params.device_id >>
// dashboard will do GET on this route when
// netbeast('topic').get({})
/* TODO: Return device values from req.query */
// res.json({ YOUR_PLUGIN_DATA })
})
app.post('/:device_id', function (req, res) {
// id of the device the dashboard wants
// << req.params.device_id >>
// dashboard will do POST on this route when
// netbeast('topic').set({})
/* TODO: Change device values from req.body */
// res.json({ YOUR_PLUGIN_DATA })
})
var server = app.listen(cmd.port || 4000, function () {
console.log('Netbeast plugin started on %s:%s',
server.address().address,
server.address().port)
})
Learn how to launch it, debug it and publish it on the documentation.
Take a look to our CONTRIBUTING.md file in order to see how can you be part of this project. Or take a look on Netbeast's discourse forum to find for inspiration, projects and help.
TL;DR Make a Pull Request. If your PR is eventually merged don't forget to write down your name on the AUTHORS.txt file.
FAQs
Netbeast OS dashboard, IoT apps manager
The npm package netbeast-cli receives a total of 7 weekly downloads. As such, netbeast-cli popularity was classified as not popular.
We found that netbeast-cli 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.