Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weather@mockturl - network connection issue #6936

Open
mecrider opened this issue Feb 27, 2025 · 2 comments
Open

weather@mockturl - network connection issue #6936

mecrider opened this issue Feb 27, 2025 · 2 comments

Comments

@mecrider
Copy link

 * Applet version - 3.6.6
 * Cinnamon version - 6.0.4
 * Distribution - Linux 6.11.0-17-generic 17~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 20 22:48:29 UTC 2 x86_64 x86_64 GNU/Linux
 * Graphics hardware - 00:02.0 VGA compatible controller: Intel Corporation Meteor Lake-P [Intel Arc Graphics] rev 08

Notify author of applet
@Gr3q

Issue
I have Ubuntu Cinnamon 24.04 running on an LTSP workstation, which does not use normal network manager configuration. After using several manual location formats with no success, I checked the log and found the repeated message "No network connection, skipping this cycle." Is there a way to override the network connection test?

Steps to reproduce
PXE boot a workstation from an LTSP server running Ubuntu Cinnamon, install and configure weather applet.

Expected behaviour
Display weather.

Other information

Relevant Logs

Gjs-Message: 10:11:17.557: JS LOG: [LookingGlass/info] [weather@mockturtl#16:Info]: No network connection, skipping this cycle.
Gjs-Message: 10:11:32.559: JS LOG: [LookingGlass/info] [weather@mockturtl#16:Info]: No network connection, skipping this cycle.
(repeated forever)

@Gr3q
Copy link
Contributor

Gr3q commented Mar 3, 2025

Hmm, maybe there is something I could check if NetworkMonitor is used, I need to look into that. Otherwise I could add a setting to ignore network connectivity to the Help section, but I try to avoid adding settings to work around problems.

If you find this part in ~/.local/share/cinnamon/applets/weather@mockturtl/3.8/weather-applet.js:

get Online() {
    return NetworkMonitor.get_default().connectivity != NetworkConnectivity.LOCAL;
}

and change it to

get Online() {
    return true;
}

then restart Cinnamon does the applet start working?

@mecrider
Copy link
Author

mecrider commented Mar 3, 2025

Yes, the applet is working perfectly with that change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants