Closed jgantenberg closed 7 years ago
I updated the serialport dependency in v0.2.0 Could you check if it works for you now?
thanks, I will test soon, this evening hopefully. btw, is it much work to also send messages to cul stick? As far as I understood at the moment only incoming messages will be treated.
No, you can also send messages to cul. For raw messages you can use the write
method, for pre-defined commands (only fs20 implemented until now) there is also a method cmd
. Take a look at the readme :)
sorry for mixing things ... tried to install cul2mqtt and stumbled over failed dependency cul/serialport. So my question targeted cul2mqtt ...
Ah, ok, I see. You're right, cul2mqtt supports only receiving. But I would be happy to receive Pull Requests :-) Just updated cul2mqtt dependencies also.
Akentner did already some work on sending messages: https://github.com/akentner/cul2mqtt But I don't know if he is still engaged in this, until now he didn't send a Pull Request.
after updating my environment according to https://www.npmjs.com/package/serialport#raspberry-pi-linux I was able to install and run cul and cul2mqtt, although I didn't receive any messages yet ... so I will try to work on akentners fork and see whether I'm able to send messages. Thanks alot for your help
what are you trying to receive? cul2mqtt brings the cul in the "SlowRF" mode, this is only suitable for FS20/EM/HMS
And for intertechno although it is not interpreted. I think of coding it.
ok 👍
unfortunately I don't get serialport installed. I tried different scenarios and upgraded my node.js to 6.7 and npm to 3.10.3.
npm ls -g shows me the following
/usr/local/node/lib ├─┬ cul@0.2.1 │ └─┬ serialport@4.0.1 │ ├── bindings@1.2.1 │ ├─┬ commander@2.9.0 │ │ └── graceful-readlink@1.0.1 │ ├─┬ debug@2.2.0 │ │ └── ms@0.7.1 │ ├── es6-promise@3.3.1 │ ├── nan@2.4.0 │ ├─┬ node-pre-gyp@0.6.29 │ │ ├─┬ mkdirp@0.5.1 │ │ │ └── minimist@0.0.8 │
but if I want to start my own cul2mqtt via node index.js I alway get the following:
`module.js:457
throw err;
^
Error: Cannot find module 'cul'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.
Cheers
sorry, forget my post. I mangled my node installation....
when installing cul dependency the serialport lib will be translated. I get compile errors with serialport module 1.4.10: