Code Monkey home page Code Monkey logo

heimcontrol.js's People

Contributors

connorroberts avatar imbrianj avatar jorism avatar laurynas avatar lichtteil avatar ni-c avatar tjanson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

heimcontrol.js's Issues

How to create plugins?

After hours of patience I finally got this working, yes there's plenty of thing to be added or enhanced, however heimcontrol.js is the most advanced home automation raspberryPI project I have been playing with, congrats for the hard work and for sharing with us.

I wish I can help to extend features, such as lockitron (they provide an API), mochad (x10) and maybe NFC or RFID authentication (yes I am one of those implanted geek, both hands). Can anyone help me understand how adding plugins works? Say I already have a some nodes apps how can I add it? I couldn't really find any hint even after trying to duplicate a plugin and looking at it. Is there any documentation?

Thanks for the great project!

Great stuff! How do I program my Arduino on startup?

Great project guys! I've just got this up and running with the Arduino Uno using rcswitch!

One question: When I reboot my pi, I've gotten heimcontrol set to run as a service on startup. Do you know if it's possible to programatically build and upload the du.ino file as well?

I've tried using arduino-mk with no success (missing dependencies) - the only way I've been able to get du.ino to compile and upload is from the full blown Arduino IDE. Any help would be appreciated!

Node process suddenly crashed

For some reason node just quits ... this is the error it prints, does not really make any sense to me

fs.js:365
binding.read(fd, buffer, offset, length, position, wrapper);
^
Error: Offset is out of bounds
at Object.fs.read (fs.js:365:11)
at SerialPort._read (/home/pi/hiems/heimcontroler/node_modules/duino/node_modules/serialport/serialport.js:343:8)
at afterRead (/home/pi/hiems/heimcontroler/node_modules/duino/node_modules/serialport/serialport.js:338:14)
at /home/pi/hiems/heimcontroler/node_modules/duino/node_modules/serialport/serialport.js:346:7
at Object.wrapper as oncomplete

node heimcontrol.js ---waiting very long time, localhost:8080 have no web, please see below display...

pi@raspberrypi ~/heimcontrol.js $ node heimcontrol.js

= Please ensure that you set the default write concern for the database by setting =
= one of the options =
= =
= w: (value of > -1 or the string 'majority'), where < 1 means =
= no write acknowlegement =
= journal: true/false, wait for flush to journal before acknowlegement =
= fsync: true/false, wait for flush to file system before acknowlegement =
= =
= For backward compatibility safe is still supported and =
= allows values of [true | false | {j:true} | {w:n, wtimeout:n} | {fsync:true}] =
= the default value is false which means the driver receives does not =
= return the information of the success/error of the insert/update/remove =
= =
= ex: new Db(new Server('localhost', 27017), {safe:false}) =
= =
= http://www.mongodb.org/display/DOCS/getLastError+Command =
= =
= The default of no acknowlegement will change in the very near future =
= =

= This message will disappear when the default safe is set on the driver Db =

info - socket.io started
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0

---------------waiting very long time-----------------localhost:8080 have no web display---------

Raspicam

Is there any chance to setup raspicam to work with heimcontrol.js?
I want to set it up with streamer but it doens't work.

Multiple webcam saving

Upon adding 2nd webcam and trying to save.
"An invalid form control with name='data[0][port]' is not focusable. "

Wishlist :)

I have already have another set of raspberry pi and arduino to eliminate the hardware problems.
My old problem with arduino communication posted before, is solved by "reinstalling" heimcontrol.js.
But i have a new one :(
The sympthom is coming in about 30 minutes from starting heimcontrol, which is working great until the readings from the arduino stops, and i have no response from the arduino, and the leds on the arduino is showing me the communication problem, like the console messages with debug enabled.
It's interesting, because if i restart heimcontrol, without any hardware reset, is working again.
I think, my problem comes from the arduino, because i have a modified code uploaded, to read my dht22 sensors.
Two separate systems, same issue.

My problem is, that i want to use digital sensors, at 50m from the system, that's why i modified the arduino code.

Now i want to create a new plugin, using existing working software, to connect the dht sensor(s) directly to raspberry.

I have tested and i have readings from the console using:
https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/tree/master/Adafruit_DHT_Driver

Please let me know if it's possible or i want too much :)

Mongo won't start

I'm running on the latest wheezy. I follow each line but gave me a 'failed!' when trying to start it. I don't know where to start in debugging the problem. Thanks

passing numbers/bidirectional control

I'm looking for a way to have button presses on the arduino be recognized as such in heimcontrol, and be able to have actions associated with them(ex. a pushbutton to turn on a light, instead of having to use the web interface), as well as a way to have if... then logic within the interface(ex. temperature sensor on arduino reports to heimcontrol, which then turns the heat on or off).

Thoughts/suggestions?

html-page not rendered properly

I just installed the heimcontrol on my raspberryPi and after hours of building I tried to start the application in Browser. In my case: http://192.168.0.111:8080

But all I see is the following Error:
Error: /etc/init.d/heimcontrol.js/views/layout.jade:5 3| head 4| title heimcontrol.js | #{title} > 5| link(rel='stylesheet', href='#{theme}') 6| link(rel='stylesheet', href='/css/bootstrap-responsive.min.css') 7| link(rel='stylesheet', href='/css/font-awesome.min.css') 8| link(rel='stylesheet', href='/css/heimcontrol.css') unexpected text at Object.Lexer.fail (/etc/init.d/heimcontrol.js/node_modules/jade/lib/lexer.js:783:11) at Object.Lexer.next (/etc/init.d/heimcontrol.js/node_modules/jade/lib/lexer.js:841:15) at Object.Lexer.lookahead (/etc/init.d/heimcontrol.js/node_modules/jade/lib/lexer.js:111:46) at Parser.lookahead (/etc/init.d/heimcontrol.js/node_modules/jade/lib/parser.js:109:23) at Parser.peek (/etc/init.d/heimcontrol.js/node_modules/jade/lib/parser.js:86:17) at Parser.tag (/etc/init.d/heimcontrol.js/node_modules/jade/lib/parser.js:692:22) at Parser.parseTag (/etc/init.d/heimcontrol.js/node_modules/jade/lib/parser.js:678:17) at Parser.parseExpr (/etc/init.d/heimcontrol.js/node_modules/jade/lib/parser.js:197:21) at Parser.block (/etc/init.d/heimcontrol.js/node_modules/jade/lib/parser.js:644:25) at Parser.tag (/etc/init.d/heimcontrol.js/node_modules/jade/lib/parser.js:763:26)

Can you give me a hint what is going wrong there?

How secure is heimcontrol?

As someone who knows not loads about encryption and web hacking and whatnot.. I just wondered how secure this platform is...

Say I used it to control a factory.. where are the possible ways in for attackers.. Is it pretty much impossible or super easy for them to get in?

This is assuming I have strong passwords for all my registered users..

Changing the order of the items on the home screen

Is there an easy way of changing the order how things are showed on the home screen?

For example say I have currently 4 remote sockets, and add them first, then temperature sensor and light sensor,... then some IR stuff.
After a while I buy some new remotes and want them on top right after the first added 4 remote sockets, currently I have to delete all items with settings under them and then add the new ones and the old stuff with all entrys again, or am I missing something?

Would it be possible to impement some intuitive sortable thing that you can change the order for example like this: http://jqueryui.com/sortable/

Bootstrap 3.0

Hi there,

Any possibility of the code moving to Bootstrap 3.0?

Heimcontrol and duino version

Duino has been updated by it's author (https://github.com/ecto/duino ), allowing to specify device name (not necessary ttyACMxxx). This could help with mini arduino (without serial) and some special serial adapters.

On my setup, I updated duino with the latest version, but I had to make some modification to make it works.

In plugins/arduino/index.js i've replaced
this.board = new duino.Board();

With
this.board = new duino.Board({
device: "ACM"
});

Same modification had to be done in plugins/rgblights/index.js .

With the latest duino version, it is also possible to change the communication baud rate with the arduino. Of course, this has to be done in the arduino app.

In that cas, init have to be changed to 👍 this.board = new duino.Board({
baudrate: 9600",
device: "ACM"
});

Hope that will help.

mongodb &node need many hours for compile

Hello,

i try to install heimcontrol.js
i installed already but the compile mongodb and node need more then 10 hours on my raspberrypi B
now i have to new install all and i hope anybody can tell me if this long compile on raspberry normal
or what i can do

thanks a lot for any help

Jürgen

Many Arduinos

Hello.
Is possible to add more than one arduino board for each Raspberry Pi? Maybe a LAN with all arduinos connected by ethernet cable.

Newbie question..

Hi,

I just installed heimcontrol. However i can't get it to work. i started the app and when i point my browser to my raspberry:8080, i got a brunch of errors regarding Jade.

Error: /home/pi/heimcontrol.js/views/layout.jade:5
3| head
4| title heimcontrol.js | #{title}

5| link(rel='stylesheet', href='#{theme}')
6| link(rel='stylesheet', href='/css/bootstrap-responsive.min.css')
7| link(rel='stylesheet', href='/css/font-awesome.min.css')
8| link(rel='stylesheet', href='/css/heimcontrol.css')

It seems the #{theme} is not properly interpreted. I there somethig to configure in config/development.json regarding mongodb? An other config to do?

Mongo proprely connects :
pi@raspberrypi ~/heimcontrol.js $ opt/mongo/bin/mongo
MongoDB shell version: 2.1.1
connecting to: test

Thaks for pointing me the right direction...
JPC

gpio input not working

I want to use the raspberry-s gpio port for reading inputs also, output its working great.

I want to see the state of the relays, even after system restart, and for this i wanted to use some of the gpio ports to see if it's on or off.

First of all I cannot set on the gpio settings page the direction to input, every tine when i hit save, it comes back to output.

I went to the database, and i changed there, from output to input, but alway i have the down state, even if i see with command line gpio readall the changing state.

Thank you.

Arduino Problems

Heimcontrol is up and running for me on my pi, but having problems with arduino.

I have a macbook which I can use to upload the duino code to the arduino, but there are errors. I'm pretty sure I'm not doing things right. Can someone please help?

I have the following equipment for my home automation setup.
Raspberry pi
Macbook air
Arduino Uno R3 + rf transmitter etc.

ELRO AB440S/3C not working although Arduino should handle it.

I was a bit confused how to set up the RC-Sockets with the gui, because there were 10 switches but only 8 possible characters. Although I thought 1 means switched on, 0 switched off.

I figured out that A code like "0F00FFFFFFF0" is the actual code which is "switched" on the Remote socket. Then I saw that to the 8 digits is something added in:
~/heimcontrol.js/plugins/arduino/index.js like

if (item.value) {
return that.pins[item.pin].triState(item.code + "0FFF");}

I saw that the ELRO needs "Code" + FF for switch off and +F0 for switch on. I changed the code to triState(item.code + "FFFF")/triState(item.code + "FFF0") and also testet it directly with the arduinofunction called mySwitch.sendTriState("0F00FFFFFFF0"); and it worked. But back in the GUI I entered just the first 8 DIGITS of the whole code and it refused to work.

Any Idea why? Is there a guide on how to set this up?

Error with Heimcontrol.js- HomeAutomation Project

This is the error I get when I try to run my heimcontrol.js. I did the "npm install" and mongodb is up and running! I'm not sure whats going on!

pi@raspberrypi ~ $ node heimcontrol.js

module.js:340
throw err;
^
Error: Cannot find module '/home/pi/heimcontrol.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3

Error with heimcontrol

I am still fairly new with working with the pi along with all this stuff. It is a learning process.
I am currently working on a home automation system and I have mongodb working properly on my raspberry pi. When I try to start heimcontrol.js i get an error.

WARNING: change secret string in config/development.json
info -socket.io started
connect.multipart() will be removed in connect 3.0
heimcontrol.js listening on port 8080

events.js:72
throw er; //unhandled 'error' event
^
Error: Cannot open /dev/

Thanks much for any and all help.

API for Arduino Module

I want to extend the android app to support the rc-switch.

Currently, the route for api requests is set as follows:
157 app.all('/api/:plugin/:method?', Routes.isAuthorized, Routes.api, Routes.notFound);

This works for example for the GPIO plugin, because the route would be api/gpio/get
or similar. Now for Arduino Plugins, I also need to pass the which of the three methods (arduino-rcswitch, arduino-irremote, arduino-led).

How would you go about passing that data? Add another route? Or just pass the method as a parameter in the json object?

I can not run node heimcontrol.js

When running "node heimcontrol.js" the following error occurs "Failed to connect to MongoDB: Error: failed to connect to [127.0.0.1:27017]"

I followed the tutorial to complete but not working.

I installed mongopi as you indicate in the tutorial. You know you can be?

pi@RaspberryPi ~/heimcontrol.js $ sudo service mongodb start
[FAIL] Starting database: mongodb failed!
pi@RaspberryPi ~/heimcontrol.js $

pi@RaspberryPi ~/heimcontrol.js $ mongo
MongoDB shell version: 2.1.1
connecting to: test
Mon Aug 12 18:10:55 Error: couldn't connect to server 127.0.0.1:27017 src/mongo/shell/mongo.js:91
exception: connect failed

Error:events.js

I try to install heimcontrol. All is fine as well as mongo. USB arduino connected and "duino" sketch uploaded. But I get:

=  This message will disappear when the default safe is set on the driver Db           =
========================================================================================
   info  - socket.io started
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
heimcontrol.js listening on port 18080

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: Error Invalid argument calling write(...)

I've done the trick of not finding the arduino and as Arduino is connected I get:

$ls /dev | grep -e usb -e USB -e ACM
ttyUSB0
usbmon0
usbmon1
usbmon2

TIA.

Can't find opt/mongo/bin/mongod

I tried following the instructions verbatim on a clean weezy install. After all is said and done when I try to start mongo I get the following error

Could not find /opt/mongo/bin/mongod

indeed there is no such file. Do you have any idea what I'm missing? I've tried it multiple times.

Just a little Error

Hello,

I've just terminated to install all necessary packages for heimcontrol.js, but when i do : Node heimcontrol.js, i have :
info - socket.io started
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
heimcontrol.js listening on port 8080

events.js:72
throw er; // Unhandled 'error' event
^
Error: Cannot open /dev/

An nothing work.
i'am a really newbee in Node, mongo,...
Can you tell me where in can search to resolve this little error ?
Thank's a lot

Gabriel

events.js:72 Error Cannot open /dev/

Thanks for your awesome heimcontrol work!
I followed the getting started manual step by step (http://ni-c.github.io/heimcontrol.js/get-started.html) and can't wait to have it running.
But unfortunately on the last step I get errors (see the log below).
Reboot and so on doesn't help.
I'm not sure what the first message tells me. Where should I set that options?
How do I fix the /dev/ error?

pi@raspberrypi ~/heimcontrol.js $ node heimcontrol.js
========================================================================================
=  Please ensure that you set the default write concern for the database by setting    =
=   one of the options                                                                 =
=                                                                                      =
=     w: (value of > -1 or the string 'majority'), where < 1 means                     =
=        no write acknowledgement                                                       =
=     journal: true/false, wait for flush to journal before acknowledgement             =
=     fsync: true/false, wait for flush to file system before acknowledgement           =
=                                                                                      =
=  For backward compatibility safe is still supported and                              =
=   allows values of [true | false | {j:true} | {w:n, wtimeout:n} | {fsync:true}]      =
=   the default value is false which means the driver receives does not                =
=   return the information of the success/error of the insert/update/remove            =
=                                                                                      =
=   ex: new Db(new Server('localhost', 27017), {safe:false})                           =
=                                                                                      =
=   http://www.mongodb.org/display/DOCS/getLastError+Command                           =
=                                                                                      =
=  The default of no acknowledgement will change in the very near future                =
=                                                                                      =
=  This message will disappear when the default safe is set on the driver Db           =
========================================================================================
WARNING: Change secret string in config/development.json
   info  - socket.io started
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
heimcontrol.js listening on port 8080

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: Cannot open /dev/

Send Action via HTTP Push/Android Tasker

Longstory Short: Awesome Project! It works and can control outputs of my Arduino via the Phone (even from outside of my flat).

Question: Is there any possibility to send a HTTP request to Switch on a Port/RC-Power-Socket? Like the RC-Switch does? I'm not that familiar with coding, maybe I've missed something. Would be awesome, becuase I'd love to automate somehting like:
Entering my Wifi->Sending something to turn on the Stereo :)

My Arduino Uno dont work

Hi,
it take me days to install heimdroid.js on my rasparrypi. Finaly it works, BUT i cant switch an LED on or of if the LED is pluged into my Arduino . Using the gpio pins from Raspberrypi works great.

If I press the on/off switch for the LED in the browser the orange little led (rx) of my Arduino blink but nothing happend.

Please help because i love this projekt very much, thanks Dominikus
Is it nesessery to upload some code to the Arduino ?

Webcam kills raspberry pi sometimes

I have some problems with heimcontrol/raspberry and my webcam.

In heimcontrol I set my USB Logitech c250 webcam to work with streamer.
First I set no intervall, and my raspberry crashed immediately.
Then I tried with 50s, then 10s and 2s intervall.
It works ok, viewable with all my devices, but sometimes I run in a new crash again.
The webcam status LED is then on all the time.
Then the heimcontrol site is gone, the raspberry is completely frozen and I only can cut the power and boot again.
Sometimes before the crash I get errors like this (I can't see what happens when it crashes because it freezes the screen completely, no keyboard and mouse is working anymore):

{ [Error: Command failed: files / video: JPEG (JFIF) / audio: none
libv4l2: error setting pixformat: Device or resource busy
v4l2: ioctl(fildes = 3 "/dev/video0", request = VIDIOC_S_FMT, struct v4l2_format *data = { type = V4L2_BUF_TYPE_VIDEO_CAPTURE, fmt.pix = { width = 640, height = 360, pixelformat = V4L2_PIX_FMT_YUYV, field = V4L2_FIELD_NONE, bytesperline = 1280, sizeimage = 460800, colorspace = V4L2_COLORSPACE_SRGB } }) failed, Device or resource busy (16, EBUSY) because the usb video4linux character special device is in use by another process or by the system and this prevents the ioctl VIDIOC_S_FMT system call from operating
libv4l2: error setting pixformat: Device or resource busy
v4l2: ioctl(fildes = 3 "/dev/video0", request = VIDIOC_S_FMT, struct v4l2_format *data = { type = V4L2_BUF_TYPE_VIDEO_CAPTURE, fmt.pix = { width = 640, height = 360, pixelformat = V4L2_PIX_FMT_YUYV, field = V4L2_FIELD_NONE, bytesperline = 1280, sizeimage = 460800, colorspace = V4L2_COLORSPACE_SRGB } }) failed, Device or resource busy (16, EBUSY) because the usb video4linux character special device is in use by another process or by the system and this prevents the ioctl VIDIOC_S_FMT system call from operating
libv4l2: error setting pixformat: Device or resource busy
v4l2: ioctl(fildes = 3 "/dev/video0", request = VIDIOC_S_FMT, struct v4l2_format *data = { type = V4L2_BUF_TYPE_VIDEO_CAPTURE, fmt.pix = { width = 640, height = 360, pixelformat = V4L2_PIX_FMT_YUYV, field = V4L2_FIELD_NONE, bytesperline = 1280, sizeimage = 460800, colorspace = V4L2_COLORSPACE_SRGB } }) failed, Device or resource busy (16, EBUSY) because the usb video4linux character special device is in use by another process or by the system and this prevents the ioctl VIDIOC_S_FMT system call from operating
libv4l2: error setting pixformat: Device or resource busy
v4l2: ioctl(fildes = 3 "/dev/video0", request = VIDIOC_S_FMT, struct v4l2_format *data = { type = V4L2_BUF_TYPE_VIDEO_CAPTURE, fmt.pix = { width = 640, height = 360, pixelformat = V4L2_PIX_FMT_YUYV, field = V4L2_FIELD_NONE, bytesperline = 1280, sizeimage = 460800, colorspace = V4L2_COLORSPACE_SRGB } }) failed, Device or resource busy (16, EBUSY) because the usb video4linux character special device is in use by another process or by the system and this prevents the ioctl VIDIOC_S_FMT system call from operating
libv4l2: error setting pixformat: Device or resource busy
v4l2: ioctl(fildes = 3 "/dev/video0", request = VIDIOC_S_FMT, struct v4l2_format *data = { type = V4L2_BUF_TYPE_VIDEO_CAPTURE, fmt.pix = { width = 640, height = 360, pixelformat = V4L2_PIX_FMT_YUYV, field = V4L2_FIELD_NONE, bytesperline = 1280, sizeimage = 460800, colorspace = V4L2_COLORSPACE_SRGB } }) failed, Device or resource busy (16, EBUSY) because the usb video4linux character special device is in use by another process or by the system and this prevents the ioctl VIDIOC_S_FMT system call from operating
no way to get: 960x544 JPEG (JFIF)
movie writer initialisation failed
] killed: false, code: 1, signal: null }

Does anyone know the problem? Is it because of heimcontrol, or streamer, or my webcam?

Logitech C250 usb Webcam
Raspberry Pi Model B Rev2 512Mb with Raspbian

Arduino duino library

I know, the DHT sensors are not included yet in duino library, but in my situation i think i have problems with the communication with arduino board.

I have tryed with the original duino code on Arduino board and i have the same issue anyway.

I will put two example output(in the pictures below), maybe somebody can help me, now i have no more ideas.

  1. first : example sensor-throttled.js from duino examples, everything looks OK:

sensor-throttled_ok

  1. second: heimcontrol.js with debug enabled in plugins/duino/ - you can see the communication problem, it's not synchronized or something. The worst is when i get Null...

problem

I already have re installed the whole raspbian, and mongo, and node, everything, but no success.

Thank you in advance for your ideas.

Wake-on-lan settings not saved

I just installed using the getting started guide and i'm trying to setup some of my machines for WOL.

After typing them in, I hit save and was greeted by a setting saved msg.
Went to home and found it was empty.
Went back to settings, also empty.

My console shows:
POST /settings/wakeonlan 200 4153ms - 4.41kb
So the data is recieved, but not written to DB?

Also, this msg is in console when starting node heimcontrol.js:

========================================================================================
=  Please ensure that you set the default write concern for the database by setting    =
=   one of the options                                                                 =
=                                                                                      =
=     w: (value of > -1 or the string 'majority'), where < 1 means                     =
=        no write acknowlegement                                                       =
=     journal: true/false, wait for flush to journal before acknowlegement             =
=     fsync: true/false, wait for flush to file system before acknowlegement           =
=                                                                                      =
=  For backward compatibility safe is still supported and                              =
=   allows values of [true | false | {j:true} | {w:n, wtimeout:n} | {fsync:true}]      =
=   the default value is false which means the driver receives does not                =
=   return the information of the success/error of the insert/update/remove            =
=                                                                                      =
=   ex: new Db(new Server('localhost', 27017), {safe:false})                           =
=                                                                                      =
=   http://www.mongodb.org/display/DOCS/getLastError+Command                           =
=                                                                                      =
=  The default of no acknowlegement will change in the very near future                =
=                                                                                      =
=  This message will disappear when the default safe is set on the driver Db           =
========================================================================================

Any idea's?

how to close properly heimcontrol.js server?

hello,
i follow all the steps to install and the first time run nice! close the ssh windows and re run heimcontrol.js

/home/pi/heimcontrol.js/node_modules/mongodb/lib/mongodb/db.js:286
throw err;
^
ReferenceError: requirejs is not defined
at requireRecursive (/home/pi/heimcontrol.js/libs/PluginHelper.js:57:7)
at PluginHelper.getPluginList (/home/pi/heimcontrol.js/libs/PluginHelper.js:67:5)
at /home/pi/heimcontrol.js/heimcontrol.js:167:32
at /home/pi/heimcontrol.js/node_modules/mongodb/lib/mongodb/db.js:283:11
at process._tickCallback (node.js:415:13)

anyone know what happens?

if remove, reinstall heimcontrol.js... run nice.

could not find /opt/mongo/bin/mongod

i followed the installation tutorial and when I typed the command 'sudo service mongodb start' i got an error saying: 'could not find /opt/mongo/bin/mongod'.

pi@raspberrypi /etc/init.d $ sudo sevice mongodb start
could not find /opt/mongo/bin/mongod

I havy no idea what I did wrong

gpio-admin: not found and heimcontrol very slow

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

events.js:2817: Uncaught Error: Cannot open /dev/

I have been struggling for a week trying to figure out what went wrong. I had this running fine from outside my house and controlling an led on a breadboard. When I restarted my pi and attempted to run 'node heimcontrol.js', I am greeted with 'info - socket.io started' (expected), the two instances of 'events.js:2817: Uncaught Error: Cannot open /dev/' and no return of listening on port. I've checked and changed my permissions of /dev/ to 'drwxr-xr-x 12 pi root 3100 Sep 28 15:58 dev'. I know 777 isn't the best practice, but I was trying to see if that was the issue. I've tried to locate the events.js to dig deeper, but no luck. What should I check next? I've run out of ideas.

Thank you for putting this library together, I am really looking forward to seeing how much I can extend this through my house and backyard(chicken coop). I'm a front end dev learning node and mongo and this is an awesome project! (Apologies if this is not the correct place to post, just hoping to receive some clarity).

Edit 01: I pointed my Pi browser to 127.0.0.1:8080 and was greeted with a page 'Motion 3.2.12 Running [1] Threads' and a hyperlink 'All' which leads to settings. I am assuming that I created a video module in Heimcontrol and did not finish the setup since Motion did not detect my camera (RPi camera module).

Ubuntu and heimcontrol

Hey Willi,

I'm trying to get heimcontrol working with my Ubuntu setup. I followed your steps and the server (on localhost:8080) is working (I can access the websites). The problem is, that the connection to my Arduino is not established. In the terminal I get the following error:
info - socket.io started
heimcontrol.js listening on port 8080
events.js:2817: Uncaught Error: Cannot open /dev/
events.js:2817: Uncaught Error: Cannot open /dev/

I have an Arduino Nano v3

Thanks for any help :-)

Error handler - wrong formula given to Arduino

Hi,

I wanted to try a temperature sensor on the arduino with the following formula:

0.00335402+(0.0002439*ln((1023/x)-1))

When I hit SAVE, Heimcontrol freezes and throws me the following error:

undefined:1
0.00335402+(0.0002439*ln((1023/560)-1))
^
ReferenceError: ln is not defined
    at eval (eval at <anonymous> (/home/pi/heimcontrol.js/plugins/arduino/index.js:190:54), <anonymous>:1:1)
    at null.<anonymous> (/home/pi/heimcontrol.js/plugins/arduino/index.js:190:36)
    at EventEmitter.emit (events.js:98:17)
    at null.<anonymous> (/home/pi/heimcontrol.js/node_modules/duino/lib/sensor.js:35:12)
    at EventEmitter.emit (events.js:117:20)
    at SerialPort.<anonymous> (/home/pi/heimcontrol.js/node_modules/duino/lib/board.js:32:14)
    at SerialPort.EventEmitter.emit (events.js:95:17)
    at /home/pi/heimcontrol.js/node_modules/duino/node_modules/serialport/parsers.js:24:17
    at Array.forEach (native)
    at Object.parser (/home/pi/heimcontrol.js/node_modules/duino/node_modules/serialport/parsers.js:23:13)

How can I fix this error?
Is there a possibility to catch the error before it freezes Heimcontrol?

Heimcontroljs API

I want to connect to heimcontrol.js through an API, so I can make an iPhone/Android.

I got an authentication system working with an token key quite easily. I'm stuck however at sending requests with the token to the plugins with socket.io.

To me it seems like socket.io requires a cookie to send requests to the plugins. Do you have an idea how to work around this? So I can just use the token to send requests to the plugins?

I set up an experimental branch, here is my auth token implementation so far: JorisM@9edf819
Thanks

Serial comms

Has anyone made a plug in or some example code which just takes a button and sends out a command through the serialport..

I don't want to use an arduino but another processor and would love to use heim control to just send out my own strings out the port..

Heimcontrol Startup

Hi all,

How do i Start heimcontrol.js on startup or service? Without it crashing, because i tried it with a script but it gives me errors.

Sorry very noob

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.