Introduction¶
DeepSeek Harness (DSH) adopts a “everything is a plugin” philosophy, allowing developers to mount various functional components in the Web UI. During agent development, you may sometimes need to display real-time weather information in a prominent position on the interface. Building this yourself would require handling API calls, caching, state persistence, and UI layout. Here we introduce a ready-made weather display widget: ganglz1024/dsh-weather-matrix-widget.
Plugin Overview¶
This plugin provides a floating pixel-matrix weather card for the DSH Web UI. On the left side is an approximately 25×27 block matrix that simulates weather effects—clouds, rain, snow, sun, moon—by lighting up blocks in different colors. On the right side, it displays the location name, a real-time clock, the current condition, an hourly forecast for the next 6 hours, and a range bar for the next 3 days. The widget features a pixel-art style with smooth animations, and supports size scaling as well as a minimized capsule mode.
Core Capabilities¶
- Auto-refresh: The widget refreshes automatically, once per minute by default, and also refreshes when the page becomes visible again.
- Multi-dimensional forecast: Provides current temperature, weather condition, hourly forecast for the next 6 hours, and a 3-day forecast.
- City search & pinning: Clicking the location name opens a city search. You can pin a city so that subsequent refreshes no longer change the location.
- Size scaling: The card scales uniformly between 0.8x and 1.6x, supporting preset sizes (Compact / Default / Large / XL) and free drag-to-resize.
- Minimized capsule: Clicking the capsule button collapses the card into a 292×62 capsule mode, featuring a mini scene, temperature, location, clock, and a hover arrow.
- Drag & position memory: The card is draggable, and its position and size state are persisted in the browser’s localStorage.
- Pixel-art rendering: Weather icons are drawn with a 10×9 pixel font, including day/night variants (e.g., sun/moon for daytime and nighttime).
- Accessibility support: Respects
prefers-reduced-motionby rendering static frames instead of animations.
Installation & Enablement¶
Run the following command in the terminal to install the plugin:
dsh plugin --profile web add github:ganglz1024/dsh-weather-matrix-widget
After installation, refresh the DSH Web UI and the card will appear in the top-right corner. You can disable or remove the plugin under Settings → Plugins.
Typical Usage¶
- After installation, the widget defaults to locating your position via browser IP and displaying the current weather.
- Click the location name on the card to open the city search. Once a city is selected, the widget will be pinned to that city.
- Hover over the card and click the ⤢ button in the bottom-right corner to switch between preset sizes or drag the bottom-right handle to resize freely.
- Click the — button in the bottom-left of the capsule to collapse the card into capsule mode; click again to expand.
Applicable Scenarios & Notes¶
- Ideal for developers who need to continuously display weather information in the DSH Web UI, assist decision-making, or enhance the interface.
- The plugin runs with browser-side permissions. Data sources include ipwho.is and Open-Meteo. No API key is required, though network instability may affect availability.
- Before installing, it is recommended to review the source code and the MIT license. For local development, you can link the folder as a bundle.
Summary¶
This widget presents weather in a pixel-matrix format, balancing aesthetics and practicality. It supports hourly and 3-day forecasts, city pinning, size scaling, and a minimized capsule mode, making it well-suited for scenarios where you want to quickly integrate weather functionality into a Web UI. More information and source code can be found on the catalog page and the GitHub repository.