Shows instant weather information for specific city in Visual Studio Code status bar.
Install from Visual Studio Code Marketplace
git clone https://github.com/Sneezry/vscode-instant-weather.git
cd vscode-instant-weather
npm i
npm i vsce -g
vsce package .
Instant Weather gets weather information from OpenWeatherMap. An API key for OpenWeatherMap is required. OpenWeatherMap provides free API key, and you can get it very easy from openweathermap.org.
Activation of an API key for Free and Startup accounts takes 10 minutes.
When you first run, the extension needs to know your location and OpenWeatherMap API key. You can click 🌈 Set location and API Key
button on status bar, or press F1
(or Ctrl
+ Shift
+ P
on Windows and Linux, Command
+ Shift
+ P
on macOS) to open command palette, and execute Instant Weather: Configurate Location and API Key
to configurate location city and API key.
The location city is in format of <city name>,<country code>
. For example, Shanghai,CN
. You can find full list of country code from Wikipedia.
The extension has 4 types of weather information to show: temprature, humidity, wind and location. You can swich type by clicking the weather information icon in status bar. Tooltip of the weather information icon shows the weather summary, such as light rain.
The weather information updates every minute automatically.
MIT License.