A window in your Explorer that looks outside.
Sky Window finds where you are from your public IP, reads the weather for that spot
and paints the sky as it is right now: the sun and moon, clouds, rain, snow, fog and lightning.
The current weather sits in the status bar. No account, no API key, nothing to set up.
Install ·
What you get ·
How it works ·
Settings ·
Privacy ·
Development
A real VS Code window: live weather for Amsterdam on a November evening.
✨ What you get
- 🪟 A Sky Window section in the Explorer, next to Outline and Timeline, like VS Code Pets. Drag it as tall or wide as you like: a narrow section shows the scene at its original 4:3 size, and a wide, short one turns into a panorama with more sky and hills on either side.
- ☀️ A real sun and moon. The sun follows today's sunrise and sunset and climbs as high as it really does for your latitude and season. The moon rises at its real time and shows its real phase.
- 🌦️ The weather, drawn. Clouds that drift with the real wind, drizzle, rain and showers, snow (the hills turn white), fog, an overcast ceiling, and thunderstorms with lightning. Stars, a lit cabin window and chimney smoke at night.
- 🗓️ A forecast strip that switches every 9 seconds between the next 12 hours, today (high and low, wind, humidity, next sunrise or sunset) and tomorrow. Click the scene to skip ahead.
- 📊 The weather in the status bar, like
☀️ 6° Mostly clear. Its tooltip has the details: feels-like temperature, wind, humidity, today's high and low, the next sunrise or sunset, the next 12 hours as a table, and tomorrow. Click it to open the section.
- 💡 "Case lights." On the badge, four lights on the case flash with each lightning strike and breathe when rain is coming. Here, the window glows instead.
- 📴 Shows something straight away. The last location and forecast are cached, so the sky is there as soon as VS Code starts. When you're offline it keeps showing the last reading, with a red dot and a note.
 In the Explorer A section like Outline or Timeline: collapse it, drag it, move it |
 Sunset The sun sets behind the hills and the clouds turn pink |

The status bar item: the condition's emoji, the temperature and (optionally) the condition
🌤️ Every kind of sky
These are frames from the extension's renderer (media/skywindow.js) with demo weather for Amsterdam, rendered by tools/scenes.ps1.
 Mostly clear, with the next 12 hours |
 Clear night: stars and the real moon phase |
 Rain, slanting with the wind |
 Snow: white hills and snowy trees |
 Thunderstorm, with lightning |
 Fog and drifting mist |
 Overcast: a grey ceiling |
 Today: high and low, wind, humidity, sunset |
 Tomorrow: conditions and chance of rain |
🚀 Install
From the Marketplace: search for Sky Window in the Extensions view, install it from the Visual Studio Marketplace, or run
code --install-extension emanuelebartolesi.vscode-skywindow
From a release: download vscode-skywindow-1.0.0.vsix from the latest release, then either run
code --install-extension vscode-skywindow-1.0.0.vsix
or use Extensions → … → Install from VSIX… in VS Code.
From source:
git clone https://github.com/kasuken/vscode-skywindow
cd vscode-skywindow
npm install
npm run package # builds vscode-skywindow-1.0.0.vsix
code --install-extension vscode-skywindow-1.0.0.vsix
Then open the Explorer: the Sky Window section is at the bottom, under Outline and Timeline. The first forecast arrives a second or two after VS Code starts.
[!TIP]
If the IP lookup puts you in the wrong city (common on a VPN or a corporate network), run Sky Window: Set City... from the Command Palette or click the 📍 button on the section. Sky Window looks the city up once and stops asking where you are.
🧠 How it works
flowchart TD
A[VS Code starts: the cached sky shows at once] --> B{Where are you?}
B -->|skyWindow.location set| C[Open-Meteo geocoder, or your coordinates]
B -->|otherwise, every 6 h| D[ipapi.co, then ipwho.is, then ip-api.com]
C --> E[Open-Meteo forecast, about 1.5 KB, every 15 min]
D --> E
E --> F[Explorer section: the sky, drawn on a canvas]
E --> G[Status bar: emoji, temperature, tooltip]
- The extension host (
src/) finds the location and fetches the forecast with Node's built-in fetch. It doesn't depend on any npm packages at runtime. Failed lookups move on to the next service, then back off, doubling the wait up to 15 minutes. The forecast is cached in VS Code's global state, which every window shares, so five open windows make one request, not five.
- The webview (
media/skywindow.js) gets the location and forecast and works everything else out itself: where the sun and moon are, the sky's colours, the clouds, rain and snow. The scene is laid out on the badge's 320×240 screen and scaled to the section, so text and shapes stay sharp at any size.
- Power. The scene animates at about 30 frames a second while the section is visible. VS Code stops drawing it when the section is collapsed or the Explorer is hidden. Set
skyWindow.animation to false, or turn on your operating system's reduce-motion setting, and it redraws once a second instead.
This is a port of Sky Window for the GitHub Universe 2026 badge, a MicroPython app for the conference badge. The scene, its colours, the seeded stars and clouds, and the location and weather logic are the same; only the screen is bigger.
⚙️ Settings
| Setting |
Default |
What it does |
skyWindow.location.city |
"" |
A city, e.g. "Amsterdam". Leave empty to find the location from your IP address. |
skyWindow.location.latitude / .longitude |
null |
Exact coordinates, which skip every lookup. The city is then just the label. |
skyWindow.units |
"auto" |
"metric", "imperial", or "auto": Fahrenheit and mph in the US, Liberia and Myanmar. |
skyWindow.statusBar.enabled |
true |
Show the weather in the status bar. |
skyWindow.statusBar.showCondition |
true |
Show "Mostly clear" next to the temperature; turn off for just ☀️ 6°. |
skyWindow.caseLights |
true |
The window glows with lightning, and breathes when rain is likely within two hours. |
skyWindow.animation |
true |
Turn off to redraw once a second, which uses less power. |
| Command |
What it does |
| Sky Window: Open |
Shows the Sky Window section (also what clicking the status bar item does). |
| Sky Window: Refresh Weather |
Fetches the forecast now. Also the ↻ button on the section. |
| Sky Window: Set City... |
Sets or clears skyWindow.location.city. Also the 📍 button on the section. |
🔒 Privacy
- To find you, the extension asks ipapi.co, then ipwho.is, then ip-api.com, and those services see your public IP address. ip-api.com's free service is plain HTTP and is only used if the first two fail. Set a city or coordinates and no lookup service is asked at all.
- Open-Meteo receives the coordinates they return (rounded to three decimals, about 100 m) to send back the forecast. Open-Meteo is free, needs no key, and its data is licensed CC BY 4.0.
- Nothing else leaves your machine. There is no telemetry, and the webview can't reach the network at all (its Content Security Policy allows only the extension's own files).
🛠️ Development
npm install
npm test # compile, then 13 unit tests of the location and weather parsing
.\tools\integration.ps1 # run inside your installed VS Code with a throwaway profile (Windows)
node tools/serve.js # then open http://localhost:5178/tools/preview.html
- Unit tests (
src/test/weather.test.ts) run on Node's built-in test runner against a real Open-Meteo answer and hand-made answers from each IP service.
- The integration test (
src/test/integration/index.ts) starts VS Code with an empty profile, activates the extension, checks its commands, opens the section and waits for a live location and forecast.
- The preview page (
tools/preview.html) loads the real renderer and stylesheet with demo weather, one button per kind of sky. ?scene=storm§ion=600x220 tries a wide, short Explorer section.
- The art:
tools/scenes.ps1 renders every scene with headless Edge, tools/capture.ps1 photographs a real VS Code window (pinned to a demo city, so it never shows where you are), and tools/make_assets.py builds the banner, icon and GIF.
src/extension.ts activation, the Explorer view and the status bar item
src/service.ts location and forecast timing, back-off, the shared cache
src/weather.ts parsing and wording, shared with the tests
media/skywindow.js the renderer: the badge's scene, on a canvas
media/fonts/ Mona Sans and DynaPuff (SIL Open Font License)
tools/ preview page, scene renderer, VS Code capture, asset builder
📄 License
MIT © Emanuele Bartolesi
Weather data by Open-Meteo (CC BY 4.0). The bundled fonts, Mona Sans by GitHub and DynaPuff by the DynaPuff Project Authors, are under the SIL Open Font License 1.1; see media/fonts. Not affiliated with or endorsed by GitHub or Microsoft.
| |