From fc89139ad04b67c83ea5b5cc9e3143ebf6719d5c Mon Sep 17 00:00:00 2001 From: fraxle Date: Tue, 19 May 2026 17:16:30 +0100 Subject: [PATCH] More page updates --- about.html | 170 ++++++++++++++++++++++++++++++++++++++++------------- build.js | 14 +++-- faq.html | 14 ++--- 3 files changed, 146 insertions(+), 52 deletions(-) diff --git a/about.html b/about.html index 62a373f..1f2dd06 100644 --- a/about.html +++ b/about.html @@ -332,6 +332,14 @@ table with a brief alert. Tapping or clicking the event icon opens a detailed description popup explaining what the condition means and what to watch out for.

+

+ What's Coming β€” cosmic events almanac. A πŸ”­ panel below the forecast table + shows upcoming astronomical events for your location over the next 90 days: meteor showers, + lunar and solar eclipses, planetary conjunctions, and oppositions. Each entry shows the event + name, peak date, a countdown, a short description, and a visibility note where the event is + better from a particular hemisphere or location. When a cosmic event is currently active, + it also appears as a banner above the forecast table alongside the weather alerts. +

What is the SunScope soak-factor?

@@ -350,10 +358,11 @@

SunScope organises its columns into profiles β€” curated sets of data tailored to different activities and use cases. Rather than showing every column at once, each profile - surfaces the information that actually matters for that situation. You can switch profiles - using the row of buttons above the forecast table. The Places profile - includes a sub-dropdown to choose between seven activity variants. Everyday profiles are free; - specialist planning views, the Temps comparison, and Custom columns are part of SunScope Extra. + surfaces the information that actually matters for that situation. You can switch between + Basic, Home, and Vehicle using the buttons + above the forecast table. Two dropdowns β€” Places and Activities + β€” give access to a further set of tailored views. The Temps comparison and Custom column + builder are part of SunScope Extra.

@@ -407,31 +416,13 @@

-
-

🌾 Farming

-

- Built for anyone working the land β€” farmers, growers, and market gardeners. Decision-making - in agriculture is driven by conditions at ground level, not just the air. The Farming profile - shows air temperature, relative humidity and - dew point (critical for frost risk assessment and disease pressure on crops), - wind speed and direction (essential for safe spraying windows), - cloud cover and sun elevation for light levels, - UTCI for heat stress on the person working outdoors, - precipitation, air quality index and - pollen (relevant for outdoor workers and spray-window planning), - and the three soil columns: surface soil temperature, soil temperature at 6 cm - (the root zone for most seedlings), and soil moisture β€” so you know - whether the ground is workable or waterlogged before you head out. -

-

🌀️ Places

- A single profile covering seven distinct place and activity contexts, each with its own - tailored column set. Select the variant from the dropdown after activating the Places - profile. Urban, Beach, and Events are free; Festival, Winter Sports, Naturist, and - Sailing are part of SunScope Extra. + The Places dropdown gives access to seven location-specific views, each with its own + tailored column set. Urban, Beach, Events, Park/Picnic, and Airport/Travel are free; + Festival and Construction are part of SunScope Extra.

Urban β€” designed for anyone moving around a city on foot: commuting, @@ -463,6 +454,20 @@ allergy-sensitive attendees), and concrete surface temperature β€” relevant for anyone standing or sitting on sun-exposed hard standing for extended periods.

+

+ Park / Picnic β€” a lighter view for casual outdoor time in green spaces. + Shows the essentials without the urban or specialist columns: air temperature, + wind speed, cloud cover, burn time, + UTCI+P, precipitation, and pollen + β€” useful for anyone with hay fever deciding whether to head out. +

+

+ Airport / Travel β€” focused on the conditions that affect journeys rather + than outdoor comfort. Shows air temperature, wind speed and + direction (relevant for delays and turbulence at exposed airports), + cloud cover, visibility (critical for flight operations + and driving to the terminal), and precipitation. +

Festival Β· Extra β€” multi-day outdoor events live or die by two things: the weather comfort and the state of the ground. Focuses on UTCI+P for how @@ -471,8 +476,77 @@ UV-A and burn time for daytime sun protection, precipitation for planning, air quality index and pollen β€” particularly relevant for multi-day outdoor exposure β€” and - soil moisture β€” the mud indicator. Values above 0.4 mΒ³/mΒ³ mean the ground is saturated and vehicle access, - camping areas, and walkways will be affected. + soil moisture β€” the mud indicator. Values above 0.4 mΒ³/mΒ³ mean the ground + is saturated and vehicle access, camping areas, and walkways will be affected. +

+

+ Construction Β· Extra β€” for site managers and outdoor workers. Safety and + productivity on a construction site depend on conditions at ground level and in the air. + Shows air temperature, wind speed and direction (critical + for working at height and crane operations), cloud cover, + visibility, air quality index (dust and diesel + particulates compound background pollution), UTCI for heat stress on + workers, UTCI+P for wet-weather comfort, and precipitation. +

+
+ +
+

🎯 Activities

+

+ The Activities dropdown organises views by what you are actually doing outdoors. Farming, + Cycling, Running, and Dog Walking are free; Sailing, Winter Sports, Naturist, Hiking, + Photography, and Fishing are part of SunScope Extra. +

+

+ Farming β€” built for anyone working the land: farmers, growers, and market + gardeners. Decision-making in agriculture is driven by conditions at ground level, not just + the air. Shows air temperature, relative humidity and + dew point (critical for frost risk and disease pressure on crops), + wind speed and direction (essential for safe spraying windows), + cloud cover and sun elevation for light levels, + UTCI+P for heat stress on the person working outdoors, + precipitation, air quality index and pollen + (relevant for outdoor workers and spray-window planning), and the three soil columns: + surface soil temperature, soil temperature at 6 cm + (the root zone for most seedlings), and soil moisture β€” so you know + whether the ground is workable or waterlogged before you head out. +

+

+ Cycling β€” tailored for road and trail cyclists. Wind is the dominant + factor: headwinds add significant effort, crosswinds affect handling, and gusts are a + safety concern on open roads. Shows air temperature, wind speed + and direction, cloud cover, burn time, + UTCI+P, precipitation, and visibility + β€” useful for road cycling in low-light or foggy conditions. +

+

+ Running β€” for outdoor runners monitoring heat stress and air quality. + Shows air temperature, relative humidity (sweat + evaporation is less effective in humid air, raising heat stress faster), + wind speed, cloud cover, UTCI for raw + heat stress, burn time, UTCI+P, precipitation, + and pollen β€” relevant for asthma and hay fever sufferers pacing their + outdoor training. +

+

+ Dog Walking β€” focused on the comfort and safety of both owner and dog. + Shows air temperature, wind speed, cloud + cover, UTCI+P, precipitation, and + pollen. The Vehicle profile's concrete surface temperature is the better + companion for pavement heat safety on hot days. +

+

+ Sailing Β· Extra β€” conditions out at sea can be dramatically different from + what the shore feels like. Leads with air temperature (hypothermia is a + real risk β€” water conducts heat away from the body twenty-five times faster than air), + dew point (condensation on sails and equipment is a practical concern at + dawn and dusk), wind speed with gusts, wind direction, + cloud cover, and sun elevation for visibility and glare. + UV exposure is significantly higher on open water due to reflection off the surface, so + UV-A index and burn time are included. + UTCI+P captures the combined effect of wet, windy conditions, + visibility (essential for safe passage β€” fog and haze at sea are serious + hazards), and precipitation rounds out the picture for passage planning.

Winter Sports Β· Extra β€” for skiers, snowboarders, and mountain walkers. UV @@ -483,8 +557,8 @@ critical for wind chill at speed and for avalanche and exposure risk on open slopes. Sun elevation indicates glare and visibility conditions on snow. UTCI+P, air temperature, cloud cover, - visibility (critical for whiteout and low-cloud conditions on the mountain), - and precipitation (snow vs rain) complete the picture. + visibility (critical for whiteout and low-cloud conditions on the + mountain), and precipitation (snow vs rain) complete the picture.

Naturist Β· Extra β€” with no clothing buffer between skin and environment, @@ -493,20 +567,34 @@ UV-A and UV-B are included β€” full-body UV exposure is a serious consideration β€” alongside burn time, sun elevation, dew point for humidity comfort, wind, cloud - cover, and precipitation. + cover, air quality index, pollen, + and precipitation.

- Sailing Β· Extra β€” conditions out at sea can be dramatically different from - what the shore feels like. Leads with air temperature (hypothermia is a - real risk β€” water conducts heat away from the body twenty-five times faster than air), - dew point (condensation on sails and equipment is a practical concern at - dawn and dusk), wind speed with gusts, wind direction, - cloud cover, and sun elevation for visibility and glare. - UV exposure is significantly higher on open water due to reflection off the surface, so - UV-A index and burn time are included. UTCI+P - captures the combined effect of wet, windy conditions, visibility - (essential for safe passage β€” fog and haze at sea are serious hazards), and - precipitation rounds out the picture for passage planning. + Hiking Β· Extra β€” for hillwalkers and long-distance trail users. Conditions + in upland and remote terrain can shift rapidly and the consequences of being caught out are + more serious than in urban areas. Shows air temperature, wind speed + and direction, cloud cover, sun elevation, both + UV-A and UV-B with burn time (altitude + increases UV exposure), UTCI and UTCI+P, + precipitation, and visibility (critical for navigation + in poor conditions). +

+

+ Photography Β· Extra β€” for outdoor and landscape photographers who need + to understand light quality, cloud diffusion, and solar position. Shows air + temperature, cloud cover, sun elevation, + direct radiation and diffuse radiation (the ratio of + these two values determines whether light is harsh or soft), visibility + (haze and atmospheric clarity), and precipitation. +

+

+ Fishing Β· Extra β€” river and sea anglers need to read conditions that most + weather apps don't surface. Shows air temperature, dew point + (morning condensation and hatch activity on rivers), wind speed and direction, + cloud cover, UTCI+P for what it will actually feel like + on an exposed bank or boat, precipitation, and visibility + for sea and estuary conditions.

diff --git a/build.js b/build.js index 7ae5df4..0f4c742 100644 --- a/build.js +++ b/build.js @@ -6,7 +6,7 @@ // What it does: // 1. Bundles + minifies JS (entry: assets/js/main.js) -> dist/assets/bundle.min.js // 2. Resolves CSS @imports + minifies -> dist/assets/bundle.min.css -// 3. Copies index.html / about.html to dist/, rewriting script+link tags +// 3. Copies index.html / about.html / faq.html to dist/, rewriting script+link tags // 4. Copies static files (images, robots.txt, sitemap.xml) // // Dev files are NEVER touched. Deploy from dist/ for production. @@ -37,6 +37,7 @@ function cleanDist() { path.join(ASSETS, 'bundle.min.css'), path.join(DIST, 'index.html'), path.join(DIST, 'about.html'), + path.join(DIST, 'faq.html'), path.join(ASSETS, '_tmp_flat.css'), path.join(ASSETS, 'about.min.css'), ]; @@ -68,11 +69,16 @@ function bumpVersion() { } // Swap dev asset tags in HTML for bundle tags. -// Strips the main sunscope.css link but preserves standalone CSS files -// like about.css that are not part of the main bundle. +// Strips the main sunscope.css link, rewrites standalone about.css to +// about.min.css with a version param, and injects the JS bundle. function rewriteHTML(html, version) { html = html.replace(/]*href=["'][^"']*assets\/sunscope\.css[^"']*["'][^>]*>/gi, ''); html = html.replace(/]*src=["'][^"']*assets\/js\/[^"']*["'][^>]*><\/script>/gi, ''); + // Rewrite standalone about.css reference to versioned minified file. + html = html.replace( + /(]*href=["'][^"']*assets\/)about\.css(["'][^>]*>)/gi, + '$1about.min.css?v=' + version + '$2' + ); const css = ' '; const js = ' '; html = html.replace('', css + '\n' + js + '\n'); @@ -138,7 +144,7 @@ async function build() { // 4. Process HTML files console.log(' Processing HTML...'); const version = bumpVersion(); - for (const htmlFile of ['index.html', 'about.html']) { + for (const htmlFile of ['index.html', 'about.html', 'faq.html']) { const src = path.join(ROOT, htmlFile); if (!fs.existsSync(src)) continue; const updated = rewriteHTML(fs.readFileSync(src, 'utf8'), version); diff --git a/faq.html b/faq.html index c4fd5dd..a91672c 100644 --- a/faq.html +++ b/faq.html @@ -30,8 +30,8 @@ {"@type":"Question","name":"What is the difference between UTCI and heat index?","acceptedAnswer":{"@type":"Answer","text":"Heat index is a simple table-based formula that adjusts air temperature for humidity only - it ignores wind and solar radiation entirely. UTCI is a full physiological model accounting for air temperature, humidity, wind speed, and mean radiant temperature from solar radiation. In sunny or windy conditions the two values can differ by 10-20 degrees. UTCI is the standard used in European heat-health warning systems."}}, {"@type":"Question","name":"Why does SunScope sometimes show a much higher temperature than my regular weather app?","acceptedAnswer":{"@type":"Answer","text":"On clear sunny days, direct solar radiation heats your skin significantly - sometimes adding 10 degrees or more to what the air temperature alone would suggest. SunScope calculates mean radiant temperature from real shortwave radiation forecast data. Standard weather apps ignore solar radiation entirely and only report air temperature or basic wind chill."}}, {"@type":"Question","name":"Why does SunScope sometimes show a lower temperature than my regular weather app?","acceptedAnswer":{"@type":"Answer","text":"Wind chill and precipitation both reduce felt temperature. If it is raining or blustery, the UTCI+P value will be noticeably lower than the thermometer reading. A 15 degree day with heavy rain and a strong wind can feel closer to 8 or 9 degrees. SunScope captures this; most apps do not."}}, - {"@type":"Question","name":"How do I read the SunScope table?","acceptedAnswer":{"@type":"Answer","text":"Each row is one hour of the day. The most important column is UTCI+P - the felt temperature accounting for all weather factors combined. Colour coding tells you comfort at a glance: blue means cold, green means comfortable, yellow and orange mean warm or hot, red means dangerous heat stress. Switch between profiles - Basic, Home, Vehicle, Farming - using the buttons above the table."}}, - {"@type":"Question","name":"What do the profiles Basic, Home, Vehicle, and Farming show?","acceptedAnswer":{"@type":"Answer","text":"Each profile is a curated set of columns. Basic shows core weather: felt temperature, sky, wind, rain. Home adds indoor building temperature and soil moisture. Vehicle adds car cabin temperature, soil moisture, and visibility. Farming adds dew point, soil temperature at two depths, soil moisture, and wind direction for spray timing. SunScope Extra lets you build a fully custom column layout."}}, + {"@type":"Question","name":"How do I read the SunScope table?","acceptedAnswer":{"@type":"Answer","text":"Each row is one hour of the day. The most important column is UTCI+P - the felt temperature accounting for all weather factors combined. Colour coding tells you comfort at a glance: blue means cold, green means comfortable, yellow and orange mean warm or hot, red means dangerous heat stress. Switch between profiles using the buttons and dropdowns above the table - Basic, Home, Vehicle, then Places and Activities dropdowns for location and activity-specific views. Hover any column header for a plain-language description of what it shows."}}, + {"@type":"Question","name":"What do the different profiles and dropdowns show?","acceptedAnswer":{"@type":"Answer","text":"Each profile is a curated set of columns. Basic shows core weather: felt temperature, sky, wind, rain. Home adds indoor building temperature. Vehicle adds car cabin temperature, soil moisture, and visibility. The Places dropdown offers Urban, Beach, Events, Park, Airport (free) plus Festival and Construction (Extra). The Activities dropdown offers Farming, Cycling, Running, and Dog Walking (free) plus Sailing, Winter Sports, Naturist, Hiking, Photography, and Fishing (Extra). Temps and Custom are Extra-only."}}, {"@type":"Question","name":"How do I set or change my location?","acceptedAnswer":{"@type":"Answer","text":"Use the search bar at the top of the forecast page. Type any city, town, village, or postcode and select from the dropdown results. SunScope works for locations worldwide. Your last searched location is remembered automatically the next time you visit."}}, {"@type":"Question","name":"What UV level is dangerous?","acceptedAnswer":{"@type":"Answer","text":"WHO UV index scale: 1-2 Low, no protection needed for short exposure. 3-5 Moderate, wear sunscreen and a hat for over 30 minutes outside. 6-7 High, seek shade during midday, apply SPF 30+. 8-10 Very High, minimise direct sun 11am-3pm. 11+ Extreme, avoid outdoor exposure during peak hours. In the UK, UV 6+ is common on clear summer days May-August."}}, {"@type":"Question","name":"How long until I get sunburn today?","acceptedAnswer":{"@type":"Answer","text":"It depends on the UV index and your skin type. SunScope shows a Burn time column estimating minutes to the sunburn threshold (one Minimal Erythemal Dose). At UV 8+, fair skin types I and II can burn in under 10 minutes. Medium skin types have around 20-25 minutes. Darker skin has more natural protection but is not immune. Burn time assumes no sunscreen and no shade."}}, @@ -60,7 +60,7 @@ {"@type":"Question","name":"Why does the sky display show the wrong time of day?","acceptedAnswer":{"@type":"Answer","text":"The sky scope shows current conditions only - the actual time right now, not the hour you are browsing in the table. The sun position, sky colour, and glow intensity are calculated from real solar elevation and radiation data for the current moment. If you are looking at a future hour in the forecast table, the sky display stays locked to now by design."}}, {"@type":"Question","name":"How far ahead does the forecast go?","acceptedAnswer":{"@type":"Answer","text":"The free tier shows 3 days of hourly data. SunScope Extra unlocks 14 days. The forecast auto-refreshes every 5 minutes while the page is open so the current hour always reflects the latest data from Open-Meteo. No manual reload needed."}}, {"@type":"Question","name":"How accurate is SunScope?","acceptedAnswer":{"@type":"Answer","text":"SunScope uses Open-Meteo data from ECMWF and national meteorological services - the same models used by professional forecasters. The UTCI calculation follows the peer-reviewed BrΓΆde 2012 polynomial exactly. Derived columns such as vehicle temperature, indoor temperature, and concrete surface are physics-based estimates that vary based on local factors like building construction, shading, and surface colour. Treat them as well-informed estimates rather than precise measurements."}}, - {"@type":"Question","name":"Is SunScope free?","acceptedAnswer":{"@type":"Answer","text":"The core forecast - Basic, Home, Vehicle, Farming, and Places variants (Urban, Beach, Events) - is free for any location worldwide with no account required. SunScope Extra at 2 pounds per month unlocks 14-day forecasts, specialist Places variants (Festival, Winter Sports, Naturist, Sailing), the Temps comparison profile, and Custom column control."}}, + {"@type":"Question","name":"Is SunScope free?","acceptedAnswer":{"@type":"Answer","text":"The core forecast is free for any location worldwide with no account required. Free includes Basic, Home, Vehicle, the Places variants Urban, Beach, Events, Park, and Airport, and the Activities variants Farming, Cycling, Running, and Dog Walking. SunScope Extra at 2 pounds per month unlocks 14-day forecasts, specialist Places variants (Festival, Construction), specialist Activities variants (Sailing, Winter Sports, Naturist, Hiking, Photography, Fishing), the Temps comparison profile, and Custom column control."}}, {"@type":"Question","name":"Is there a SunScope mobile app?","acceptedAnswer":{"@type":"Answer","text":"SunScope is a web app that works on any device through your browser - no installation needed. On iPhone: open in Safari, tap Share, then Add to Home Screen. On Android: open in Chrome, tap the three-dot menu, then Add to Home Screen. It appears as an icon on your phone just like a regular app and opens directly to the forecast."}}, {"@type":"Question","name":"What data sources does SunScope use?","acceptedAnswer":{"@type":"Answer","text":"Forecast data comes from Open-Meteo, which aggregates ECMWF, GFS, and national meteorological service models. UTCI follows the BrΓΆde et al. 2012 polynomial. Air quality, visibility, and pollen data come from the Copernicus CAMS forecast via the Open-Meteo Air Quality API. Geolocation search uses the Open-Meteo geocoding API."}}, {"@type":"Question","name":"Does SunScope work outside the UK?","acceptedAnswer":{"@type":"Answer","text":"Yes - SunScope works for any location worldwide. Search for any city, town, or village using the search bar. The indoor temperature model offers seven building types so you can match your building wherever you are. All other columns - UTCI, vehicle, UV, soil, concrete - are fully location-agnostic."}} @@ -130,12 +130,12 @@
How do I read the SunScope table? -

Each row in the table is one hour of the day, with the time shown in the first column. The most important column is UTCI+P - the felt temperature accounting for air temperature, humidity, wind, solar radiation, and rainfall all combined.

Colour coding tells you how comfortable each hour will be at a glance: blue shades mean cold, green means comfortable, yellow and orange mean warm or hot, and red means dangerous heat stress. Other columns show vehicle cabin temperature, indoor building temperature, UV index, burn time, concrete surface temperature, soil data, air quality, and pollen. Switch between profiles - Basic, Home, Vehicle, Farming - using the buttons above the table. Hover any column header for a plain-language description of what it shows.

+

Each row in the table is one hour of the day, with the time shown in the first column. The most important column is UTCI+P - the felt temperature accounting for air temperature, humidity, wind, solar radiation, and rainfall all combined.

Colour coding tells you how comfortable each hour will be at a glance: blue shades mean cold, green means comfortable, yellow and orange mean warm or hot, and red means dangerous heat stress. Other columns show vehicle cabin temperature, indoor building temperature, UV index, burn time, concrete surface temperature, soil data, air quality, and pollen. Switch between profiles using the buttons and dropdowns above the table - Basic, Home, Vehicle, then the Places and Activities dropdowns for location and activity-specific views. Hover any column header for a plain-language description of what it shows.

- What do the different profiles (Basic, Home, Vehicle, Farming) show? -

Each profile is a curated set of columns relevant to a different activity or situation.

Basic shows the core weather picture: felt temperature, sky conditions, wind, and precipitation.
Home adds indoor building temperature for your selected building type, plus soil moisture.
Vehicle adds car or motorhome cabin temperature, soil moisture for pitch assessment, and visibility.
Farming adds dew point, soil temperature at two depths, soil moisture, and wind direction for spray timing decisions.

SunScope Extra lets you build a fully custom column layout if none of the presets match what you need.

+ What do the different profiles and dropdowns show? +

Each profile is a curated set of columns relevant to a different activity or situation.

Basic shows the core weather picture: felt temperature, sky conditions, wind, and precipitation.
Home adds indoor building temperature for your selected building type, humidity, and dew point.
Vehicle adds car or motorhome cabin temperature, soil moisture for pitch assessment, and visibility.

The Places dropdown offers Urban, Beach, Events, Park/Picnic, and Airport/Travel (all free), plus Festival and Construction (Extra). The Activities dropdown includes Farming, Cycling, Running, and Dog Walking (free), plus Sailing, Winter Sports, Naturist, Hiking, Photography, and Fishing (Extra).

SunScope Extra also unlocks Temps (a side-by-side temperature comparison) and Custom, which lets you build a fully custom column layout.

@@ -313,7 +313,7 @@
Is SunScope free? -

The core forecast - Basic, Home, Vehicle, Farming, and the Places variants (Urban, Beach, Events) - is free for any location worldwide with no account required.

SunScope Extra (2 pounds per month) unlocks 14-day forecasts, specialist Places variants (Festival, Winter Sports, Naturist, Sailing), the Temps comparison profile, and Custom column control where you choose exactly which columns appear and in what order.

+

The core forecast is free for any location worldwide with no account required. Free includes Basic, Home, Vehicle, the Places variants Urban, Beach, Events, Park/Picnic, and Airport/Travel, and the Activities variants Farming, Cycling, Running, and Dog Walking.

SunScope Extra (2 pounds per month) unlocks 14-day forecasts, the specialist Places variants Festival and Construction, the specialist Activities variants Sailing, Winter Sports, Naturist, Hiking, Photography, and Fishing, the Temps comparison profile, and Custom column control where you choose exactly which columns appear and in what order.