question

Kevin Windrem avatar image
Kevin Windrem asked

Enhanced Mobile Overview screen

Since adding tank displays to my CCGX, I find I spend most of my time on that screen. However, some items visible elsewhere are not included. Specifically, AC INPUT and SYSTEM info do not exist. In addition, space within most tiles is available for other parameters such as voltage, current and frequency. The revised display looks like this:

You may notice the PUMP button is missing. I've made it dynamic. That is, it appears if the relay is configured to control a pump. Without the button, there is more space for tank displays.

The following is a GitHub repository for the OverviewMobile.qml file that implements these changes. It's a substantial rewrite from the existing code to make future changes easier.

https://github.com/kwindrem/GuiMods

Venus OS
18 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

ben avatar image ben ♦ commented ·

Very nice.

0 Likes 0 ·
Kevin Windrem avatar image Kevin Windrem commented ·

I should note that if there is more than one Inverter in the system, this screen only shows voltage, current and frequency for the first one found. Power, however is provided by system services and I believe combines info from all inverters.

0 Likes 0 ·
Mark avatar image Mark commented ·

Absolutely Awesome thank you. do you know how to add an extra page to the GUI? I would like to add an extra page for switching the relays so you don't have to go into the menus.

Thanks

Mark

0 Likes 0 ·
Kevin Windrem avatar image Kevin Windrem Mark commented ·

I haven't added additional pages but it should be easy.

Create a new overview page using any of the existing overviews as a template. Then add the new page to the ListModel in page main.qml. That list contains pages that are always present.

If you want the page to be dynamic, search for extraOverview. There are three in this file that should get you going

0 Likes 0 ·
Mark avatar image Mark Kevin Windrem commented ·

I'll try that thank you. I did try as a test yesterday running your enhanced page as an extra page but just get the magical white screen grrrr! If you do ever do it please keep me informed as I will you and this post if I get it working lol.

Cheers Mark

0 Likes 0 ·
Kevin Windrem avatar image Kevin Windrem Mark commented ·

check the GUI log to determine what's going wrong:

/var/log/gui/current

1 Like 1 ·
Mark avatar image Mark Kevin Windrem commented ·

Hi Kevin,

Thanks for your previous help. I'm afraid to say it didn't work grrr.

I even tried adding it in main.qml where I spotted some overview links but still nothing??? If you have any other ideas they would be greatly appreciated.

Thanks Mark

0 Likes 0 ·
Mark avatar image Mark Kevin Windrem commented ·

Hi Kevin

Still no joy I'm missing something I'm just not seeing what it is?? I've attached my attempts files if you get a chance to have a look? I have managed to make a new page in the main menu called switching but cant seem to get a new gui page for the switching. I haven't even managed to get your enhanced page to work as an extra GUI page?

Any tips info help would be greatly appreciated.

Thanks

Mark

OverviewTiles2.txt

PageMain1.txt

PageSwitching1.txt

main1.txt

0 Likes 0 ·
overviewtiles2.txt (6.3 KiB)
pagemain1.txt (4.0 KiB)
pageswitching1.txt (1.3 KiB)
main1.txt (9.1 KiB)
Kevin Windrem avatar image Kevin Windrem Mark commented ·

Remember that I'm no expert on QML or its use in Venus but a quick look:

There's a correlation between Component { PageSettings {} } and file names. The above references PageSettings.qml So if there's no PageSwitching.qml file in the same directory, you'll probably get nothing on screen an error in the log.

I don't think you can put the MbSwitch items in the VisualItemModel.

The test in main.qml that activates OverviewMobile.qml is based on a setting controlled by Show boat & motorhome overview in Settings/Display & Language. Your extended mobile overview tests a different setting which will fail if that setting doesn't exist. I'm not sure if this will cause the GUI to crash or just report an error to the log.

As a baby step, add the following to the ListModel in main.qml:

	ListElement {
			pageSource: "EnhancedOverviewMobile.qml"
		}

and make sure the file has that specific name

That should make the enhanced mobile overview page appear even with the switch for the main OverviewMobile turned off.

If you want the enhanced mobile overview to be dynamic, you would need to create a new dbus service in /Settings and hook it into a GUI item (or control it from dubs-spy).

Your file names need to have .qml as an extension (not .txt).

1 Like 1 ·
Mark avatar image Mark Kevin Windrem commented ·

Thats awesome thank you. Ill try that shortly, The pageSwitching.qml is in the same folder as the other .qml files. It works fine in the menu but you have to press the screen then press menu then scroll down to the new switching page then select it. which is why id like it on the GUI so you can just swipe to it. in OverViewTiles2 (renamed until I get it working) It shows the switch but cant use it?

I had to make the .txt so I could upload them onto here, but thanks for the heads up.

Cheers

Mark

0 Likes 0 ·
Mark avatar image Mark Kevin Windrem commented ·

HI Kevin

Your a winner thank you so much, that worked a treat :) now i just have to work out the switching side of things........

I saw in one of your posts about relays. I have managed to configure the RPI to run up to 8 relays. Although if using Rob's Stetson then 6 as mentioned.

Thanks again

Mark

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie Mark commented ·

Hi Mark

Remember 6x is the max as you use the other IO it will interfere with the the functions of the SPI ports and I2C ports etc. so you could lose functions etc.

Attached file for the rspi backup required it includes the extra data on the mobile page which Kevin Windrem has done.

https://www.dropbox.com/s/6sxpyvbn44qq1c4/Data%20Backup%20file%20raspi%20-%20Copy.rar?dl=0

Regards

Rob D

NZ

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie commented ·

Hi Kevin

You could add in the 2 temp readings at the bottom of the tank readings, which would be very useful? As the hardware is in place just cant view it only by going into the device screen.

I know Mark is going to add a relay screen with 6 relay buttons which can be setup to do any function and be renamed as well to suit the applications required light switching, PV tilt motor control, loading ramp etc.

Regards

Rob D

NZ

Victron Raspi Hat.pdfVictron Raspi Stetson.pdf

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie commented ·

import QtQuick 1.1

import com.victron.velib 1.0   QML module not found (com.victron.velib
import "utils.js" as Utils file or directory not found.

Hi Kevin

How did you get around the missing files as above as i am doing some updates for the temp sensors to be added etc.

Can you advise, i am using QT creator.


Rob D

NZ

0 Likes 0 ·
Kevin Windrem avatar image Kevin Windrem Rob Duthie commented ·

All my code was edited by hand rather than using Qt creator. So ???

My enhanced mobile overview was modified from Victron's original file and I didn't touch anything regarding imports. I see no import errors in the log and things work fine.

Not sure who was asking about temperature sensors. Wasn't me.

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie Kevin Windrem commented ·

Hi Kevin

It was me asking about the temp sensors, as i developed a raspi hat which combines most things that a GX does and some more, We have 6 relays outputs etc.

As per attached schematic.Victron Raspi Hat.pdf

If the 2 on board temp sensors could be added below the tank sensors that is one request a lot of people have being asking about.

Regards

Rob D

NZ

0 Likes 0 ·
victron-raspi-hat.pdf (593.1 KiB)
Kevin Windrem avatar image Kevin Windrem Rob Duthie commented ·

It should be possible to shorten the tanks column and add another tile below it to support the temperature sensors. Currently, the tank column's bottom is anchored to the top of the acModeButton if the pump button is enabled or it's bottom if not. Look in the ListView id:tanksColum (yes it's misspelled).

Hope that helps.

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie Kevin Windrem commented ·

Hi Kevin


Thanks for the advise. You have done a great job on this screen, as it gives a lot more visual information than before as this has being requested for some time which Victron have not done. and lot of people have asked for it now this will finish it as complete.

Regards

Rob D

NZ

0 Likes 0 ·
9 Answers
nebulight avatar image
nebulight answered ·

Thanks, I think I'm going to swap this out.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Kevin Windrem avatar image
Kevin Windrem answered ·

I recently started testing an ESS configuration and discovered the display of ESS "reason codes" on the GUI. I had to go look up their meaning. So to avoid this in the future, I modified the Mobile Overview page to display text for these conditions. I also combined merged the "reason" line with the "notification" Marquee to save space. It's unlikely you'd have both at the same time but if so, you'd want to scroll all reported conditions from both mechanisms.

The changes are here:

Venus-Mobile-Overview-Enhancements

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Felix Thommen avatar image
Felix Thommen answered ·

Hi Kevin

I tried to get your enhanced Mobile Overview from provided Github link. That link is not valid anymore. Could you please provide the files to me?

Thank you

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Felix Thommen avatar image
Felix Thommen answered ·

Found it by myself https://github.com/kwindrem/GuiMods

Thanks!

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Rob Duthie avatar image
Rob Duthie answered ·

Here is new one in the pipe line were are devopling with all Kevins enhanced mobile, but we are going to do a separate page for the relays and tanks and temps readings etc. So the relays can be named etc, at the moment when you touch the relay it pops up and shows the relay state and you can turn off and on from there.

screen-shot-2021-02-16-at-20958-pm.png



3 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Mark avatar image Mark commented ·

Looking good mate, I have managed to rename the relays but in the same way I did it before in the code, like the relay page in settings we made ages ago.

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie Mark commented ·

Hi Mark

Correct but we plan to have a relay page with options to rename from the screen not the file in Venus.

Regards

Rob D

NZ

0 Likes 0 ·
Mark avatar image Mark Rob Duthie commented ·

Perfect thats awesome

0 Likes 0 ·
Rene Mullie avatar image
Rene Mullie answered ·

Real nice mod! Installed quick&easy, nice work.

@Kevin: do you intend to further develop this? I would be a nice framework for custom tiles, adding more parameters to tiles etc etc. I have some wishes in this respect.

Any suggestions on resources howto create/modify tiles within your GuiMods rewrite myself?

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Kevin Windrem avatar image Kevin Windrem commented ·

The Mobile Overview is a nice screen to show most things in one place for a mobile installation where you PV inverters aren't likely. (The original layout did show a PV INVERTER tile in place of AC INPUT.)

Space is limited and without a major layout change (e.g., modifying the tile title area) there really isn't much more that could be added. Replacements are fairly easy.

For RVs, at least in the US, displaying AC in and out info for an additional leg could be essential.

STATUS takes up a lot of space and there may be other things that would be more important. E.g., GPS for a boat. The first thing I'd remove is the system name.

For systems with just 2-4 tanks there's wasted space in the tanks column for other things. Some have suggested adding temperatures to the tanks column.

I have considered moving some generator stuff to this page. Probably just status and manual start/stop. It would be an either/or for the PUMP button that shows up at the bottom of the tanks column if it's enabled in settings.

Some real estate can be reclaimed by modifying the tile titles. For example, the line below can be eliminated without loosing any functionality. This and bumping up the title text could potentially leave room for one additional line per tile (small font).

The current limit and mode buttons at the bottom could be replaced by touchable buttons within a tile (a current limit button inside AC INPUT), a touchable mode button inside STATUS replacing the inverter status ("Float") in the screen shot.

For larger systems, I think I'd take a different approach, showing much abbreviated status for more things (e.g., just total power), then adding multiple overviews for more detail.

I invite you and others to make suggestions for improvements.

0 Likes 0 ·
drlbradley avatar image
drlbradley answered ·

I've just finished installed my system, and GUIMods is a really nice addition it - thanks for all the hard work.

@Kevin Windrem I'd really love to see the Ve.Bus status (allow to charge, allow to discharge) somewhere on one of the pages, it that currently possible?


2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Kevin Windrem avatar image
Kevin Windrem answered ·

According to the Victron documentation here:

https://github.com/victronenergy/venus/wiki/dbus#battery

allow to charge/discharge is only available for Lynx BMS and Lynx Ion only, so probably not for the VE.Bus BMS.

I don't have a BMS so can't test. If you run dbus-spy and go to the BMS service, and find dBus parameters that show the states then I can probably add code to support it. Another challenge will be finding space for the information.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

drlbradley avatar image
drlbradley answered ·

It looks like its SystemState/DischargedDisabled and SystemState/ChargeDisabled there are no other params that look like they are relevant to the VE.Bus.

screenshot-2021-08-20-at-20-08-170603.png



2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Kevin Windrem avatar image Kevin Windrem commented ·

Thanks. I'll look into adding something.

0 Likes 0 ·
Kevin Windrem avatar image Kevin Windrem commented ·
I did some checking and there's a message that already appears of one of these variables are set. In the stock code, it's cryptic: ESS #3 for charge disabled, ESS #4 for discharge disabled. If I recall, these appear above the battery icon.


GuiMods expands these to "Charge Off" and "Disch Off", respectively. Multiple messages scroll in the message area.

What I don't know is if these work without ESS. These appear above the DC Loads tile.

Let me know if these messages occur if the BMS is in a state to disable charging or discharging. I realize this may be difficult to simulate.


0 Likes 0 ·