Skip to content

Example of Chrome Extension, fetching weather and modifying the DOM of Gmail

Notifications You must be signed in to change notification settings

adegard/Chrome_extension_Weather_gmail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chrome_extension_Weather_gmail

[DRAFT Extension - training purpose]

This Chrome extension inserts an icon of weather for the current day, inside gmail page. The icon changes based on weather code, given by a free API call.

alt text

Weather icons from icon-icons.com:

https://icon-icons.com/pack/Weather/3993

Builder API from Open Meteo:

https://open-meteo.com/en/docs#latitude=45.5959&longitude=9.0757&hourly=weather_code&timezone=Europe%2FBerlin&forecast_days=1

WMO Weather interpretation codes (WW)

Code Description
0 Clear sky
1, 2, 3 Mainly clear, partly cloudy, and overcast
45, 48 Fog and depositing rime fog
51, 53, 55 Drizzle: Light, moderate, and dense intensity
56, 57 Freezing Drizzle: Light and dense intensity
61, 63, 65 Rain: Slight, moderate and heavy intensity
66, 67 Freezing Rain: Light and heavy intensity
71, 73, 75 Snow fall: Slight, moderate, and heavy intensity
77 Snow grains
80, 81, 82 Rain showers: Slight, moderate, and violent
85, 86 Snow showers slight and heavy
95 * Thunderstorm: Slight or moderate
96, 99 * Thunderstorm with slight and heavy hail

todo

  • complete the weather code vs icons list
  • add click on to go on weather page (which one)
  • setting icons packs

About

Example of Chrome Extension, fetching weather and modifying the DOM of Gmail

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published