npm installed packages do not show up in Manage Palette > Install

844 views
Skip to first unread message

Andrej Falout

unread,
Jul 21, 2017, 4:26:29 AM7/21/17
to Node-RED
Hi all,

I have two nodes that I installed with npm:

npm install -g mmcontrol
npm install -g flick-electric-api

Sources:

https://github.com/lennyby93/node-mmcontrol
https://github.com/madleech/FlickElectricApi

... that do not show in the Node-red Manage Palette > Install

running node-red -v does not show any issues

21 Jul 20:34:13 - [info]

Welcome to Node-RED
===================

21 Jul 20:34:13 - [info] Node-RED version: v0.17.4
21 Jul 20:34:13 - [info] Node.js  version: v6.11.1
21 Jul 20:34:13 - [info] Linux 4.1.30.x86_64.1 x64 LE
21 Jul 20:34:14 - [info] Loading palette nodes
21 Jul 20:34:18 - [info] Settings file  : /home/nodereduser/.node-red/settings.js
21 Jul 20:34:18 - [info] User directory : /home/nodereduser/.node-red
21 Jul 20:34:18 - [info] Flows file     : /home/nodereduser/.node-red/flows_naschc.json
21 Jul 20:34:18 - [info] Creating new flow file
21 Jul 20:34:18 - [info] Starting flows
21 Jul 20:34:18 - [info] Started flows
21 Jul 20:34:18 - [info] Server now running at http://127.0.0.1:1880/


I installed pushbullet using same procedure, and it shows in Manage Palette without any issues.

Being a complete beginner in both npm packaging and node-red, I dont really know where to find what exactly the packages need to look like. Tried to replicate some alternative installation methods I found in this group (such as "npm install /tmp/my-node") but nothing worked.

Is there a way to debug why node-red "see" some npm installed packages, but not others?

Any suggestion very much appreciated.

Cheers,
Andrej



Nick O'Leary

unread,
Jul 21, 2017, 4:28:26 AM7/21/17
to Node-RED Mailing List
Hi,

the palette manager in Node-RED only knows about npm modules that contain Node-RED nodes. These are the ones that are indexed on https://flows.nodered.org. It is not a generic npm install tool.

Nick

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/d56ee0dc-fbed-4e78-93b3-e12425c47173%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrej Falout

unread,
Jul 21, 2017, 4:43:03 AM7/21/17
to Node-RED
Oh-uh... thanks Nick!

Maybe someone should mention that fact in Node-red documentation... explicitly.

So node-red has special rules for npr packages? Where can I find these rules?

And can anyone possibly take a look at these GIT repositories to see what is missing?

https://github.com/lennyby93/node-mmcontrol
https://github.com/madleech/FlickElectricApi

My intention is to create a simple workflow that would control my heat pump/aircon (node-mmcontrol) according to the current electricity price (FlickElectricApi)

Much appreciated!

Cheers,
Andrej
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.

Nick O'Leary

unread,
Jul 21, 2017, 4:47:57 AM7/21/17
to Node-RED Mailing List
Hi Andrej,


The modules you've linked to are general node.js modules.

You'd need to create Node-RED nodes that wrap them: https://nodered.org/docs/creating-nodes/


Nick


To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.

To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.

Andrej Falout

unread,
Jul 21, 2017, 11:23:23 PM7/21/17
to Node-RED
Thanks Nick.

I wonder if you are aware of some Node-RED nodes that are comparable in function, that I can use as a template / starting point?

- First one is a simple web service that takes username/password as an input, and returns current cost of electricity

- Second one is a device control that takes username/password, and sets carious functions of the device (power state, operation mode, speed of fans, temperature etc), and can read current states of device (power mode, standby mode, operation mode, fan speed, room temperature and target temperature)

Is anyone aware of similar working nodes?

Alternatively - is there a way to invoke general node.js modules from Node-RED?


Thanks,
Andrej
Reply all
Reply to author
Forward
0 new messages