Skip to content
OwnerPluginsPublic

About

Enigma2 plugin to watch live webcams from around the world

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Repository files navigation

🌍 Your WorldCam Plugin

Version Enigma2 Python GPLv3 Python package

Visitors

Donate via Ko-fi Donate via PayPal

WorldCam is an Enigma2 plugin that allows you to view live webcams from around the world, with a simple, fast, and stable interface. Completely rewritten and optimized since version 8.0, the plugin now offers visual previews, new features, and greater reliability.


πŸš€ What's new in version 8.1

  • Fixed Player stream: Route StreamlinksRV through local proxy. Format StreamlinksRV URLs with its local HTTP proxy for direct and extracted YouTube links; retain scheme-based formatting for other wrappers.Thank's Kernel.

πŸš€ What's new in version 8.0

βš™οΈ Total Control: New Settings Menu

  • Image Auto-Detection: The plugin now detects your image (OpenATV, OpenPLi, Egami, DreamOS, etc.) automatically via /etc/image-version. You can also override this in the settings.
  • Wrapper Selection: Choose which wrapper to use for YouTube and SkylineWebcams (yt-dlp, streamlink, StreamlinksRV, or Auto).
  • Export Speed Control: Configure the delay (0.0s to 1.0s) and the number of parallel workers (1 to 5) to speed up the bouquet export, avoiding Skyline IP bans.

πŸ› οΈ Critical Fixes & Improvements

  • Fixed Circular Import: Resolved the cannot import name '_' from partially initialized module error in __init__.py.
  • Fixed YouTube 30s Freeze: The internal player now uses system wrappers (yt-dlp:// or streamlink://) instead of extracting temporary m3u8 URLs. Streams will no longer freeze after 30 seconds.
  • OpenPLi StreamlinksRV Support: Added native support for StreamlinksRV local proxy (http://127.0.0.1:8088/) for users on OpenPLi and similar images.
  • Auto-Install Streamlink Plugin: The skylinewebcams.py plugin is now automatically deployed into the system's Streamlink folder on startup.
  • Bouquet Export Fixed: HTML entities (like apostrophes ') are now correctly parsed. GUI no longer freezes during export (reload_services moved to a background timer).
  • Dependencies Check Updated: Now verifies ffmpeg (essential for thumbnails) and requests (for faster scraping).

πŸš€ What's new in version 7.9

πŸ› οΈ Fix: Player Thank's @Giopet


πŸš€ What's new in version 7.8

πŸ› οΈ Fix: Importlib


πŸš€ What's new in version 7.7

βš™οΈ New Settings Menu

Added a dedicated configuration screen to manage WorldCam settings directly from the plugin.

The new configuration menu includes:

  • YouTube wrapper: selection of the streaming wrapper, Streamlink or yt-dlp.
  • Skyline wrapper: configuration of the wrapper used for SkylineWebcams streams.
  • Export delay: configuration of the delay between export operations.
  • Export workers: configuration of the number of workers used during exports.

🎨 New XML Skins

Added dedicated XML skins for the Settings screen, supporting three screen resolutions:

  • HD: 1280 Γ— 720
  • FHD: 1920 Γ— 1080
  • WQHD: 2560 Γ— 1440

Each resolution has its own layout, maintaining the WorldCam graphical design and adapting the screen elements to the display resolution.


πŸš€ What's new in version 7.6

πŸ› οΈ Fix: YouTube cams in exported bouquets (black screen)

In 7.5 the YouTube cams were exported as a plain https://www.youtube.com/... link, which no wrapper handles: the result was a black screen.

They are now exported as streamlink://https://www.youtube.com/watch?v=…, so the Streamlink wrapper plays them, like the SkylineWebcams HLS cams.

Thanks to the forum user who found it. Bouquets exported with 7.5 must be exported again.


πŸš€ What's new in version 7.5

πŸ“Ί YouTube cams in exported bouquets

Many SkylineWebcams cams (e.g. Thailand) are streamed through YouTube. These used to be exported as streamlink://<SkylineWebcams page> entries and failed outside the plugin, because the SkylineWebcams Streamlink plugin shipped in the images handles HLS cams only.

On export, WorldCam now checks every SkylineWebcams page:

  • YouTube cams β†’ exported as YouTube links (streamlink://https://www.youtube.com/watch?v=… since 7.6)
  • HLS cams β†’ still exported as streamlink://…, played by the Streamlink wrapper
  • Pages that cannot be read stay streamlink://, so no cam is lost.

Bouquets exported with older versions must be exported again to get the YouTube links.

⏳ Non-blocking bouquet export

Export (locations and favorites) now runs in the background with a "Loading..." indicator; the Enigma2 service list is reloaded in the main thread when it ends.

πŸ“¦ Installer

Also installs python3-youtube-dl together with the streaming dependencies (Streamlink, Streamlink/ytdlp/ytdl wrappers).


πŸš€ What's new in version 7.3

🎨 Unified UI & PNG Thumbnails

All screens (Main Menu, Continents, Countries, Locations, Webcams, User Lists) now share the exact same beautiful layout: large image on the left, text vertically centered on the right.

Images are automatically converted to PNG (via ffmpeg) and sized to 120x70/160x90, fixing image cropping and size issues.

🌍 Missing Flags Fixed

Added hardcoded mappings and fallbacks for regions and countries that SkylineWebcams handles differently (e.g., Zanzibar, Belize, Guadeloupe, Martinique, Lithuania, Luxembourg, San Marino).

πŸ›‘οΈ Crash Fixes (Player & VRAM)

  • Fixed the critical crash (Agp... renderer not found) caused by custom system skins. The player now forces a clean, internal minimal skin.
  • Prevented the gAccel accel alloc failed crash by implementing a smart limitation on how many high-res images are loaded into the video memory at once.

🌐 Fixed Empty Continents & Streams

Continents are now parsed directly from the main page ensuring they are always populated. The stream parser was updated to detect both .m3u8 (HLS) and videoId (YouTube) sources correctly.

πŸ“ Bouquet Export Fixed

Exporting favorites or locations to Enigma2 bouquets now correctly resolves the direct .m3u8 links, making the streams play perfectly outside the plugin.

⚑️ Async Image Downloading & Caching

Thumbnails are fetched in parallel using a thread pool and cached in /tmp/worldcam_thumbs/. The UI remains smooth and responsive, preventing UI freezes during list loading.

πŸ” Lazy-Loading Image Support

Updated the SkylineWebcams scraper to support data-src attributes, correctly parsing images that are lazily loaded by the website.

⚑️ Fast and interactive UI management

Asynchronous webcam loading and smooth navigation between categories.

πŸ‡ΊπŸ‡³ Dynamic flag icons for language/country

Automatic mapping based on system language or country name.

βœ… New integrated player

Direct support for HLS streams (.m3u8), YouTube streaming, and two fallback options where available.

πŸ”Ž Fully revamped SkylineWebcams scraper

Faster and fully compatible with recent site updates.

πŸ› οΈ Advanced console + file logger

Supports INFO, DEBUG, ERROR, CRITICAL levels, with color-coded terminal output and persistent logs in /tmp/worldcam/worldcam.log.

🧹 Safe screen cleanup and management

Automatic memory cleanup to prevent leaks or crashes.

πŸ” Integrated aspect ratio handling

Stores and restores the correct aspect ratio for each video stream.

πŸ“ Favorites list now available

You can now manage your favorite webcams from the main menu. While watching a webcam, just press the Blue button to add or remove it from your Favorites.

🟩 Favorites toggle shortcut (Green button)

Quickly add or remove the selected webcam from your favorites list while browsing.

🟨 One-click Favorites to Bouquet export (Yellow button)

Instantly export your favorite webcams into a channel bouquet without opening menus.

▢️ Next/Previous webcam navigation in player

You can now switch between webcams directly from the player using ch+/ch- arrows.

🧩 Guaranteed compatibility from Python 2.7 to 3.9+

Safe use of cross-version libraries and methods, with automatic fallbacks.


πŸŽ₯ YouTube Player Support

WorldCam plays YouTube streams using yt-dlp with a robust fallback chain, tuned for slow ARM/MIPS receivers:

  1. android_vr client first

    It works without a JavaScript runtime and returns a muxed HLS stream that Enigma2 players (4097 / 5001 / 5002) can handle.

  2. Default yt-dlp clients as fallback

    If android_vr fails, yt-dlp uses its built-in defaults (this path benefits from an installed JS runtime β€” see below).

  3. Single-shot format chain

    Instead of starting yt-dlp once per format (slow on receivers), a single call tries 18/22/best[ext=mp4][protocol^=http]/best in order and returns the first available stream.

Playback is non-blocking: yt-dlp runs in a worker thread (twisted.internet.threads.deferToThread), so the Enigma2 GUI stays responsive and the player is not killed by the watchdog.

If resolution fails, the actual yt-dlp error is shown in the message box, instead of a generic "stream not available".


πŸ“‹ Local List Format for WorldCam

WorldCam supports loading a local list file containing webcam entries.

Each line in the list must contain the name and the stream URL of the webcam, separated by one of the following delimiters:

  • πŸ”Ή ::: (triple colon)
  • πŸ”Ή ;; (double semicolon)
  • πŸ”Ή ### (triple hash)
  • πŸ”Ή :: (double colon)
  • πŸ”Ή ; (semicolon)

πŸ“ Example lines

Camera 1:::http://example.com/stream1.m3u8
My Cam;;http://example.com/stream2.m3u8
Another Cam###http://example.com/stream3.m3u8
Cam Name::http://example.com/stream4.m3u8
SimpleCam;http://example.com/stream5.m3u8


YouTube Cam;https://www.youtube.com/watch?v=dQw4w9WgXcQ

πŸŽ₯ YouTube streams in Local List

YouTube URLs can be included directly in the local list as valid webcam entries.

The plugin will automatically detect YouTube links and use its internal player fallback to stream them.


πŸ“‚ Where to put the local list file?

Place your local list file (for example, named worldcam_list.txt) inside the following folder:

/usr/lib/enigma2/python/Plugins/Extensions/WorldCam/Playlist/

βš™οΈ Requirements

  • Enigma2 STB (Dreambox, Vu+, Zgemma, Ustym, Octagon, …)
  • Active internet connection
  • Python β‰₯ 3.8
  • yt-dlp (binary preferred, module also works)
  • To play exported bouquets outside the plugin:
    • streamlink + enigma2-plugin-extensions-streamlinkwrapper (SkylineWebcams HLS cams and YouTube cams)

The installer checks these packages and installs the missing ones.


πŸ§ͺ Debug & Log

Logs are saved at:

/tmp/worldcam/worldcam.log

You can check internal events and requested video streams directly.

If errors or malfunctions occur, please send this file for support.


πŸ“Œ Notes

  • This plugin is released under the CC BY-NC-SA 4.0 license.
  • Redistribution without attribution is not allowed.
  • The plugin does not use external extensions or complicated dependencies.
  • Any code modification must keep the original header intact.

πŸ™ Credits

  • Original project: Lululla

  • Stream source: SkylineWebcams.com

  • Graphic support: Public flags and icons


About

Enigma2 plugin to watch live webcams from around the world

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages