ptrks / node-omron-fins

An implementation of the Omron FINS library for node js
Apache License 2.0
48 stars 39 forks source link

omron-fins use with node-red #10

Open Gerssi opened 6 years ago

Gerssi commented 6 years ago

I'm also not sure if this is the rigth place for my question... I'm a newbie with Raspberry pi and node red. Please can anyone help me using this wonderful library in node-red?

danibjor commented 6 years ago

Take a look at this article on how to use NPM modules in node-red.

http://jamesthom.as/blog/2016/01/04/npm-modules-in-node-red/

As there is no NPM module published (omron-fins returns no results), you can point it to the GitHub repo: git+https://git@github.com/patrick--/node-omron-fins.git <- use this as NPM module in node-red

ptrks commented 6 years ago

@danibjor I appreciate you answering his question so fast! @Gerssi if you have any problems getting the library to work just let me know.

Gerssi commented 6 years ago

Thanks so lot for your extremly fast answer. I try my best and will give a response.

Gerssi commented 6 years ago

Hello again, i try this entrys: grafik installing replays this error: "Error: Cannot find module '/tmp/d-118017-833-1349srr.xw9jp2e29/node_modules/git+https://git@github.com/patrick--/node-omron-fins.git'"

maybe any suggestions? Thank you

danibjor commented 6 years ago

Can you try and install the package globally? sudo npm install -g url-to-this-repo And then just type omron-fins as npm module name in node-red

Maybe we need to lure @patrick— to publish the project on https://www.npmjs.com

Gerssi commented 6 years ago

@danibjor , thank you for your help, i try to install the package globally but there are also errors. in the last month i try a lot methodes i read in internet whitout any success. Finally i give up, i can truely say it's not my core qualification. @patrick-- if you will have some time, please would you do this job for me to publish the project on NPM.

combatkev commented 6 years ago

Hello, I would also be very interested if you can get this running on Node Red. I have tried the steps above and am getting the same issues. Initially using node red on a synology box but now trying on a PI as I get better control over the install. I will keep plodding away as I think its something simple, but not very experienced at this, so google is my friend. If you have any advice please let me know. Thanks for all of your hard work thus far. Kev

anthrogan commented 6 years ago

You can download the package locally and npm install it from there.

so clone the package (or download as zip on unzip it) then:

npm install C:/path/to/node-omron-fins-master image

it will install it from there using the package.json file in the folder.

and BOOM! image omroncomms... Good luck getting normal data out of it though 💃

Steve-Mcl commented 6 years ago

+1 for a native node-red package

It would be awesome if you could package this up as a node-red-contrib node.

There is a guide here that could help... https://nodered.org/docs/creating-nodes/first-node Seems there isn't too much boiler plate to add.

Please help us achieve this and catch up to our Siemens and Allen Bradley cousins who have already got node-red ready nodes in the flow library (https://flows.nodered.org/?num_pages=1)

Steve-Mcl commented 4 years ago

Hi all, due to lack of response and necessity being the mother of all invention, I have implemented a node-red package node-red-contrib-omron-fins that uses a fork of this code.

For now, I chose to use my fork as I needed access to extended E banks (and fix some other issues & other features necessary for integrating into node-red)

It unfortunately looks like this package may have been abandoned? @patrick-- please let me know if you are willing to collaborate (my fork is here ).

Thanks.

ptrks commented 4 years ago

Hi @Steve-Mcl , apologies for the slow response. I am no longer in a position that has access to Omron PLCs, so I haven't been super active in managing this library. With that being said, I don't want progress to be stifled because of my inactivity, so I think a fork is an appropriate alternative.

Thanks!

Patrick

Steve-Mcl commented 4 years ago

No worries and thank you for responding.

I will continue with fork - that way, if you ever pick this up again, we can easily collaborate.