Mopidy extension that waits for internet connection during early startup.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Mopidy-WaitForInternet-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16d64987d4a12a707caea47c64f066aa0eb60ed4ca20e3ce0f01b2c714836a82 |
|
MD5 | cbd6a035d022f08c376c77913ae08da8 |
|
BLAKE2b-256 | 3761ef94925551dd3b02158ea3dde584a918385aca6d4276edaa721eabd88bb6 |
Hashes for Mopidy_WaitForInternet-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a5edac3024b2ef8df26e058aa430acff0f7edbf3d89e3f1ef34801691dd6067 |
|
MD5 | 4cab6ec1d20e68eda4f7fdf9320a0ba3 |
|
BLAKE2b-256 | 770be4ce4813b1999016403316a64f944005dea6653b11596cf523624ab3d9df |