diff --git a/.gitignore b/.gitignore index 8ee54e8..9f860c6 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ coverage *.sw? *.tsbuildinfo +*~ diff --git a/CHANGELOG.md b/CHANGELOG.md index 4276bc2..db28db8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## 0.1.11 - 2025-10-06 +### Changed +- update source code info for about page + +## 0.1.10 - 2024-06-09 +### Changed +- Fix URL bug when refreshing weather radar. + +## 0.1.9 - 2024-06-09 +### Changed +- Warning notification should not butt up against forecast panel. +- Add timestamp param to bust cache when refreshing radar images. + ## 0.1.8 - 2024-06-09 ### Added - Add link to national radar map (live image). diff --git a/package-lock.json b/package-lock.json index a6d8881..8dc30e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "myweather", - "version": "0.1.8", + "version": "0.1.11", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "myweather", - "version": "0.1.8", + "version": "0.1.11", "dependencies": { "@fortawesome/fontawesome-svg-core": "^6.5.2", "@fortawesome/free-solid-svg-icons": "^6.5.2", diff --git a/package.json b/package.json index 6e7c43a..46a5d15 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "myweather", - "version": "0.1.8", + "version": "0.1.11", "private": true, "type": "module", "scripts": { diff --git a/src/stores/weather.js b/src/stores/weather.js index 0eb592e..f02e4a9 100644 --- a/src/stores/weather.js +++ b/src/stores/weather.js @@ -131,7 +131,7 @@ export const useWeatherStore = defineStore('weather', { if (!this.forecast) { - const weather = await this.getWeather(this.coordinates) + const weather = await this.getWeather() const url = weather.properties.forecast const response = await fetch(url) diff --git a/src/views/AboutView.vue b/src/views/AboutView.vue index 277e41c..c1deb33 100644 --- a/src/views/AboutView.vue +++ b/src/views/AboutView.vue @@ -28,12 +28,13 @@ import appsettings from '../appsettings'
- Source code is not currently browseable online but you can get it with: -
- -
- git clone https://git.edbob.org/readonly/myweather.git
+ Source code is available at
+
+
+
diff --git a/src/views/WeatherView.vue b/src/views/WeatherView.vue index 37a609b..54f5423 100644 --- a/src/views/WeatherView.vue +++ b/src/views/WeatherView.vue @@ -11,6 +11,7 @@ const weatherStore = useWeatherStore() const coordinates = ref(null) const refreshing = ref(false) +const timestamp = ref(new Date().getTime()) const panelHeadingTitle = computed(() => { @@ -24,6 +25,20 @@ const panelHeadingTitle = computed(() => { }) +const radarLatestURL = computed(() => { + if (weatherStore.weather) { + return `${weatherStore.radarLatestURL}?t=${timestamp.value}` + } +}) + + +const radarLoopURL = computed(() => { + if (weatherStore.weather) { + return `${weatherStore.radarLoopURL}?t=${timestamp.value}` + } +}) + + onActivated(() => { if (!weatherStore.coordinates) { @@ -56,6 +71,7 @@ async function fetchWeather() { async function refreshWeather() { refreshing.value = true weatherStore.clearWeather(true) + timestamp.value = new Date().getTime() await fetchWeather() refreshing.value = false } @@ -95,7 +111,8 @@ function showHourly(period) { -