node-omron-fins icon indicating copy to clipboard operation
node-omron-fins copied to clipboard

omron-fins use with node-red

Open Gerssi opened this issue 7 years ago • 12 comments

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?

Gerssi avatar Jan 17 '18 09:01 Gerssi

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://[email protected]/patrick--/node-omron-fins.git <- use this as NPM module in node-red

danibjor avatar Jan 17 '18 09:01 danibjor

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

ptrks avatar Jan 17 '18 11:01 ptrks

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

Gerssi avatar Jan 17 '18 12:01 Gerssi

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://[email protected]/patrick--/node-omron-fins.git'"

maybe any suggestions? Thank you

Gerssi avatar Jan 17 '18 14:01 Gerssi

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

danibjor avatar Jan 17 '18 21:01 danibjor

@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.

Gerssi avatar Mar 02 '18 08:03 Gerssi

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

combatkev avatar Mar 11 '18 23:03 combatkev

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 💃

anthrogan avatar Mar 26 '18 16:03 anthrogan

+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 avatar Oct 20 '18 13:10 Steve-Mcl

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.

Steve-Mcl avatar Apr 05 '20 21:04 Steve-Mcl

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

ptrks avatar Apr 05 '20 22:04 ptrks

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.

Steve-Mcl avatar Apr 05 '20 23:04 Steve-Mcl