Giter Club home page Giter Club logo

pimatic-node-red's People

Contributors

circuitdb avatar joshendriksrhm avatar mwittig avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pimatic-node-red's Issues

Error during starting

Hi again

I see this error when starting

29 Jun 16:09:04 - [warn] [XML] Error: Cannot find module './_assignValue'
29 Jun 16:09:04 - [warn] ------------------------------------------------------
29 Jun 16:09:04 - [info] User directory : /home/pi/pimatic-app/node_modules/pimatic-node-red/../../

Is it something to worry about?

can't install addons

Hi,

i tried to install node-red-dashboard, but this failed multiple times:

Error: Command failed: npm install --production node-red-dashboard
npm WARN deprecated [email protected]: Just use Array.isArray directly
npm ERR! tar.unpack untar error /root/.npm/component-emitter/1.2.1/package.tgz
npm ERR! tar.unpack untar error /root/.npm/debug/2.6.7/package.tgz
npm ERR! tar.unpack untar error /root/.npm/ms/2.0.0/package.tgz
npm ERR! Linux 4.4.38-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production" "node-red-dashboard"
npm ERR! node v4.8.3
npm ERR! npm  v2.15.11
npm ERR! path /home/pi/pimatic/node_modules/node-red-dashboard/node_modules/serve-static/node_modules/send/node_modules/debug/src/debug.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall utime

npm ERR! enoent ENOENT: no such file or directory, utime '/home/pi/pimatic/node_modules/node-red-dashboard/node_modules/serve-static/node_modules/send/node_modules/debug/src/debug.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not...

How can plugins be installed on pimatic-node-red?

Set variables to pimatic

Hello,

Is it possible to add support to set variables from node red to pimatic? Or is that possible in a way already?

thanks

authentication support

Hi,

it would be nice if you can add authentication to the node-red ui. Maybe it's possible to use the pimatic users directly for that.

log messages available in messages section

How can I see the messages I want to display with the node.log function, in pimatic?
They are in the log file but don't appear in the messages section. There is no pimatic-node-red selection available in the drop down box

This is what the log file looks like:
31 Dec 10:31:37 - [info] [function:Light states] hal: Timeout, lights off

Update node-red

Current version in use by this module is 0.14.6 last available release is 0.16.3

Setting device out values doesn't work always

Hello,
I need your support again. I'm not sure if it is caused by node-red or the MySensors plugin but the last couple of days I have some issues with the device out node.

Sometimes (yes, not always) when setting a device out node to a value (with parameter), the value isn't set in the actual device. The device stays the same value on the front-end. This used to work fine before.

What can I do to provide some useful debug info?

Dashboard Link is missing a slash

When you click on the link in the node-red-dashboard plugin within Node-RED it tries to open /red/apiui - apparently, a slash is missing.

Actions for devices

Where can I find the allowed actions on devices?
turnOn and turnOff are known but how can I set the presence of a device for example? Is there a list available?

pimatic-node-red interferes with pimatic-johnny-five on restart via UI

pimatic-node-red interferes with pimatic-johnny-five. The problem is that the the embedded version of node-red contains rpi gpio nodes. These using RPi.GPIO which does not seem to orderly shutdown. This will cause an pimatic-johnny-five initializationerror if pimatic is restarted via pimatic-mobile-frontend. Work-around for the time being is to restart pimatic with the service wrapper.

Possible Solution: Implement a shutdown handler for node-red and implement shutdown as part of node-red-contrib-gpio

Update 1.0.2 does not install in pimatic

Updating node-red in pymatic gives the error
error [pimatic]: Error running "./node_modules/pimatic/ppm.js install [email protected] --unsafe-perm"

Removing the pimatic-node-red folder from the node_modules folder and restarting pimatic does not fix the problem.

Improve readability and creating flows

First of all thanks for this nice plugin! I’ve started to play with it and I think it could simplify and speed up some rules from pimatic. Would it be possible to have the variable name and a unique topic in each input block? That would improve readability and creating flows.

Second is how can I send parameters to a device? eg changeDimlevelTo needs a parameter to be included.

Configure port in pimatic config

As Chris requests below. Have the option to change the port in pimatic config

would it be possible to set the port in the settings of the plugins?
i always can’t start pimatic after install/update pimatic-node-red, because i have to change the port manually…

Mit freundlichen Grüßen
Chris

Input for device node should support msg.payload as action parameter

Currently, the device node tries to read msg.parameter if the Parameter field is left empty. In my opinion, the node should (also) support to use msg.payload instead as otherwise a transformation must be added each time when the device is used as part of a flow chain with other nodes, e.g. dashboard UI items:

Suggested alternatives for fixture:

  • Use msg.payload instead of msg.parameter, i.e., replace msg.paramter with msg.payload in the code
    OR
  • Add an option, e.g. checkbox, to use msg.payload.

For the latter I have drafted an implementation which perhaps is not yet perfect as I am still a beginner with the node-red API. I can push it to a seperate branch if you wish to review. See: mwittig@e05701b

image

Injecting a message in variable in node

When injecting a message in a variable in node, all info from the original message gets lost on the output. Would it be possible to maintain this info in the output message?

Assertion error

Hi,
I get an assertion error when setting a dummy presence device to false. When setting it again to false I don't get the error.
The error is
"AssertionError: state is 'event' or state is true or state is false"

Cannot find module 'i18next-client'

Hi,

after installing pimatic-node-red the webserver under <pimatic-ip>:8000/red is not working and i get this error message: Cannot find module 'i18next-client'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.