Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 09 2015 19:31

    sweetpi on master

    Small fix (compare)

  • Mar 09 2015 19:09
    sweetpi closed #576
  • Mar 09 2015 19:09

    sweetpi on master

    Added gitter badge (compare)

  • Mar 09 2015 19:07
    gitter-badger opened #576
Abílio Costa
@abmantis
you create a device with a already existing protocol
except if your device is not supported by any of the already existing protocols, ofc :D
bspans
@bspans
I was under the impression it wasn't supported and you needed the 'raw' type. What works for me now when sending from pimatic is like this
{
  "id": "test-raw",
  "name": "Stalamp",
  "class": "HomeduinoRFSwitch",
  "protocols": [
    {
      "name": "rawswitch",
      "options": {
        "pulseCount": 58,
        "pulseLengths": [
          222,
          438,
          952,
          5028
        ],
        "pulsesOn": "0202210202210202022102022102212102020221020202210221210203",
        "pulsesOff": "0202210202210202212121022121020221212121020202022121210203"
      },
      "send": true,
      "receive": false
    }
  ]
And I took the pluselenght info from the web, not my own remote since I wasn't able to get this information.
Abílio Costa
@abmantis
I've never used the rawswitch, but I think you can take the values from the "received: ..." line
the pulse lengths are on the array at the start : [ 200, 312, 1340, 2636, 10432 ]
bspans
@bspans
hmm, after the update (with the same config.json) the receiver isn't working anymore :(
Abílio Costa
@abmantis
any errors?
bspans
@bspans
hmm nope. Nothing again :( just like it was when the receiver was broken.
Abílio Costa
@abmantis
is the correct pin specified on the config?
bspans
@bspans
Well I think yes, since it's the same config.json that was used earlier.
Abílio Costa
@abmantis
try to check if you can receive data with something simpler than pimatic...
bspans
@bspans
like a connected led on the data and vcc ?
Abílio Costa
@abmantis
I was talking about some binary or script
that simply outputs the values from the receiver
there are some on the web
bspans
@bspans
pilight?
Abílio Costa
@abmantis
if you already have it instlled, yeah
bspans
@bspans
No, I'll look on google, to see what I can find to test the arduino is receiving
Abílio Costa
@abmantis
oh you have it connected to the arduino
bspans
@bspans
Yep.
using the plugin homeduino,
Abílio Costa
@abmantis
yeah
can you send data?
bspans
@bspans
yes
And before the update I was able to receive.
Abílio Costa
@abmantis
a few months ago there was some issues on pimatic that wouldn't show the debug output
not sure if that has been fixed yet
bspans
@bspans
hmm. So i'm better off using the .8 version :)
Abílio Costa
@abmantis
well, 0.9 works very well, except for that :D
if you are okay with messing with coffeescript, you can change the plugin and make it print info-type messages
bspans
@bspans
No I think I'll revert back to the previous version...
bspans
@bspans
hmm it works again :S don't know what happened, other than I've updated node-js
debug [pimatic-homeduino]: doorbell1: { id: 4053, unit: 1399, state: true }
14:47:55debug [pimatic-homeduino]: led4: { id: 21505, command: 'code:00010101' }
14:47:55debug [pimatic-homeduino]: led3: { id: 21505, command: 'magenta' }
14:47:55debug [pimatic-homeduino]: led2: { id: 21505, command: 'code:00010101' }
14:47:55debug [pimatic-homeduino]: led1: { id: 21505, command: 'code:00010101' }
14:47:55debug [pimatic-homeduino]: contact3: { id: 704494, contact: false }
14:47:55debug [pimatic-homeduino]: contact2: { id: 704494, contact: false }
14:47:55debug [pimatic-homeduino]: pir6: { id: 2621994, presence: true }
14:47:55debug [pimatic-homeduino]: pir1: { unit: 3, id: 26, presence: true }
14:47:55debug [pimatic-homeduino]: switch28: { id: 13421226, unit: 22102, command: undefined }
14:47:55debug [pimatic-homeduino]: switch27: { channel: 'D', unit: '0001011', state: false }
14:47:55debug [pimatic-homeduino]: switch22: { id: 704494, command: undefined }
14:47:55debug [pimatic-homeduino]: switch16: { id: 'D', unit: 1, state: false }
14:47:55debug [pimatic-homeduino]: switch15: { id: 344081, unit: 3, state: false, all: false }
14:47:55debug [pimatic-homeduino]: switch14: { id: 344081, unit: 2, all: true, state: true }
14:47:55debug [pimatic-homeduino]: switch7: { unit: 4, id: 7, state: false }
14:47:55debug [pimatic-homeduino]: switch5: { id: 704494, unit: 0, all: true, state: false }
14:47:55debug [pimatic-homeduino]: switch4: { unit: 3, id: 26, state: true }
14:47:55debug [pimatic-homeduino]: switch3: { houseCode: 3, unitCode: 26, state: false }
14:47:55debug [pimatic-homeduino]: switch2: { houseCode: 3, unitCode: 26, state: true }
14:47:55debug [pimatic-homeduino]: received: [ 272, 384, 1008, 9988 ] 02210221022102020202020202020221020202210221022103
14:47:55debug [pimatic-homeduino]: data: "RF receive 272 1008 384 9988 0 0 0 0 01120112011201010101010101010112010101120112011203"
and pushing the same button again I get
2016-10-02 14:49:39debug [pimatic-homeduino]: doorbell1: { id: 4053, unit: 1399, state: true }
14:49:39debug [pimatic-homeduino]: led4: { id: 21505, command: 'code:00010101' }
14:49:39debug [pimatic-homeduino]: led3: { id: 21505, command: 'magenta' }
14:49:39debug [pimatic-homeduino]: led2: { id: 21505, command: 'code:00010101' }
14:49:39debug [pimatic-homeduino]: led1: { id: 21505, command: 'code:00010101' }
14:49:39debug [pimatic-homeduino]: contact3: { id: 704494, contact: false }
14:49:39debug [pimatic-homeduino]: contact2: { id: 704494, contact: false }
14:49:39debug [pimatic-homeduino]: pir6: { id: 2621994, presence: true }
14:49:39debug [pimatic-homeduino]: pir1: { unit: 3, id: 26, presence: true }
14:49:39debug [pimatic-homeduino]: switch28: { id: 13421226, unit: 22102, command: undefined }
14:49:39debug [pimatic-homeduino]: switch27: { channel: 'D', unit: '0001011', state: false }
14:49:39debug [pimatic-homeduino]: switch22: { id: 704494, command: undefined }
14:49:39debug [pimatic-homeduino]: switch16: { id: 'D', unit: 1, state: false }
14:49:39debug [pimatic-homeduino]: switch15: { id: 344081, unit: 3, state: false, all: false }
14:49:39debug [pimatic-homeduino]: switch14: { id: 344081, unit: 2, all: true, state: true }
14:49:39debug [pimatic-homeduino]: switch7: { unit: 4, id: 7, state: false }
14:49:39debug [pimatic-homeduino]: switch5: { id: 704494, unit: 0, all: true, state: false }
14:49:39debug [pimatic-homeduino]: switch4: { unit: 3, id: 26, state: true }
14:49:39debug [pimatic-homeduino]: switch3: { houseCode: 3, unitCode: 26, state: false }
14:49:39debug [pimatic-homeduino]: switch2: { houseCode: 3, unitCode: 26, state: true }
14:49:39debug [pimatic-homeduino]: received: [ 268, 388, 1008, 9988 ] 02210221022102020202020202020221020202210221022103
14:49:39debug [pimatic-homeduino]: data: "RF receive 268 1008 388 9988 0 0 0 0 01120112011201010101010101010112010101120112011203"
seems that this 02210221022102020202020202020221020202210221022103 stays the same
Oitzu
@Oitzu
well it seems all stays the same ^^
is there a corresponding switch protocol to your remote?
moein rahimi
@moeinrahimi
hi when i start pimatic.js then what url shoud i open in browser ?
Oitzu
@Oitzu
http://<raspberry-IP>
beikeland
@beikeland
if you have defined another listen port than the default you also need to do http://<raspberry-IP>:ListenPort
moein rahimi
@moeinrahimi
thanks guys
moein rahimi
@moeinrahimi
is there any tutorial on how control a lamp using pimatic ?
Jimmy Henderickx
@StryKaizer
trying to install pimatic (vanilla raspian lite on pi B), following the installation steps, and installation hangs on this
19:26:48.940 [pimatic, ppm] ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3090100/sqlite3.c
19:26:51.077 [pimatic, ppm] TOUCH Release/obj.target/deps/action_before_build.stamp
19:26:51.172 [pimatic, ppm] CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3090100/sqlite3.o
Thats the last output I get when running pimatic.js start
web service is not accessible (also checked if port 80 was used with netstat, but it does not)
lets give 0.8 a try, maybe that'll work
Jimmy Henderickx
@StryKaizer
Turned out is was still compiling, waiting for 30 minutes fixxed the issue (0.9). Running top showed cc1 process still running while waiting
Maybe you could specify in documentation that "a while" can be much longer then a few minutes, depending on the hardware used. But I'm happy it works now ;)
Tim van de Vathorst
@Timvdv
Anyone here with experience with the 'pimatic-plugin-commons' module?