From 30ec847ed53023bbad1311fe720da6118af23b09 Mon Sep 17 00:00:00 2001 From: Matt Walsh Date: Thu, 9 Apr 2026 11:22:36 -0500 Subject: [PATCH 1/5] Hide cursor in kiosk via @iapetusz --- LICENSE | 2 +- server/scripts/index.mjs | 4 ++-- server/scripts/modules/settings.mjs | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index 0160467..0aedfb5 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020-2025 Matt Walsh +Copyright (c) 2020-2026 Matt Walsh Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/server/scripts/index.mjs b/server/scripts/index.mjs index a64b1ac..1474fe4 100644 --- a/server/scripts/index.mjs +++ b/server/scripts/index.mjs @@ -72,7 +72,7 @@ const init = async () => { if (!navigator.geolocation) btnGetGps.style.display = 'none'; document.querySelector('#divTwc').addEventListener('mousemove', () => { - if (document.fullscreenElement) updateFullScreenNavigate(); + if (document.fullscreenElement || settings.kiosk?.value) updateFullScreenNavigate(); }); document.querySelector('#btnGetLatLng').addEventListener('click', () => autoComplete.directFormSubmit()); @@ -384,7 +384,7 @@ const updateFullScreenNavigate = () => { } navigateFadeIntervalId = setTimeout(() => { - if (document.fullscreenElement) { + if (document.fullscreenElement || settings.kiosk?.value) { divTwcBottom.classList.remove('visible'); divTwcBottom.classList.add('hidden'); document.querySelector('#divTwc').classList.add('no-cursor'); diff --git a/server/scripts/modules/settings.mjs b/server/scripts/modules/settings.mjs index 34a0300..1df405f 100644 --- a/server/scripts/modules/settings.mjs +++ b/server/scripts/modules/settings.mjs @@ -44,9 +44,11 @@ const kioskChange = (value) => { if (value) { body.classList.add('kiosk'); + document.querySelector('#divTwc')?.classList.add('no-cursor'); window.dispatchEvent(new Event('resize')); } else { body.classList.remove('kiosk'); + document.querySelector('#divTwc')?.classList.remove('no-cursor'); window.dispatchEvent(new Event('resize')); } From 38d1455a4b457f68f2165677bb368aa83584c3dc Mon Sep 17 00:00:00 2001 From: Matt Walsh Date: Thu, 9 Apr 2026 11:29:49 -0500 Subject: [PATCH 2/5] fix custom text scroll --- server/scripts/modules/custom-scroll-text.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/scripts/modules/custom-scroll-text.mjs b/server/scripts/modules/custom-scroll-text.mjs index 76995df..444619c 100644 --- a/server/scripts/modules/custom-scroll-text.mjs +++ b/server/scripts/modules/custom-scroll-text.mjs @@ -17,7 +17,7 @@ const changeEnable = (newValue) => { // hide the string entry newDisplay = 'none'; } - const stringEntry = document.getElementById('settings-customText-label'); + const stringEntry = document.getElementById('settings-customText-string'); if (stringEntry) { stringEntry.style.display = newDisplay; } From 30887202c8b0ea695cfd55c31f56ef9a4a29c370 Mon Sep 17 00:00:00 2001 From: Matt Walsh Date: Thu, 9 Apr 2026 11:30:35 -0500 Subject: [PATCH 3/5] 6.5.8 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index bad640f..515e476 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ws4kp", - "version": "6.5.7", + "version": "6.5.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ws4kp", - "version": "6.5.7", + "version": "6.5.8", "license": "MIT", "dependencies": { "dotenv": "^17.0.1", diff --git a/package.json b/package.json index 750f7d2..9ea8e03 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ws4kp", - "version": "6.5.7", + "version": "6.5.8", "description": "Welcome to the WeatherStar 4000+ project page!", "main": "index.mjs", "type": "module", From a41b0da196be06796ec410a596e6ea5f10e77495 Mon Sep 17 00:00:00 2001 From: Matt Walsh Date: Thu, 9 Apr 2026 12:18:56 -0500 Subject: [PATCH 4/5] more generalized fix for mapclick enhanced timestamps close #203 moves changes made in 0b47cf79c1da44f2abe28a17557e620f4d1f0a79 to the mapclick processing for benefit of other mapclick calls --- server/scripts/modules/currentweather.mjs | 3 +-- server/scripts/modules/utils/mapclick.mjs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/server/scripts/modules/currentweather.mjs b/server/scripts/modules/currentweather.mjs index 0b5a878..81c5ae0 100644 --- a/server/scripts/modules/currentweather.mjs +++ b/server/scripts/modules/currentweather.mjs @@ -102,9 +102,8 @@ class CurrentWeather extends WeatherDisplay { }); // copy enhanced data and restore the timestamp if it was overwritten by older data from mapclick - const { timestamp } = candidateObservation.features[0].properties; + candidateObservation.features[0].properties = enhancedResult.data; - candidateObservation.features[0].properties.timestamp = timestamp; const { missingFields } = enhancedResult; const missingRequired = missingFields.filter((fieldName) => { diff --git a/server/scripts/modules/utils/mapclick.mjs b/server/scripts/modules/utils/mapclick.mjs index 532f386..143542f 100644 --- a/server/scripts/modules/utils/mapclick.mjs +++ b/server/scripts/modules/utils/mapclick.mjs @@ -650,7 +650,7 @@ export const enhanceObservationWithMapClick = async (observationData, options = } return { - data: mapClickProps, + data: { ...mapClickProps, timestamp: observationData.timestamp }, wasImproved: true, improvements, missingFields: [...mapClickMissingRequired, ...mapClickMissingOptional], From c07ebe8bddc03cf4abae85daca71caae1f14f1ae Mon Sep 17 00:00:00 2001 From: Matt Walsh Date: Thu, 9 Apr 2026 12:19:03 -0500 Subject: [PATCH 5/5] 6.5.9 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 515e476..8b5a074 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ws4kp", - "version": "6.5.8", + "version": "6.5.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ws4kp", - "version": "6.5.8", + "version": "6.5.9", "license": "MIT", "dependencies": { "dotenv": "^17.0.1", diff --git a/package.json b/package.json index 9ea8e03..3a1be3d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ws4kp", - "version": "6.5.8", + "version": "6.5.9", "description": "Welcome to the WeatherStar 4000+ project page!", "main": "index.mjs", "type": "module",