Open marleyjaffe opened 3 years ago
I run ozw-admin
in Docker (the "allinone" container) and I came up with a work-around (for the time being) the small size of the GUI.
The changes below affect both the web-based VNC client, as well as when using a "real" VNC client (like Screens, which is what I used for the screenshots).
Here's a "before" screenshot of Preferences for reference: I start by logging in to my OZW container:
docker exec -it openzwave /bin/bash
and then copy/pasting:
echo -n 0.5 > /var/run/s6/container_environment/QT_SCALE_FACTOR
echo -n 2 >/var/run/s6/container_environment/QT_SCREEN_SCALE_FACTORS
When you choose File > Exit, ozw-admin
will restart and use these new environment variables, resulting in Preferences looking like this:
I also came up with this one-liner that I also copy/paste to resize the client from the default 1024x768 size:
perl -pi -e's/-platform/-qwindowgeometry 1536x1152 -platform/;s/=1024x768/=1536x1152/' /var/run/s6/services/ozwadmin/run
which, when all combined together, makes Preferences look like this, providing a lot more room to interact with ozw-admin
:
As I mentioned, these are temporary changes, so anytime the container gets re-created it's necessary to re-run the commands. Since I don't need to restart my OZW container very often, this temporary work-around is OK for now.
Not sure this will work in other situations, but thought it was worth mentioning in case it helped anybody else.
when starting the container I pass in these environment variables and it works for me
QT_SCALE_FACTOR=0.5
QT_SCREEN_SCALE_FACTORS=2
Does not require to shell into the container, and to modify any files. I'm using it on a Synology NAS, hence configure it using a GUI, but from the command line you should be able to add it to the docker run
command by adding this:
-e QT_SCALE_FACTOR=0.5 -e QT_SCREEN_SCALE_FACTORS=2
thx to @eddyg for finding the right names to set.
EDIT: I must note that I use the all-in-one image
we should close this. OZW is obsolete I have migrated to zwaveJS which is awesome and works great, never regret the migration
As mentioned in this other issue, the embedded VNC version's resolution is locked at 640x480. This really limits the functionality of the embedded VNC version as you can't really see anything in the window at that size. This fix will help users across all platforms!
i maybe the way to go is to simply fix the VNC embedded client version and improve the resolution beyond 640x480, that way you dont need to use the OS specific client
Originally posted by @fgonza2 in https://github.com/OpenZWave/ozw-admin/issues/78#issuecomment-737408900