Skip to content

weather@mockturl - network connection issue #6936

Open
@mecrider

Description

@mecrider
 * 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)

Activity

Gr3q

Gr3q commented on Mar 3, 2025

@Gr3q
Contributor

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

mecrider commented on Mar 3, 2025

@mecrider
Author

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      weather@mockturl - network connection issue · Issue #6936 · linuxmint/cinnamon-spices-applets