GRLevel3

Questions about Wine on Linux
Locked
N8YX
Newbie
Newbie
Posts: 3
Joined: Wed Mar 16, 2022 2:20 pm

GRLevel3

Post by N8YX »

All,

Has anyone gotten the 2.80 version of this program to connect to the weather office site servers? Platform here is Mint Tricia 19.3 w/ latest updates, and have tried several versions of WINE. Installed now is the latest WINEHQ-Stable build for this platform (7.0).

GRLevel3 launches fine, but doesn't seem to connect to any servers. A Test Connection operation returns the following:
Test beginning
UserAgent = 'GRLevel3/2.80 (Windows/6.0)'
=====================================
Calling InternetGetConnectedStateEx:
dwFlags = 0x0002
INTERNET_CONNECTION_LAN

szConnection = 'LAN Connection'
==================================
TestFullGet:
*** unexpected http status = 404
*** HttpQueryInfo() failed!
last modified time = 1970/00/01 00:00:00

=====================
Test completed
Some troubleshooting steps:

If I ping anything from a WINE cmd prompt, I get a General Connection Failure. Using setcap to give raw socket access to the WINE loaders (per a forum comment) results in a ping command executing correctly but none of my installed "Win" programs (including winecfg) will launch - so this was undone. My HOSTS file was modified with the correct hostname and IP address (rather than 127.0.0.1); no change in behavior as a result. When the program is launched from a command line, no connection errors are present in the text output.

FWIW, WINE was installed with my default (non-root) user and no special permissions were granted.

There's another issue with the update time and a prepended argument to fix it, but the connection itself has to be fixed.

Thanks!
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: GRLevel3

Post by jkfloris »

Although the "Test Internet Connection" also gives me a 404 message, the program seems to be working normally.
grlevel3.jpg
You can check if the program really has no connection with the WINEDEBUG variable.

Code: Select all

WINEDEBUG=-all,+wininet wine grlevel3.exe
N8YX
Newbie
Newbie
Posts: 3
Joined: Wed Mar 16, 2022 2:20 pm

Re: GRLevel3

Post by N8YX »

Ran it with the debug window, checked the logs and didn't see any issues with connectivity.

The Time Zone bit is now the primary concern. Running it with no command-line arguments, the program's "Next Update" timer goes to over 300 minutes. WINEHQ's App listing makes mention of a fix: prepend the string ' TZ="UTC" ' to the command line. However, I cannot get the program to start with "TZ="UTC" wine grlevel3.exe", or "wine TZ="UTC" grlevel3.exe" - and adding the argument after the executable name doesn't seem to have an effect.

Ideas, suggestions?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: GRLevel3

Post by jkfloris »

If I start the program with

Code: Select all

TZ='UTC+6' wine grlevel3.exe
I also get a timer of over 300 minutes.
With TZ='UTC' or TZ='GMT' the timer is 2 minutes.

Can you check whether the TZ variable works with:

Code: Select all

# Time zone without the TZ variabele
$ wine reg query 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation' /v TimeZoneKeyName

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation
    TimeZoneKeyName    REG_SZ    Central Europe Standard Time


# Set the time zone to UTC
$ TZ='UTC' wine reg query 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation' /v TimeZoneKeyName

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation
    TimeZoneKeyName    REG_SZ    Greenwich Standard Time
N8YX
Newbie
Newbie
Posts: 3
Joined: Wed Mar 16, 2022 2:20 pm

Re: GRLevel3

Post by N8YX »

I seem to have gotten it working, for anyone interested in doing same.

Put the ' TZ="UTC" ' statement immediately after the WINEPREFIX entry and before the "wine" statement in the desktop object's command argument (set via the object's Properties). I also had luck running it from the command line.

Here's a potential quirk: Switch Sites immediately after you start the program. It behaves properly afterwards. GRLevel3 may be doing some registry updates that "fix" things.

One other quirk I noticed with v2.80 of the program: If you let it run for an extended period of time it'll lock up (under WINE) or hang a Windows 10 VM in which it's running. This appears to be an application issue, NOT a platform issue.

Currently watching stuff popping up in the ArkLaTex region. Since I use Linux as my primary "home" platform it's nice to have this functioning.
Locked