ni-c / heimcontrol.js

Home-Automation with node.js and Raspberry PI
MIT License
1.41k stars 297 forks source link

gpio-admin: not found and heimcontrol very slow #62

Open selfmade01 opened 10 years ago

selfmade01 commented 10 years ago

Hello,

i installed already heimcontrol.js on my raspberry pi. The Raspi is connect with arduino mega i can login in the heimcontrol webinterface http://myip:8080

i can also create some items. But if i use this items then i get this error-message on Raspi-Terminal-output Error when trying to open pin 13 /bin/sh: 1: gpio-admin: not found

Error when trying to close pin 13 /bin/sh: 1: gpio-admin: not found

then is think, if i login in the heimcontrol and i switch to any settings, thats very slow.

what i can do to check if all is correct configured?

best regards and thnaks for any help

Jürgen

selfmade01 commented 10 years ago

sorry, was my misstake i have create a item in heimcontrol.js with GPIO-PIN. But is use Arduino !

but i have on other problem

I can create a new item with LED or others. I test now with LED but if i click "power on LED" i see only on the arduino board the little TX-LED blink. but not my LED on PIN-6

Can i check in some logfiles or whatever was going wrong in my configuration?

HeLiBloks commented 10 years ago

ok, Im not sure if the Mega will work properly with duino?

but first try writing 06 as pin number or A6 if its on an analog pin. you could also try $ sudo nano /heimcontrol.js/node_modules/duino/examples/led.js --> change pin: to your pin, debug: true, and then run with $ node /heimcontrol.js/node_modules/duino/examples/led.js if the led blinks the mega board should work mfg

selfmade01 commented 10 years ago

ok. i think. heimcontrol.js don't like my mege board thats the code /led.js var arduino = require('../');

var board = new arduino.Board({ debug: true });

var led = new arduino.Led({ board: board, pin: "09" });

board.on('ready', function(){ led.blink(); });

This don't work

and thats the arduino-sketch code this works (both on led 9

/* Blink Turns on an LED on for one second, then off for one second, repeatedly.

This example code is in the public domain. */

// Pin 13 has an LED connected on most Arduino boards. // give it a name: int led = 9;

// the setup routine runs once when you press reset: void setup() { // initialize the digital pin as an output. pinMode(led, OUTPUT); }

// the loop routine runs over and over again forever: void loop() { digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(led, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second }

wow. i never think thats is so big difference with arduino boards

heimcontrol.js is a new program, when you think work heimcontrol.js with mega boards`?

best regards

2014-04-10 9:43 GMT+02:00 HeLiEight1 notifications@github.com:

ok, Im not sure if the Mega will work properly with duino?

but first try writing 06 as pin number or A6 if its on an analog pin. you could also try $ sudo nano /heimcontrol.js/node_modules/duino/examples/led.js --> change pin: to your pin, debug: true, and then run with $ node /heimcontrol.js/node_modules/duino/examples/led.js if the led blinks the mega board should work mfg

— Reply to this email directly or view it on GitHubhttps://github.com/ni-c/heimcontrol.js/issues/62#issuecomment-40051260 .