pimatic / pimatic-homeduino

Pimatic plugin for using 433mhz devices and sensors with a connected Arduino with homeduino sketch
https://pimatic.org/
GNU General Public License v2.0
37 stars 29 forks source link

Raspberry Pi 2 Not supported with GPIO filter #26

Closed sweebee closed 9 years ago

sweebee commented 9 years ago

Tested the Raspberry P 2 today and i got this error:

[pimatic-homeduino] debug: data: "wiringX: hardware not supported"

sweetpi commented 9 years ago

@sweebee I've updated the vhduino binary with the new wiringX version. Could you test if it is working?

sweebee commented 9 years ago

Updating...

Updated pimatic-homeduino in pimatic but now pimatic won't start:

Pidfile exists, but process is dead.

21:25:20.333 2015-02-11 Wednesday
21:25:24.956 [pimatic] info: Starting pimatic version 0.8.43
21:25:26.978 [pimatic] info: loading plugin: "pimatic-homeduino" (0.8.38)
coffee-cache: compiling coffee-script file "homeduino.coffee"...Done
coffee-cache: compiling coffee-script file "homeduino-config-schema.coffee"...Done
21:25:31.011 [pimatic] info: loading plugin: "pimatic-links" (0.8.5)
21:25:31.115 [pimatic] info: loading plugin: "pimatic-cron" (0.8.5)
21:25:31.895 [pimatic] info: loading plugin: "pimatic-mobile-frontend" (0.8.42)
21:25:33.605 [pimatic] info: loading plugin: "pimatic-sunrise" (0.8.0)
21:26:45.755 2015-02-11 Wednesday
21:26:50.244 [pimatic] info: Starting pimatic version 0.8.43
21:26:52.447 [pimatic] info: loading plugin: "pimatic-homeduino" (0.8.38)
coffee-cache: compiling coffee-script file "homeduino.coffee"...Done
21:26:56.461 [pimatic] info: loading plugin: "pimatic-links" (0.8.5)
21:26:56.579 [pimatic] info: loading plugin: "pimatic-cron" (0.8.5)
21:26:57.467 [pimatic] info: loading plugin: "pimatic-mobile-frontend" (0.8.42)
21:26:59.039 [pimatic] info: loading plugin: "pimatic-sunrise" (0.8.0)
21:26:59.159 [pimatic] info: loading plugin: "pimatic-pushbullet" (0.8.4)
21:27:57.862 2015-02-11 Wednesday
21:28:02.173 [pimatic] info: Starting pimatic version 0.8.43
21:28:04.140 [pimatic] info: loading plugin: "pimatic-homeduino" (0.8.38)
21:28:04.811 [pimatic] info: loading plugin: "pimatic-links" (0.8.5)
21:28:04.916 [pimatic] info: loading plugin: "pimatic-cron" (0.8.5)
21:28:05.826 [pimatic] info: loading plugin: "pimatic-mobile-frontend" (0.8.42)
21:28:07.714 [pimatic] info: loading plugin: "pimatic-sunrise" (0.8.0)
21:28:07.791 [pimatic] info: loading plugin: "pimatic-pushbullet" (0.8.4)
21:28:09.312 [pimatic] info: loading plugin: "pimatic-shell-execute" (0.8.6)
21:28:57.276 2015-02-11 Wednesday
21:29:02.043 [pimatic] info: Starting pimatic version 0.8.43
21:29:03.942 [pimatic] info: loading plugin: "pimatic-homeduino" (0.8.38)
21:29:04.553 [pimatic] info: loading plugin: "pimatic-links" (0.8.5)
21:29:04.663 [pimatic] info: loading plugin: "pimatic-cron" (0.8.5)
21:29:05.576 [pimatic] info: loading plugin: "pimatic-mobile-frontend" (0.8.42)
21:29:07.451 [pimatic] info: loading plugin: "pimatic-sunrise" (0.8.0)
21:29:07.526 [pimatic] info: loading plugin: "pimatic-pushbullet" (0.8.4)
21:29:09.090 [pimatic] info: loading plugin: "pimatic-shell-execute" (0.8.6)
21:29:34.498 2015-02-11 Wednesday
21:29:39.202 [pimatic] info: Starting pimatic version 0.8.43
21:29:41.367 [pimatic] info: loading plugin: "pimatic-homeduino" (0.8.38)
21:29:41.951 [pimatic] info: loading plugin: "pimatic-links" (0.8.5)
21:29:42.048 [pimatic] info: loading plugin: "pimatic-cron" (0.8.5)
21:29:42.756 [pimatic] info: loading plugin: "pimatic-mobile-frontend" (0.8.42)
21:29:44.360 [pimatic] info: loading plugin: "pimatic-sunrise" (0.8.0)
21:29:44.446 [pimatic] info: loading plugin: "pimatic-pushbullet" (0.8.4)
21:29:46.330 [pimatic] info: loading plugin: "pimatic-shell-execute" (0.8.6)

Just stops every time.

sweetpi commented 9 years ago

do you get an error message if you start it not in daemon mode? (just sudo ./node_modules/pimatic/pimatic.js)

sweebee commented 9 years ago
21:40:14.093 2015-02-11 Wednesday
21:40:19.047 [pimatic] Starting pimatic version 0.8.43
21:40:21.330 [pimatic] loading plugin: "pimatic-homeduino" (0.8.38)
21:40:22.019 [pimatic] loading plugin: "pimatic-links" (0.8.5)
21:40:22.123 [pimatic] loading plugin: "pimatic-cron" (0.8.5)
21:40:23.004 [pimatic] loading plugin: "pimatic-mobile-frontend" (0.8.42)
21:40:24.800 [pimatic] loading plugin: "pimatic-sunrise" (0.8.0)
21:40:24.871 [pimatic] loading plugin: "pimatic-pushbullet" (0.8.4)
21:40:26.523 [pimatic] loading plugin: "pimatic-shell-execute" (0.8.6)
21:40:26.657 [pimatic-cron] the time is: Wed Feb 11 2015 21:40:26 GMT+0100 (CET)
21:40:26.671 [pimatic-sunrise] Your location is set to lat: 52.302646, long: 6.841062
21:40:26.675 [pimatic-pushbullet] apikey= ...
21:40:26.857 [pimatic] new device "Nachtlamp Wiebe"...
21:40:26.913 [pimatic] new device "Zithoek"...
21:40:26.974 [pimatic] new device "Deurbel ontvanger"...
21:40:27.015 [pimatic] new device "Automatische modus"...
21:40:27.066 [pimatic] new device "Alarm"...
21:40:27.111 [pimatic] new device "Bank"...
21:40:27.154 [pimatic] new device "Wandkast"...
21:40:27.201 [pimatic] new device "Plafond lamp"...
21:40:27.247 [pimatic] new device "Woonkamer"...
21:40:27.294 [pimatic] new device "Bewegingsmelder hal"...
21:40:27.395 [pimatic] new device "Deurbel"...
Error: spawn ENOENT
    at errnoException (child_process.js:980:11)
    at Process.ChildProcess._handle.onexit (child_process.js:771:34)
sweetpi commented 9 years ago

What does

ls -la ./node_modules/pimatic-homeduino/node_modules/homeduino/bin

say?

sweebee commented 9 years ago
total 64
drwxr-xr-x 1 root root    14 Feb 11 21:06 .
drwxrwsrwx 1 root root   174 Feb 11 21:24 ..
-rwxr-xr-x 1 root root 62180 Feb 11 21:06 vhduino

I hope you can quickly fix this, can't turn my lights off now :P

sweetpi commented 9 years ago

@sweebee let's chat in the forum

you can always install the previous version with npm install pimatic-homeduino@0.8.37

sweetpi commented 9 years ago

I released pimatic-homeduino v0.8.39 which includes the old version of homeduino, so it should be working again.

bjornhij commented 9 years ago

I managed to get it working again by compiling again with the latest version of wiringX. I can send you a tar (or zip) of the working sourcecode if this helps?

bjornhij commented 9 years ago

I've created a pull request:

https://github.com/pimatic/virtualhomeduino/pull/1

Yves911 commented 9 years ago

Can we update the title of this issue from "Raspberry Pi 2 Not supported" to "Raspberry Pi 2 not support homeduino using GPIO" I have a raspberry 2 with homeduino and an arduino it works 100% fine.

sweebee commented 9 years ago

Changed the title. i'm using a arduino now with my pi2.

sweetpi commented 9 years ago

It also should work with the newes version of the plugin. So closes, please reopen if there are any issues with it.

bjornhij commented 9 years ago

@sweetpi the version of the binary in homeduinojs is not the same as the one I compiled yesterday and does not work (my version is 117.175 kb, the one in homeduinojs is 107.355 kb). I've created a pull request with the correct binary.

sweetpi commented 9 years ago

merged!

CurlyMoo commented 9 years ago

It would ofc be only a matter of time before pimatic would adopt my wiringX originally developed for pilight :wink:

koffienl commented 9 years ago

Just like Pilight adopted the idea of rules? ;)

sweebee commented 9 years ago

And the way the config looks/works? :P

CurlyMoo commented 9 years ago

Just like Pilight adopted the idea of rules

Never knew pimatic invented the idea of rules...

And the way the config looks/works?

That was invented by @sweetpi and I. Not by either of us individual.


Let's hope that wiringX get's adopted by more OSS projects. That would benefit us all.

sweetpi commented 9 years ago

wiringX is great and its even greater that it's released as a standalone lib. So big thanks @CurlyMoo for creating and managing it.

As I always said, I think pilight is a great solution and its nice that we can share ideas and experience :+1: We have a different focus on a lot of thinks and therefore its good that both solutions exists and user can choose what's the best for there needs.

CurlyMoo commented 9 years ago

I totally agree. Glad we can keep it this way. I want to wish the same to our communities!

Also, please invite users of pimatic to create new wiringX modules, because it would benefit the OSS community greatly.

Yves911 commented 9 years ago

I started with pilight and received good help from @CurlyMoo to develop the TFA protocol into pilight. I switched to pimatic because it's more what i am looking for. Since more than 1 year i benefited of good advises and help from @sweetpi @CurlyMoo and the both communities. Keep it up guys !