August 29, 20196 yr I really love the Victron suite of software. The VRM portal really sold me on going for Victron for my home. Not one to pass up the opportunity to fiddle with it I thought it would be nice to make a kind of "realtime" dashboard for display inside the house using an old phone/tablet. For me the requirements are: Show the information I am interested in seeing at a glance (kitchen tablet). Full screen optimised for landscape viewing. Less data use than the VNC animation but more realtime than VRM (when out and about on mobile data). Think of it as the Marine App https://github.com/victronenergy/venus-html5-app but for home use. I'm not a UI person so its not nearly as pretty as that but I'll improve it with time. I'll also add more information relevant for a home that makes sense for a dashboard type display. I'd thought I'd share it for anyone who wants to give a go. DISCLAIMER - I've put it together for MY system so your milage will vary. For instance the battery display shows nothing for lead acids right now. Only tested on Chrome. I know the Full Screen option will not necessarily work on other browsers. Getting Started: Go to http://housealarm.io/victron. Click "Configure" and enter you Venus IP address. With a bit of luck it will work. EDIT: Copy Right Infringement - It may be a bad idea to include the Victron badge. I'm more than happy to remove that. Edited August 29, 20196 yr by deapsquatter
August 29, 20196 yr 12 minutes ago, deapsquatter said: Getting Started: Go to http://housealarm.io/victron. Click "Configure" and enter you Venus IP address. With a bit of luck it will work. Uuuh, you really shouldn't put a Venus device on the internet completely unprotected. Especially with MQTT open 🙂 Really nice work though!
August 29, 20196 yr Author 2 minutes ago, plonkster said: Uuuh, you really shouldn't put a Venus device on the internet completely unprotected. Especially with MQTT open 🙂 Thanks - yes of course. This App doesn't assume or require any specific network setup - its just after an IP address. Mine is internal and only reachable via VPN 👍.
August 29, 20196 yr Just now, deapsquatter said: Thanks - yes of course. This App doesn't assume or require any specific network setup - its just after an IP address. Mine is internal and only reachable via VPN 👍. Aaah good. But then this is most likely not going to work when others go there and fill in "192.168..." 🙂 On that topic, whenever I pay by card I look at the screen of the terminal and 9 out of 10 times it is connecting to a private ip address, ie these things run on VPNs most of the time.
August 29, 20196 yr Author 6 minutes ago, plonkster said: Aaah good. But then this is most likely not going to work when others go there and fill in "192.168..." 🙂 Yes it will work 😎 Browser -> MQTT -> Venus (All over your own network). Which reminds me - you will need to have MQTT Turned On at the Venus for this to work. Edited August 29, 20196 yr by deapsquatter
August 29, 20196 yr 11 minutes ago, deapsquatter said: Yes it will work 😎 Browser -> MQTT -> Venus (All over your own network). Which reminds me - you will need to have MQTT Turned On at the Venus for this to work. Aaah, okay I get it. How do you get past the Same Origin Policy? Well this might be a dumb question, I recall vaguely that the way to do it is for the service to reply with the right headers upon a preflight request, so it is quite possible that it will "just work" (tm) 🙂 What would be neat is if you could build it into a venus device. You get technically just copy it to /var/www/venus/ and hit it directly on the venus device after that.
August 29, 20196 yr Author 1 minute ago, plonkster said: Aaah, okay I get it. How do you get past the Same Origin Policy? Well this might be a dumb question, I recall vaguely that the way to do it is for the service to reply with the right headers upon a preflight request, so it is quite possible that it will "just work" (tm) 🙂 What would be neat is if you could build it into a venus device. You get technically just copy it to /var/www/venus/ and hit it directly on the venus device after that. No hoops to jump through it "Just Worked" Yes I wanted to ask you about running it directly. Cool I'll try that 👍
August 29, 20196 yr 2 hours ago, deapsquatter said: No hoops to jump through it "Just Worked" I can confirm that. Even on Chrome on my PC, it just worked.
August 29, 20196 yr 4 hours ago, The Terrible Triplett said: Even on Chrome What do you mean "even". Chrome is likely the most standard compliant browser there is, though I think newer versions of Mozilla is slightly less memory hungry. The very first thing I do on a new Windows system is install Chrome 🙂
August 29, 20196 yr 1 hour ago, plonkster said: The very first thing I do on a new Windows system is install Chrome Dude, have you noticed how resource hungry Chrome has become? It is worse than the old IE. Edge on the other hand is - for now - much "lighter" on resources. But yea, we all install it.
August 29, 20196 yr 3 hours ago, The Terrible Triplett said: resource hungry Chrome has become? It was worse a few versions ago. When I was a web developer I used chrome a lot, because it had the better debugger. It stuck, so to this day I run chrome and firefox side by side. Firefox allows me to have a bazillion tabs open, so that is used for general browsing.
August 30, 20196 yr 13 hours ago, plonkster said: It was worse a few versions ago. This is with 19 tabs open in Chrome:
August 30, 20196 yr 5 minutes ago, The Terrible Triplett said: This is with 19 tabs open in Chrome: And that is why I use firefox for general browsing where I currently have ... (counting softly)... 58 tabs open.
August 30, 20196 yr 13 minutes ago, plonkster said: 58 tabs open Now THAT is impressive. Memory usage?
August 30, 20196 yr Just now, The Terrible Triplett said: Memory usage? top says 5.5%... of my 8GB. Or around 500Mb. But it is hard to say. Linux uses large amounts of shared library loading (similar to DLLs) to reduce memory use, so a comparison to windows is not really feasible. What I can tell you is that Chrome also uses 5.5% at the moment, and I have 32 tabs open there. About half. Even that is not the whole story. A tab in chrome that's reading gmail is considerably heavier than one that is doing plain text 🙂
August 30, 20196 yr 5 minutes ago, plonkster said: top says 5.5%... of my 8GB. Or around 500Mb. Hang on, that is wrong. The total virtual memory space includes the swap space. I also have 8GB swap space. So it's more like 1GB.
August 30, 20196 yr 12 minutes ago, plonkster said: Hang on, that is wrong. The total virtual memory space includes the swap space. I also have 8GB swap space. So it's more like 1GB. Still way less than Chrome.
August 30, 20196 yr Author Updated new version. An alert sound now plays when the Grid goes down. The sound is currently set to an oncoming train. Will change it when I find something more suitable
August 31, 20196 yr 15 hours ago, deapsquatter said: ... oncoming train. That would be epic! Oncoming train smash! 🤣
September 1, 20196 yr On 2019/08/30 at 8:14 PM, deapsquatter said: An alert sound now plays when the Grid goes down. The sound is currently set to an oncoming train. Will change it when I find something more suitable Are you using com.victronenergy.system/Ac/Alarms/GridLost ?
September 1, 20196 yr Author 1 minute ago, plonkster said: Are you using com.victronenergy.system/Ac/Alarms/GridLost ? So I still wanted to ask you for the best path to use. Right now it's a rudimentary "if grid power is 0 for 5s".
September 2, 20196 yr On 2019/08/30 at 10:48 AM, plonkster said: top says 5.5%... of my 8GB. Or around 500Mb. Here is FF on 14 tabs open ...
September 2, 20196 yr Edge, Chrome and Firefox, tit for tat ito resources on Windows 10 PC. I find Chrome the most stable one as FF has small teeny issues on PF and Edge "feels" "loose". Lets see what M$ does when they replace Edge with Chrome or some such.
September 2, 20196 yr Author @plonkster what does this path look like as an MQTT topic ? com.victronenergy.system/Ac/Alarms/GridLost The others I'm using look like like this N/{portalID}/system/0/Ac/ConsumptionOnInput/L1/Power Edited September 2, 20196 yr by deapsquatter
September 2, 20196 yr 27 minutes ago, deapsquatter said: what does this path look like as an MQTT topic ? com.victronenergy.system/Ac/Alarms/GridLost Oh it's the dbus path, but it translates directly to mqtt, it will likely be something like N/{portalID}/system/0/Ac/Alarm/GridLost. The 0 is the DeviceInstance, but for things like system, settings, etc it will be zero. Also, it's a 2.40 feature, it's not available in 2.3x. What it does however is watch /Ac/ActiveIn/ActiveInput on the vebus service (ie something like N/{portalID}/vebus/257/Ac/ActiveIn/ActiveInput), and if that shows 0xF0 (240) it means there is no active input. But that is again consolidated onto N/{portalID}/system/0/Ac/ActiveIn/Source, which will show 0 for unavailable, 1 for grid, 2 for generator, 3 for shore, and 0xF0 (240) for disconnected. And this does work in 2.3x. So the best production implementation right now would be to watch N/{portalID}/system/0/Ac/ActiveIn/Source and raise an alarm if that is 240. The GridLost alarm does a bit more than that. It also raises an alarm if the input is a generator (anything other than grid or shore), because a generator running still means the grid is lost 🙂 Edited September 2, 20196 yr by plonkster
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.