Skip to main content

Mopidy extension that waits for internet connection during early startup.

Project description

Latest PyPI version Number of PyPI downloads GitHub Actions build status Coveralls test coverage Weekly build that tests connectivity check servers

Mopidy extension that waits (up to around 5 minutes) for an internet connection during early phase of Mopidy startup (before other extensions start to initialize).

Installation

Install by running:

pip install Mopidy-WaitForInternet

Configuration

This extension has no configuration options in mopidy.conf apart from the default enabled setting:

[waitforinternet]
# To temporary disable this extension without uninstalling it
enabled = false

Usage

This extension will delay initialization of other Mopidy extensions until an internet connection has been initialized (for up to around 5 minutes).

Mopidy-WaitForInternet might be useful if other Mopidy extensions (e.g. extensions for online music streaming services) fail to initialize, because they try to connect to internet resources before machine running Mopidy has established an internet connection (e.g. connected to wifi).

Important internals

Mopidy-WaitForInternet uses several different URLs (currently - requests to public DoH servers) to check internet connectivity. As a future-proofing measure there is a weekly servers-test build that verifies availability of these URLs.

License

Copyright 2022 Davis Mosenkovs

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Project resources

Changelog

v0.1.1

  • Fixed README formatting.

  • Initial release.

v0.1.0 (UNRELEASED)

  • Initial version.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Mopidy-WaitForInternet-0.1.1.tar.gz (8.4 kB view hashes)

Uploaded Source

Built Distribution

Mopidy_WaitForInternet-0.1.1-py2.py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page