GithubHelp home page GithubHelp logo

api's People

Contributors

jsdario avatar luisfpinto avatar pablopi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api's Issues

netbeast.get returns a response, not a device state

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

Little refactors

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)  {
   ...
})

Error at using beast('lights' ).set(power: "off")

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

Netbeast router can not be found when I require netbeast

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.