Compare commits
8 commits
Author | SHA1 | Date | |
---|---|---|---|
cfe916ec72 | |||
01b9644243 | |||
![]() |
52b83d05bb | ||
![]() |
a09d50af2c | ||
![]() |
c92d9aae0d | ||
![]() |
d4cf4e1c3e | ||
![]() |
fa1e702173 | ||
![]() |
cd615cb020 |
8 changed files with 46 additions and 14 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -28,3 +28,4 @@ coverage
|
|||
*.sw?
|
||||
|
||||
*.tsbuildinfo
|
||||
*~
|
||||
|
|
13
CHANGELOG.md
13
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).
|
||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "myweather",
|
||||
"version": "0.1.8",
|
||||
"version": "0.1.11",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -28,12 +28,13 @@ import appsettings from '../appsettings'
|
|||
</p>
|
||||
|
||||
<p class="block">
|
||||
Source code is not currently browseable online but you can get it with:
|
||||
</p>
|
||||
|
||||
<p class="block is-family-monospace"
|
||||
style="padding-left: 4rem;">
|
||||
git clone https://git.edbob.org/readonly/myweather.git
|
||||
Source code is available at
|
||||
<a href="https://forgejo.wuttaproject.org/lance/myweather" target="_blank">
|
||||
<span class="icon-text">
|
||||
<o-icon icon="external-link" />
|
||||
<span>https://forgejo.wuttaproject.org/lance/myweather</span>
|
||||
</span>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<p class="block">
|
||||
|
|
|
@ -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) {
|
|||
</o-button>
|
||||
</div>
|
||||
|
||||
<div v-if="weatherStore.alerts?.features?.length">
|
||||
<div v-if="weatherStore.alerts?.features?.length"
|
||||
class="block">
|
||||
<o-notification variant="warning"
|
||||
icon="warning"
|
||||
@click="$router.push('/alerts')"
|
||||
|
@ -162,10 +179,10 @@ function showHourly(period) {
|
|||
<div class="panel-block">
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<img :src="weatherStore.radarLatestURL" />
|
||||
<img :src="radarLatestURL" />
|
||||
</div>
|
||||
<div class="column">
|
||||
<img :src="weatherStore.radarLoopURL" />
|
||||
<img :src="radarLoopURL" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
2
tasks.py
2
tasks.py
|
@ -24,7 +24,7 @@ def release(c):
|
|||
version = js['version']
|
||||
|
||||
# build the app, create zip archive
|
||||
c.run('npm run build')
|
||||
c.run("bash -lc 'nvm use lts/iron; npm run build'")
|
||||
os.chdir('dist')
|
||||
filename = f'myweather-{version}.zip'
|
||||
c.run(f'zip --recurse-paths {filename} *')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue