Code Monkey home page Code Monkey logo

node-red-contrib-victron-modbus's People

Contributors

dirkjanfaber avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

node-red-contrib-victron-modbus's Issues

attributes.csv location

Is this meant to be run on VenusOS locally or can you copy the attributes.csv over to a location on an external Node-Red installation?

If it is only meant for running locally then a nice feature request would be to be able to upload the attributes.csv file on an external Node-Red installation.

Uint32's register not reporting the correct value on reading

Working on a Node-RED project with differents products (BBB, Venus, Cerbo and and Ekrano) trying to retrieve some register's value, I notice if the value is Uint32, the node do not report me it as it should.

Example : Register 3005 : com.victronenergy.tank_Remaining_d_m3_3005_uint32_10000_R
send me back :
: msg : Object
object
topic: "0df7a248e3493652"
messageId: "65d9c4e3ff4604ad95b6ebbf"
payload: 0
type: "uint32"
scalefactor: "10000"
enum: undefined
queueLengthByUnitId: object
unitId: 20
queueLength: 0
queueUnitId: 20
unitId: 20
modbusRequest: object
value: undefined
unitid: 20
fc: 3
address: 3005
quantity: 1
emptyMsgOnFail: undefined
keepMsgProperties: undefined
messageId: "65d9c4e3ff4604ad95b6ebbf"
responseBuffer: objec.....

image

But I still have 23liters or (0.023m3) in the tank !
image

Using standing modbus reader :

Fuel : msg : Object
object
topic: "Fuel"
payload: array[2]
0: 0
1: 232

responseBuffer: object
data: array[2]
buffer: buffer[4]
input: object
topic: "Fuel"
from: "Carburant"
payload: object
unitid: "20"
fc: 3
address: "3005"
quantity: "2"
messageId: "65d9c536ff4604ad95b6ec2f"
queueLengthByUnitId: object
queueUnitId: 20....

image

So It looks like the node has some register reading trouble.
I have the same troible with Date and Time register (830) reading and the Tank capacity (3001).

Bad *.csv error protection

I mixed up the csv file that I scp'd into my node-red directory. As soon as I would drop the node onto the palette, Node Red would crash with this error:

26 Nov 20:14:46 - [red] Uncaught Exception:
26 Nov 20:14:46 - [error] Error: Invalid Opening Quote: a quote is found on field 0 at line 1, value is "{"
    at Object.parse (/usr/src/node-red/node_modules/csv-parse/dist/cjs/index.cjs:791:21)
    at Parser._transform (/usr/src/node-red/node_modules/csv-parse/dist/cjs/index.cjs:1331:26)
    at Parser.Transform._read (internal/streams/transform.js:205:10)
    at Parser.Transform._write (internal/streams/transform.js:193:12)
    at writeOrBuffer (internal/streams/writable.js:358:12)
    at Parser.Writable.write (internal/streams/writable.js:303:10)
    at ReadStream.ondata (internal/streams/readable.js:731:22)
    at ReadStream.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)

I am just bringing it to your attention in case some error handling could be built in here rather than crashing Node Red. I will not make the same mistake!

attributes.csv in Node-RED as HomeAssistant Addon

Is it possible to run this node in Node-Red as HomeAssistant addon? I already tried everythink I could imagine.
The userDir for the addon is in my case /addon_configs/a0d7b954_nodered/
This is the directory mapped as /config in Node-Red. Even with the attributes.csv file present, the Dropdown does not show any data.
If I ssh into the Addon (docker container) I can see the attributes.csv in the userDir folder.

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.