Rebrand for linhanced 0.1

This commit is contained in:
mrkmntal 2026-04-14 13:47:51 -04:00
commit 845b34992e
14 changed files with 27 additions and 28 deletions

View file

@ -10,4 +10,4 @@ This form is not for reporting a location that you can not find from the search
Use this form to help us rename airports, points of interest and other data provided from the API (rarely updated) to a better name. For example the airport in Broomfield colorado was renamed from "Jeffco" in the API to "Rocky Mountain Metro" it's new name.
You can also make a pull request on the `[station-overrides.mjs](https://github.com/netbymatt/ws4kp/blob/main/datagenerators/stations-states.mjs)` file which includes instructions on how to make the change directly. This is the preferred method.
You can also make a pull request on the `[station-overrides.mjs](https://codeberg.org/markmental/ws4kp-linhanced/src/branch/main/datagenerators/stations-states.mjs)` file which includes instructions on how to make the change directly. This is the preferred method.

View file

@ -1,5 +1,3 @@
![Weatherstar 4000+ Current Conditions](https://github.com/netbymatt/ws4kp/blob/main/server/images/social/1200x600.png)
# ws4kp-linhanced
`ws4kp-linhanced` is a Linux-focused fork of [`netbymatt/ws4kp`](https://github.com/netbymatt/ws4kp) by `markmental`.

View file

@ -3,7 +3,7 @@ import https from 'https';
const get = (url) => new Promise((resolve, reject) => {
const headers = {};
headers['user-agent'] = '(WeatherStar 4000+ data generator, ws4000@netbymatt.com)';
headers['user-agent'] = '(WeatherStar 4000+: Linhanced data generator, marky611@gmail.com)';
https.get(url, {
headers,

8
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "ws4kp",
"version": "6.5.4",
"name": "ws4kp-linhanced",
"version": "0.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "ws4kp",
"version": "6.5.4",
"name": "ws4kp-linhanced",
"version": "0.1",
"license": "MIT",
"dependencies": {
"dotenv": "^17.0.1",

View file

@ -1,7 +1,7 @@
{
"name": "ws4kp",
"version": "6.5.4",
"description": "Welcome to the WeatherStar 4000+ project page!",
"name": "ws4kp-linhanced",
"version": "0.1",
"description": "WeatherStar 4000+: Linhanced - A Linux-focused fork of the WeatherStar 4000+ project",
"main": "index.mjs",
"type": "module",
"scripts": {
@ -18,14 +18,14 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/netbymatt/ws4kp.git"
"url": "git+https://codeberg.org/markmental/ws4kp-linhanced"
},
"author": "Matt Walsh",
"author": "markmental",
"license": "MIT",
"bugs": {
"url": "https://github.com/netbymatt/ws4kp/issues"
"url": "https://codeberg.org/markmental/ws4kp-linhanced/issues"
},
"homepage": "https://github.com/netbymatt/ws4kp#readme",
"homepage": "https://codeberg.org/markmental/ws4kp-linhanced",
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"ajv": "^8.17.1",

View file

@ -311,7 +311,7 @@ class HttpCache {
async makeUpstreamRequest(req, res, fullUrl, options = {}, cacheResult = null) {
return new Promise((resolve) => {
const headers = {
'user-agent': options.userAgent || '(WeatherStar 4000+, ws4000@netbymatt.com)',
'user-agent': options.userAgent || '(WeatherStar 4000+: Linhanced, marky611@gmail.com)',
accept: req.headers?.accept || '*/*',
...options.headers,
};

BIN
server/alert/server-obs.mp3 Normal file

Binary file not shown.

View file

@ -1,5 +1,5 @@
{
"name": "WeatherStar 4000+",
"name": "WeatherStar 4000+: Linhanced",
"icons": [
{
"src": "/images/logos/logo192.png",

View file

@ -381,6 +381,7 @@ const screenAudioMap = {
'travel': 'travel-forecast.mp3',
'hourly-graph': 'hourly-graph.mp3',
'hourly': 'hourly-forecast.mp3',
'server-observations': 'server-obs.mp3',
'current-weather': 'current-conditions.mp3',
};

View file

@ -90,7 +90,7 @@ const fetchAsync = async (_url, responseType, _params = {}) => {
// - Static mode (direct requests): Only add User-Agent for api.weather.gov, avoiding CORS preflight issues with other services
const shouldAddUserAgent = !shouldExcludeUserAgent && (window.WS4KP_SERVER_AVAILABLE || _url.toString().match(/api\.weather\.gov/));
if (shouldAddUserAgent) {
headers['user-agent'] = 'Weatherstar 4000+; weatherstar@netbymatt.com';
headers['user-agent'] = 'WeatherStar 4000+: Linhanced; marky611@gmail.com';
}
// combine default and provided parameters

View file

@ -380,7 +380,7 @@ body {
.title {
font-family: Star4000 Large;
font-size: 36px;
font-size: 26px;
color: yellow;
margin-bottom: 0px;
}

File diff suppressed because one or more lines are too long

View file

@ -4,18 +4,18 @@
<head>
<meta charset="utf-8" />
<title>WeatherStar 4000+</title>
<title>WeatherStar 4000+: Linhanced</title>
<meta name="description" content="Web based WeatherStar 4000 simulator that reports current and forecast weather conditions plus a few extras!" />
<meta name="keywords" content="WeatherStar 4000+" />
<meta name="author" content="Matt Walsh" />
<meta name="application-name" content="WeatherStar 4000+" />
<meta name="keywords" content="WeatherStar 4000+, Linhanced, WeatherStar" />
<meta name="author" content="markmental" />
<meta name="application-name" content="WeatherStar 4000+: Linhanced" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1">
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="manifest" href="manifest.json" />
<link rel="icon" href="images/logos/logo192.png" />
<link rel="apple-touch-icon" sizes="180x180" href="images/logos/app-icon-180.png" />
<meta property="og:image" content="https://weatherstar.netbymatt.com/images/social/1200x600.png">
<meta property="og:image" content="https://codeberg.org/markmental/ws4kp-linhanced/raw/branch/main/server/images/social/1200x600.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="627">
<link rel="prefetch" href="fonts/Star4000.woff" as="font" type="font/woff" crossorigin>
@ -98,7 +98,7 @@
<div id="container">
<div id="loading" width="640" height="480">
<div>
<div class="title">WeatherStar 4000+</div>
<div class="title">WeatherStar 4000+: Linhanced</div>
<div class="version">v<%- version %></div>
<div class="instructions">Enter your location above to continue</div>
</div>

View file

@ -1,4 +1,4 @@
<%- include('header.ejs', {titleDual:{ top: 'WeatherStar' , bottom: '4000+ v' + version }, hasTime: true}) %>
<%- include('header.ejs', {titleDual:{ top: 'WeatherStar' , bottom: '4000+: LH v' + version }, hasTime: true}) %>
<div class="main has-box progress">
<div class="container">
<div class="item template">
@ -19,4 +19,4 @@
<div class="progress-bar"></div>
<div class="cover"></div>
</div>
</div>
</div>