netbeast / api Goto Github PK
View Code? Open in Web Editor NEW:rocket: Node.js wrapper for the resources Netbeast Router HTTP API.
Home Page: http://netbeast.co
:rocket: Node.js wrapper for the resources Netbeast Router HTTP API.
Home Page: http://netbeast.co
node_modules folder should be ignored
Considering that the whole US and UK use Farenheit degrees instead of Celsius, support for such system should be provided.
Example proposal:
temperature.get/set(value, "measuring system")
┆Issue is synchronized with this Asana task
or http if frontend is http
┆Issue is synchronized with this Asana task
The README.md gives an example on how to gather data about devices, which looks awesomely simple and straight forward:
beast('temperature').at('kitchen').get().then(function (data) {
console.log('The temperature in the kitchen is ' + data + 'ºC')
})
The Promise is however fulfilled with a Response
rather than the actual data. Same goes for calling get('temperature')
as the argument is unused in the code. So for some reason the docs are quite different from the actual implemenation.
┆Issue is synchronized with this Asana task
sometimes bulb-plugin doesn’t work, and it’s necessary refreshing to fix it, you can see in http://localhost:8000/api/resources
┆Issue is synchronized with this Asana task
In lines https://github.com/netbeast/api/blob/master/lib/init.js#L8 and 9th
(That is the script to guess if we are running on browser or server)
Change this:
var netbeast = require('netbeast')
netbeast().info('Something happened!')
Into this:
var netbeast = require('netbeast')
netbeast.info('Something happened!')
And this:
var netbeast = require('netbeast')
netbeast('temperature').on(function (message) {
...
})
Into this:
var netbeast = require('netbeast')
netbeast.on('temperature', function (tempObject) {
...
})
I've discovered that you can't use power: "off"
while turning lights
off (didn't try with other topics). If you want to turn power off, you have to use power: false
in the set
method. It doesn't happen while turning lights on, they both work power: "on"
and power: true
.
┆Issue is synchronized with this Asana task
create mocha tests for the api repo (not api inside dashboard)
https://github.com/netbeast/api
ask https://app.asana.com/0/66160198699266/66160198699266 about details and requirements of those tests
┆Issue is synchronized with this Asana task
When I declare on my code:
var netbeast = require('netbeast')
I get the following error:
Netbeast router URL is missing or device cannot be found
I'm launching an application outside from the dashboard, I don't know why I get that error if I'm not using the API yet I'm only declaring
┆Issue is synchronized with this Asana task
Turn "testeando" little by little into proper mocha tests to create travis-ci on them.
┆Issue is synchronized with this Asana task
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.