Skip to content

Commit 2ed7486

Browse files
committed
0.47
1 parent ac854fd commit 2ed7486

5 files changed

Lines changed: 22 additions & 9 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ Click [here](https://vardecab.github.io/umbrella/umbrella.html). For now it show
3636

3737
## Release History
3838

39-
- 0.46: Disabled pollen information because API died.
39+
- 0.47: Disabled `UVI` and `dew point` information due to API problems.
40+
- 0.46: Disabled `pollen` information because API died.
4041
- 0.45: Added a local notification if there is pollen in the region; fixed LocationIQ API key so the whole thing can continue to work.
4142
- 0.44: Changed emojis for sunrise & sunset.
4243
- 0.43.1: New library used for displaying Windows notifications.

scripts/dispatcher.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ window.onload = function geoLocator() {
130130
});
131131

132132
weatherBallon(cookie_lat, cookie_lng); // pass coords to get weather info
133-
weatherBallon2(cookie_lat, cookie_lng); // pass coords to get UV index
133+
// FIX: API is now paid
134+
// weatherBallon2(cookie_lat, cookie_lng); // pass coords to get UV index
134135
airMask(cookie_lat, cookie_lng); // pass coords to get air quality info
135136
airCrystalBall(cookie_lat, cookie_lng) // pass coords to get air quality forecast
136137
// showPollen(cookie_location_voivodeship); // pass voivodeship to get allergy information? // FIX: doesn't work as of late 2024, the website is down so we need to take the data from a different API
@@ -256,7 +257,8 @@ window.onload = function geoLocator() {
256257
// alert(liq_location); // debug
257258

258259
weatherBallon(cookie_lat, cookie_lng); // pass coords to get weather info
259-
weatherBallon2(cookie_lat, cookie_lng); // pass coords to get UV index
260+
// FIX: API is now paid
261+
// weatherBallon2(cookie_lat, cookie_lng); // pass coords to get UV index
260262
airMask(cookie_lat, cookie_lng); // pass coords to get air quality info
261263
airCrystalBall(cookie_lat, cookie_lng) // pass coords to get air quality forecast
262264
// showPollen(cookie_location_voivodeship); // pass voivodeship to get allergy information // FIX: doesn't work as of late 2024, the website is down so we need to take the data from a different API
@@ -300,7 +302,8 @@ window.onload = function geoLocator() {
300302
}
301303

302304
weatherBallon(cookie_lat, cookie_lng); // pass coords to get weather info
303-
weatherBallon2(cookie_lat, cookie_lng); // pass coords to get UV index
305+
// FIX: API is now paid
306+
// weatherBallon2(cookie_lat, cookie_lng); // pass coords to get UV index
304307
airMask(cookie_lat, cookie_lng); // pass coords to get air quality info
305308
airCrystalBall(cookie_lat, cookie_lng) // pass coords to get air quality forecast
306309
// showPollen(cookie_location_voivodeship); // pass voivodeship to get allergy information // FIX: doesn't work as of late 2024, the website is down so we need to take the data from a different API
@@ -432,7 +435,8 @@ function manualFinder() { // globe icon
432435
cookie_location_voivodeship = Cookies.get("umbrella_location_voivodeship");
433436

434437
weatherBallon(cookie_lat, cookie_lng); // pass coords to get weather info
435-
weatherBallon2(cookie_lat, cookie_lng); // pass coords to get UV index
438+
// FIX: API is now paid
439+
// weatherBallon2(cookie_lat, cookie_lng); // pass coords to get UV index
436440
airMask(cookie_lat, cookie_lng); // pass coords to get air quality info
437441
airCrystalBall(cookie_lat, cookie_lng) // pass coords to get air quality forecast
438442
// showPollen(cookie_location_voivodeship); // pass voivodeship to get allergy information // FIX: doesn't work as of late 2024, the website is down so we need to take the data from a different API

scripts/weather.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// get JSON data from API and pass to drawWeather function
99
function weatherBallon(lat, lng) {
10-
const owm_api_key = "4541406d253305e837d9ff9e415c7551"; // well... no way to hide it ¯\_(ツ)_/¯
10+
const owm_api_key = "70f56dba664fb89de2c0883d3ea17152"; // well... no way to hide it ¯\_(ツ)_/¯
1111
// if (owm_api_key == "") {
1212
// window.alert("API key missing!");
1313
// console.error("API key missing!");

scripts/weatherx.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
/* OWM One Call API */
33
/* ================================== */
44

5+
// https://openweathermap.org/forecast5
6+
// FIX: paid API
7+
// if not paid, 1) UVI and 2) dew point won't work
8+
59
/* -------- get data from API -------- */
610

711
function weatherBallon2(lat, lng) {
8-
const owm_api_key = "4541406d253305e837d9ff9e415c7551"; // well... no way to hide it ¯\_(ツ)_/¯
12+
const owm_api_key = "70f56dba664fb89de2c0883d3ea17152"; // well... no way to hide it ¯\_(ツ)_/¯
913
// if (owm_api_key == "") {
1014
// window.alert("API key missing!");
1115
// console.error("API key missing!");

umbrella.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@
7979
<!-- - wind & pressure & humidity -- -->
8080
<span id="wind" title="Prędkość wiatru:"></span>
8181
<span id="air_pressure" title="Ciśnienie:"></span>
82-
<span id="dew_point" title="Punkt rosy:"></span>
82+
83+
<!-- FIX: API is now paid -->
84+
<!-- <span id="dew_point" title="Punkt rosy:"></span> -->
8385

8486
<!-- --------- sun & moon ---------- -->
8587
<br>
@@ -95,7 +97,8 @@
9597

9698
<!-- ------------- UVI ------------- -->
9799

98-
<span id="uvi" title="Indeks UV:">🌤️ UVI: </span>
100+
<!-- FIX: API is now paid -->
101+
<!-- <span id="uvi" title="Indeks UV:">🌤️ UVI: </span> -->
99102

100103
<!-- <span id="temperature_next_6hrs" title="Kolejne 6 godzin:">🕡 </span> -->
101104
</div>
@@ -121,6 +124,7 @@
121124
<!-- TODO: ^ -->
122125
</div>
123126

127+
<!-- FIX: doesn't work as of late 2024, the website is down so we need to take the data from a different API -->
124128
<!-- <div id="allergy" title="Informacje alergologiczne - kliknij!">
125129
<p id="allergy_placeholder"></p>
126130
<p id="allergy_description"></p>

0 commit comments

Comments
 (0)