Open a new tab page display a star wars background based on the weather! This extension is for Firefox and Chrome
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.
- This extension gets the users location.
- Get the time and deterime day or night.
- Gives the location info to a Weather API.
- This API gather the following data temperature, conditions, humidity, wind.
- It use these parameters to deterime the planet. See exact details below.
- It gets the image (depending on time of day), description and message and edits the HTML to display them.
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 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.
Like the project? Please consider contributing to this project, lots of improvements and optimazations can be made.
Working Link