Hi,
I can’t update to the newest version of the vrm-api.
I have version 0.2.13 installed, but in the tab install there is a version 0.3.11 available.
I can’t find a way to update to the new version.
See pics:
Thanks in advance..
What version is your GX running?
Firmware V3.67
It’s the same on beta. I have asked why.
Quite sure that you had the victron-vrm-api already installed before it was part of Venus. And Node-RED is finding the old one (under /data/home/nodered/.node-red/node_modules/victron-vrm-api), not the one that is shipped with Venus (installed in /usr/lib/node_modules/victron-vrm-api).
So removing the one that is installed under /data/home/nodered/.node-red/node_modules/ is what needs to be done. Ideally you can do that by pressing the remove button, but that probably isn’t there (reason being is that it is mentioned in the denyUpdateList in /usr/lib/node_modules/node-red/venus-settings.js).
So question is how to do this nicely and without leaving remaining references to the locally installed one. What I think will work is to create an exec node that does this for you: npm uninstall victron-vrm-api:
cd /data/home/nodered/.node-red/ && npm uninstall node-red-contrib-rate-avg
[
{
"id": "f384f13685cbc029",
"type": "exec",
"z": "de710832a415f877",
"command": "cd /data/home/nodered/.node-red/ && npm uninstall victron-vrm-api",
"addpay": "",
"append": "",
"useSpawn": "false",
"timer": "",
"winHide": false,
"oldrc": false,
"name": "",
"x": 510,
"y": 1720,
"wires": [
[
"29fea498baf89a42"
],
[
"29fea498baf89a42"
],
[]
]
},
{
"id": "8c9dbeeda00ec923",
"type": "inject",
"z": "de710832a415f877",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 140,
"y": 1720,
"wires": [
[
"f384f13685cbc029"
]
]
},
{
"id": "29fea498baf89a42",
"type": "debug",
"z": "de710832a415f877",
"name": "debug uninstall local victron-vrm-api",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 880,
"y": 1700,
"wires": []
}
]
And press the inject button once.
Ah, I see what is going on here. On 3.67 (the latest official release of Venus) we ship version 0.2.13 of the vrm-api node. If you want to use the latest one you need to switch to the candidate release feed (which ships with version 0.3.11).
The underlying cause for this is that the victron-vrm-api node is shipped on the firmware of the Venus device, which is installed on a read-only portion of the GX internal storage and therefor cannot be updated.
That solved the problem I was having with the api.
I couldn’t get Dynamic ESS stats, like energy price into node red. Now I can.
Thx!
I have the same story.
Venus OS 3.67 (the latest official release of Venus.
And also api 0.2.13. I can read data via the node-red api.
But I can’t write data. For example, if I want to shoot {“buyPriceFormula”:“(p+0.13)*1.21”} to the VRM…
I get a response that it was successful. But nothing has changed.
I follow your “manual” on Node-RED VRM API and Dynamic ESS - VictronEnergy
Could this also happen for the old version?
How can I switch to the candidate release feed (which ships with version 0.3.11) as you indicate?
Is that just the previous OS version?
Go into remote console →settings → general → firmware → online updates
put update feeds to Beta, search for updates en update the GX to the newest firmware.
Betas come with challenges, please be sure before changing and if you have issues be sure to mention you are on a non-ga version.