Skip to content

Open a new tab page display a star wars background based on the weather!

Notifications You must be signed in to change notification settings

null3000/StarWarsWeatherExtension

Repository files navigation

StarWarsWeather

Open a new tab page display a star wars background based on the weather! This extension is for Firefox and Chrome

Background

A while back there was a website by Tom Scott that would get the weather in an area and compare it to a Star Wars planet. This website has since stopped working due to reasons listed here. My project revives and expands on this idea, there are now 10 planets, and each one has 2 images for day and night. This also uses more data about the climate like humidity, wind speeds and elevation. This extension has options for Fahrenheit and Celsius.

How does it work?

  1. This extension gets the users location.
  2. Get the time and deterime day or night.
  3. Gives the location info to a Weather API.
  4. This API gather the following data temperature, conditions, humidity, wind.
  5. It use these parameters to deterime the planet. See exact details below.
  6. It gets the image (depending on time of day), description and message and edits the HTML to display them.

How it Determines which Planet

Each planet has specific reasons for when it will be used here they are:

Hoth: used when snow, hail, ice or a blizzard is present. Or if temps are below freezing
Endor: used when it is misty or foggy
Dagobah: used when humidity is above 80%
Bespin: used when wind speeds are at or above 35mph
Kamino: used when it is raining or there is a storm
Naboo used when temps are between 33-49F
Coruscant used when temps are between 50-69F
Scariff used when temps are between 70-84F
Tatooine used when temps are between 85-96F
Mustafar used when temps are above 96F

Privacy

Privacy is incredibly important, that's why this project is open source. This extension is ran on the machine which installed it. This extension does NOT store any location data. Any stored data is on the users machine and not accessible anywher else.

Contributing

Like the project? Please consider contributing to this project, lots of improvements and optimazations can be made.

Available in the Chrome Web Store

Mozilla Add-on Store Status: APPROVED

Working Link

About

Open a new tab page display a star wars background based on the weather!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published