Hi!
I have tried to use your code in my Node Red installation with no success. I have noted my versions of Node Red/Node.js. And I can't seem to get your code to work. I hope that you can help me.
6 Jun 13:19:54 - [info] Node-RED version: v0.13.4 6 Jun 13:19:54 - [info] Node.js version: v4.2.2 6 Jun 13:19:54 - [info] Linux 3.11.10-29-default x64 LEI have tried to enable it by adding the code below to
settings.jsin thefunctionGlobalContextpart.TelldusAPI:require("telldus-live")and by adding
var TelldusAPI = require('telldus-live');to the acctual function node and to a bunch of places in thesettings.jsWhen adding the
var TelldusAPI = require('telldus-live');in the function node I get this error message.And if i remove the
var TelldusAPI = require('telldus-live');part I get this error message.I am not that familiar with Node.js but I hope to get starting using your module since I have a Tellstick Net.
Best regards,
Jocke
When adding thevar TelldusAPI = require('telldus-live');in the function node I get this error message.
var TelldusAPI = global.get('telldus-live'); var TelldusAPI = global.get('tellduslive'); var myTelldusAPI = global.get('TelldusAPI'); functionGlobalContext: { tellduslive:require('telldus-live') //tellduslive:require('/home/pi/.node-red/node_modules/telldus-live') // os:require('os'), // bonescript:require('bonescript'), // jfive:require("johnny-five"), // j5board:require("johnny-five").Board({repl:false}) },
var TelldusAPI = global.get('tellduslive'); msg.payload = TelldusAPI;return msg;/6/2016, 4:03:11 PM47d58b69.265e84msg.payload : Object{ "commands": { "on": 1, "off": 2, "bell": 4, "dim": 16, "up": 128, "down": 256 } }
Hi,