8000 GitHub - sumomoneko/sky-color: Reflects the current sky color in the vscode status bar
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sumomoneko/sky-color

Repository files navigation

Sky Color: Reflects the current sky color in the status bar

Get the latitude, longitude, and weather of the current location from OpenWeatherMap and set the current sky color in the status bar.

screen image

Features

  • Set the current sky color in the status bar.
  • The color is whitened depending on the degree of cloudiness.

This extension is inspired by zk-phi/sky-color-clock: Emacs clock widget.
There are also the following projects based on the same concept:

How to setup

  1. Register with OpenWeatherMap and get an API key.
  2. Set API key, Country code, and zip code in user settings. settings

Implementation Details

At startup, Geocoding API is used to obtain latitude and longitude.
Then, every 30 minutes, Current weather data API is used to obtain the time of the Sunrise/Sunset and cloud degree.
Every 5 minutes, update the color of the status bar based on the current time.

To update colors, this extension rewrites workbench.colorCustomizations in User settings.json.
The implementation for the color change is based on johnpapa/vscode-peacock.

License

About

Reflects the current sky color in the vscode status bar

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0