Compare commits
No commits in common. "master" and "v0.1.8" have entirely different histories.
8 changed files with 14 additions and 46 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -28,4 +28,3 @@ coverage
|
||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
*~
|
|
||||||
|
|
13
CHANGELOG.md
13
CHANGELOG.md
|
@ -7,19 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## Unreleased
|
## 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
|
## 0.1.8 - 2024-06-09
|
||||||
### Added
|
### Added
|
||||||
- Add link to national radar map (live image).
|
- Add link to national radar map (live image).
|
||||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "myweather",
|
"name": "myweather",
|
||||||
"version": "0.1.11",
|
"version": "0.1.8",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "myweather",
|
"name": "myweather",
|
||||||
"version": "0.1.11",
|
"version": "0.1.8",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-svg-core": "^6.5.2",
|
"@fortawesome/fontawesome-svg-core": "^6.5.2",
|
||||||
"@fortawesome/free-solid-svg-icons": "^6.5.2",
|
"@fortawesome/free-solid-svg-icons": "^6.5.2",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "myweather",
|
"name": "myweather",
|
||||||
"version": "0.1.11",
|
"version": "0.1.8",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -131,7 +131,7 @@ export const useWeatherStore = defineStore('weather', {
|
||||||
|
|
||||||
if (!this.forecast) {
|
if (!this.forecast) {
|
||||||
|
|
||||||
const weather = await this.getWeather()
|
const weather = await this.getWeather(this.coordinates)
|
||||||
|
|
||||||
const url = weather.properties.forecast
|
const url = weather.properties.forecast
|
||||||
const response = await fetch(url)
|
const response = await fetch(url)
|
||||||
|
|
|
@ -28,13 +28,12 @@ import appsettings from '../appsettings'
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="block">
|
<p class="block">
|
||||||
Source code is available at
|
Source code is not currently browseable online but you can get it with:
|
||||||
<a href="https://forgejo.wuttaproject.org/lance/myweather" target="_blank">
|
</p>
|
||||||
<span class="icon-text">
|
|
||||||
<o-icon icon="external-link" />
|
<p class="block is-family-monospace"
|
||||||
<span>https://forgejo.wuttaproject.org/lance/myweather</span>
|
style="padding-left: 4rem;">
|
||||||
</span>
|
git clone https://git.edbob.org/readonly/myweather.git
|
||||||
</a>
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="block">
|
<p class="block">
|
||||||
|
|
|
@ -11,7 +11,6 @@ const weatherStore = useWeatherStore()
|
||||||
|
|
||||||
const coordinates = ref(null)
|
const coordinates = ref(null)
|
||||||
const refreshing = ref(false)
|
const refreshing = ref(false)
|
||||||
const timestamp = ref(new Date().getTime())
|
|
||||||
|
|
||||||
|
|
||||||
const panelHeadingTitle = computed(() => {
|
const panelHeadingTitle = computed(() => {
|
||||||
|
@ -25,20 +24,6 @@ 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(() => {
|
onActivated(() => {
|
||||||
|
|
||||||
if (!weatherStore.coordinates) {
|
if (!weatherStore.coordinates) {
|
||||||
|
@ -71,7 +56,6 @@ async function fetchWeather() {
|
||||||
async function refreshWeather() {
|
async function refreshWeather() {
|
||||||
refreshing.value = true
|
refreshing.value = true
|
||||||
weatherStore.clearWeather(true)
|
weatherStore.clearWeather(true)
|
||||||
timestamp.value = new Date().getTime()
|
|
||||||
await fetchWeather()
|
await fetchWeather()
|
||||||
refreshing.value = false
|
refreshing.value = false
|
||||||
}
|
}
|
||||||
|
@ -111,8 +95,7 @@ function showHourly(period) {
|
||||||
</o-button>
|
</o-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="weatherStore.alerts?.features?.length"
|
<div v-if="weatherStore.alerts?.features?.length">
|
||||||
class="block">
|
|
||||||
<o-notification variant="warning"
|
<o-notification variant="warning"
|
||||||
icon="warning"
|
icon="warning"
|
||||||
@click="$router.push('/alerts')"
|
@click="$router.push('/alerts')"
|
||||||
|
@ -179,10 +162,10 @@ function showHourly(period) {
|
||||||
<div class="panel-block">
|
<div class="panel-block">
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<img :src="radarLatestURL" />
|
<img :src="weatherStore.radarLatestURL" />
|
||||||
</div>
|
</div>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<img :src="radarLoopURL" />
|
<img :src="weatherStore.radarLoopURL" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
2
tasks.py
2
tasks.py
|
@ -24,7 +24,7 @@ def release(c):
|
||||||
version = js['version']
|
version = js['version']
|
||||||
|
|
||||||
# build the app, create zip archive
|
# build the app, create zip archive
|
||||||
c.run("bash -lc 'nvm use lts/iron; npm run build'")
|
c.run('npm run build')
|
||||||
os.chdir('dist')
|
os.chdir('dist')
|
||||||
filename = f'myweather-{version}.zip'
|
filename = f'myweather-{version}.zip'
|
||||||
c.run(f'zip --recurse-paths {filename} *')
|
c.run(f'zip --recurse-paths {filename} *')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue