Giter Site home page Giter Site logo

Comments (3)

eddyg avatar eddyg commented on August 31, 2024 1

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:
Screen Shot 2021-01-24 at 7 34 44 PM
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:
Screen Shot 2021-01-24 at 7 35 32 PM
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:
Screen Shot 2021-01-24 at 7 37 50 PM

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.

from ozw-admin.

fgonza2 avatar fgonza2 commented on August 31, 2024 1

we should close this. OZW is obsolete I have migrated to zwaveJS which is awesome and works great, never regret the migration

from ozw-admin.

Tieske avatar Tieske commented on August 31, 2024

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

from ozw-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.