Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

temper issues with device open #7

Open
anupam19 opened this issue Sep 1, 2014 · 0 comments
Open

temper issues with device open #7

anupam19 opened this issue Sep 1, 2014 · 0 comments

Comments

@anupam19
Copy link

anupam19 commented Sep 1, 2014

I am having problem but not getting any solution. I am using temperature sensor from pcsensor.com
I can read data via C program they have given.
I am using this temper1 node : https://www.npmjs.org/package/temper1
This sensor is a different than my one and hence I changed the sensor name and interface in temper code.
also I had to add functionGlobalContext: { thermometers:require('temper1') } in node red settings file to access from function

I can get device attributes writing this in function block:

var devices = context.global.thermometers.getDevices();
return devices;

I am getting this as output :
(Object) { "vendorId": 3141, "productId": 29697, "path": "0006:0005:00", "manufacturer": "RDing", "product": "TEMPerV1.4", "release": 1, "interface": 0 }

Now I tried this to get data:

var device = context.global.thermometers.readTemperature("0006:0005:00", function(err, value) {
console.log("Result:"+value);
});
return device;

I am getting:

cannot open device with path 0006:0005:00

i have set udev rule to access as non-root user and I tested it as working when I am accessing via C program by the sensor provider. I am not getting why It can not read data, even I tried to get data using node-hid too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant