Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
Hi Guest this is an announcement for guests !!!

Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
Shunt Victron Energy BMV 700
#2
Voici le flow (le code informatique) au format JSON pour Nodered si vous avez l'envie de regarder comment c'est fait

   

Code :
[
    {
        "id": "044397eebe1dc2a8",
        "type": "tab",
        "label": "Victron BMV-700",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "8412d2fa475d1595",
        "type": "group",
        "z": "044397eebe1dc2a8",
        "name": "Victron BMV 700 avec Shunt 400 Ampères",
        "style": {
            "stroke": "#ff0000",
            "label": true,
            "color": "#ff3f3f"
        },
        "nodes": [
            "32eb4faf65534af1",
            "a88317a0cdcb2bdf",
            "32b0e1c721cb183f",
            "eff39b78b4d99b67",
            "a559c315b19d96f5",
            "56854b5b16ec224f",
            "780f62a6b94113b2",
            "0ad8152f1fc13b8c",
            "42e72c6953690b18",
            "88c7f4fa05e2f6ec",
            "7b259061e942f7c5",
            "57225073ed2a9bb1",
            "0da0ba26253247d7"
        ],
        "x": 14,
        "y": 59,
        "w": 1072,
        "h": 202
    },
    {
        "id": "32eb4faf65534af1",
        "type": "serial in",
        "z": "044397eebe1dc2a8",
        "g": "8412d2fa475d1595",
        "name": "Victron BMV-700",
        "serial": "04d53f2a241023ea",
        "x": 120,
        "y": 120,
        "wires": [
            [
                "780f62a6b94113b2"
            ]
        ]
    },
    {
        "id": "a88317a0cdcb2bdf",
        "type": "debug",
        "z": "044397eebe1dc2a8",
        "g": "8412d2fa475d1595",
        "name": "debug 59",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 300,
        "y": 160,
        "wires": []
    },
    {
        "id": "32b0e1c721cb183f",
        "type": "switch",
        "z": "044397eebe1dc2a8",
        "g": "8412d2fa475d1595",
        "name": "",
        "property": "topic",
        "propertyType": "msg",
        "rules": [
            {
                "t": "cont",
                "v": "V",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "I",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "P",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "SOC",
                "vt": "str"
            }
        ],
        "checkall": "false",
        "repair": false,
        "outputs": 4,
        "x": 630,
        "y": 120,
        "wires": [
            [
                "eff39b78b4d99b67"
            ],
            [
                "a559c315b19d96f5"
            ],
            [
                "56854b5b16ec224f"
            ],
            [
                "0ad8152f1fc13b8c"
            ]
        ]
    },
    {
        "id": "eff39b78b4d99b67",
        "type": "function",
        "z": "044397eebe1dc2a8",
        "g": "8412d2fa475d1595",
        "name": "Volt",
        "func": "msg.payload = msg.payload /1000;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 810,
        "y": 100,
        "wires": [
            [
                "88c7f4fa05e2f6ec"
            ]
        ]
    },
    {
        "id": "a559c315b19d96f5",
        "type": "function",
        "z": "044397eebe1dc2a8",
        "g": "8412d2fa475d1595",
        "name": "Intensité",
        "func": "msg.payload = msg.payload /1000;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 820,
        "y": 140,
        "wires": [
            [
                "7b259061e942f7c5"
            ]
        ]
    },
    {
        "id": "56854b5b16ec224f",
        "type": "function",
        "z": "044397eebe1dc2a8",
        "g": "8412d2fa475d1595",
        "name": "Puissance",
        "func": "msg.payload = msg.payload /1;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 830,
        "y": 180,
        "wires": [
            [
                "57225073ed2a9bb1"
            ]
        ]
    },
    {
        "id": "780f62a6b94113b2",
        "type": "function",
        "z": "044397eebe1dc2a8",
        "g": "8412d2fa475d1595",
        "name": "Nettoyage",
        "func": "var values = msg.payload.trim().split('\\t');    // trim off the crlf first then split into parts   \nmsg.payload = values[1];  // replace payload with the reading we want\nmsg.topic = values[0];      // set the topic in case we need to tell them apart later\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 310,
        "y": 120,
        "wires": [
            [
                "a88317a0cdcb2bdf",
                "42e72c6953690b18"
            ]
        ]
    },
    {
        "id": "0ad8152f1fc13b8c",
        "type": "function",
        "z": "044397eebe1dc2a8",
        "g": "8412d2fa475d1595",
        "name": "SOC",
        "func": "msg.payload = msg.payload /10;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 810,
        "y": 220,
        "wires": [
            [
                "0da0ba26253247d7"
            ]
        ]
    },
    {
        "id": "42e72c6953690b18",
        "type": "switch",
        "z": "044397eebe1dc2a8",
        "g": "8412d2fa475d1595",
        "name": "",
        "property": "topic",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "PID",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "BMV",
                "vt": "str"
            },
            {
                "t": "else"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 3,
        "x": 490,
        "y": 120,
        "wires": [
            [],
            [],
            [
                "32b0e1c721cb183f"
            ]
        ]
    },
    {
        "id": "88c7f4fa05e2f6ec",
        "type": "ui_gauge",
        "z": "044397eebe1dc2a8",
        "g": "8412d2fa475d1595",
        "name": "",
        "group": "798f2e7ae84f944d",
        "order": 1,
        "width": 3,
        "height": 3,
        "gtype": "gage",
        "title": "Volts",
        "label": "[V]",
        "format": "{{value}}",
        "min": "45",
        "max": "59",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 990,
        "y": 100,
        "wires": []
    },
    {
        "id": "7b259061e942f7c5",
        "type": "ui_gauge",
        "z": "044397eebe1dc2a8",
        "g": "8412d2fa475d1595",
        "name": "",
        "group": "798f2e7ae84f944d",
        "order": 2,
        "width": 3,
        "height": 3,
        "gtype": "gage",
        "title": "Intensité",
        "label": "[A]",
        "format": "{{value}}",
        "min": "-100",
        "max": "100",
        "colors": [
            "#ff0000",
            "#ff8040",
            "#008000"
        ],
        "seg1": "0",
        "seg2": "",
        "className": "",
        "x": 1000,
        "y": 140,
        "wires": []
    },
    {
        "id": "57225073ed2a9bb1",
        "type": "ui_gauge",
        "z": "044397eebe1dc2a8",
        "g": "8412d2fa475d1595",
        "name": "",
        "group": "798f2e7ae84f944d",
        "order": 3,
        "width": 3,
        "height": 3,
        "gtype": "gage",
        "title": "Watts",
        "label": "[W]",
        "format": "{{value}}",
        "min": "-1000",
        "max": "1000",
        "colors": [
            "#ff0000",
            "#ff8040",
            "#008000"
        ],
        "seg1": "0",
        "seg2": "",
        "className": "",
        "x": 990,
        "y": 180,
        "wires": []
    },
    {
        "id": "0da0ba26253247d7",
        "type": "ui_gauge",
        "z": "044397eebe1dc2a8",
        "g": "8412d2fa475d1595",
        "name": "",
        "group": "798f2e7ae84f944d",
        "order": 4,
        "width": 3,
        "height": 3,
        "gtype": "gage",
        "title": "SOC",
        "label": "[%]",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#008000"
        ],
        "seg1": "20",
        "seg2": "80",
        "className": "",
        "x": 990,
        "y": 220,
        "wires": []
    },
    {
        "id": "04d53f2a241023ea",
        "type": "serial-port",
        "serialport": "/dev/tty-victron",
        "serialbaud": "19200",
        "databits": "8",
        "parity": "none",
        "stopbits": "1",
        "waitfor": "",
        "dtr": "none",
        "rts": "none",
        "cts": "none",
        "dsr": "none",
        "newline": "\\n",
        "bin": "false",
        "out": "char",
        "addchar": "",
        "responsetimeout": "10000"
    },
    {
        "id": "798f2e7ae84f944d",
        "type": "ui_group",
        "name": "BMV 700",
        "tab": "4e18bff874299c58",
        "order": 1,
        "disp": true,
        "width": 12,
        "collapse": false,
        "className": ""
    },
    {
        "id": "4e18bff874299c58",
        "type": "ui_tab",
        "name": "Victron",
        "icon": "dashboard",
        "order": 35,
        "disabled": false,
        "hidden": false
    }
]
Jean-Luc
Like Répondre


Messages dans ce sujet
Shunt Victron Energy BMV 700 - par jlm - 12-02-2023, 07:28 PM
RE: Shunt Victron Energy BMV 700 - par jlm - 12-02-2023, 10:48 PM
RE: Shunt Victron Energy BMV 700 - par jlm - 12-02-2023, 10:52 PM
RE: Shunt Victron Energy BMV 700 - par jlm - 13-02-2023, 12:39 PM

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)
[-]
discussions récentes
demarrage addon smartphoton
Bonjour NOLAK Merci beaucou...claude47 — 11:56 PM
demarrage addon smartphoton
Pour ceux qu'il le désire en a...NOLAK — 01:13 PM
Mise à la terre du neutre flo...
Bonjour Jean Luc , je suis nou...stephane perez — 12:59 PM
Mise à la terre du neutre flo...
IMPORTANT Pierre m'a ale...stephane perez — 11:42 AM
modification smartphon
## ? Version 1.4.5 ### ? Aj...Tapion — 12:40 PM
modification smartphon
## v1.4.3 ### ✨ Nouvelles f...Tapion — 02:41 PM
Mise à la terre du neutre flo...
b Bonjour, Merci de ton at...stephane perez — 11:34 AM
Voici une toute nouvelle vers...
Les difficultés que j'ai renco...claude47 — 06:56 PM
Voici une toute nouvelle vers...
Les difficultés que j'ai ren...Tapion — 06:23 PM
modification smartphon
## v1.4.2 ### ✨ Nouvelles f...Tapion — 06:18 PM
Voici une toute nouvelle vers...
Les difficultés que j'ai renco...claude47 — 03:00 PM

[-]
Rechercher








(Advanced Search)

[-]
Who's Online
There are currently 151 online users. [Complete List]
» 1 Member(s) | 150 Guest(s)
Avatar

[-]
goals
76.5% of the way to our goal of 10,000 posts!
Only 2,349 posts left to go!

[-]
Statistics
» Members: 969
» Latest member: Seraphinang
» Forum threads: 824
» Forum posts: 7,651

Full Statistics

[-]
Latest Threads
demarrage addon smartphoton
Last Post: claude47
Hier 11:56 PM
» Replies: 9
» Views: 484
Mise à la terre du neutre flottant en mo...
Last Post: stephane perez
01-03-2026 12:59 PM
» Replies: 72
» Views: 52573
modification smartphon
Last Post: Tapion
28-02-2026 12:40 PM
» Replies: 4
» Views: 196
Voici une toute nouvelle version de Smar...
Last Post: claude47
26-02-2026 06:56 PM
» Replies: 9
» Views: 452
Jkbms et wks circle
Last Post: Mic8925
25-02-2026 08:32 PM
» Replies: 10
» Views: 955
Création d'un petit point d'eau bas - De...
Last Post: Num3r1K7
24-02-2026 05:48 PM
» Replies: 1
» Views: 117
renault 5 avec v2l vers entrée onduleur
Last Post: Velkaro
20-02-2026 12:51 PM
» Replies: 6
» Views: 1481
Présentation
Last Post: Velkaro
20-02-2026 12:45 PM
» Replies: 0
» Views: 96
Creation automatisme
Last Post: Chassin
19-02-2026 08:56 PM
» Replies: 2
» Views: 217
Smartphoton ne démarre plus
Last Post: Merlin
19-02-2026 08:20 PM
» Replies: 4
» Views: 338

>