Rebrand for linhanced 0.1
This commit is contained in:
parent
cb4bdbf92d
commit
845b34992e
14 changed files with 27 additions and 28 deletions
2
.github/ISSUE_TEMPLATE/naming _issue.md
vendored
2
.github/ISSUE_TEMPLATE/naming _issue.md
vendored
|
|
@ -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.
|
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.
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||

|
|
||||||
|
|
||||||
# ws4kp-linhanced
|
# ws4kp-linhanced
|
||||||
|
|
||||||
`ws4kp-linhanced` is a Linux-focused fork of [`netbymatt/ws4kp`](https://github.com/netbymatt/ws4kp) by `markmental`.
|
`ws4kp-linhanced` is a Linux-focused fork of [`netbymatt/ws4kp`](https://github.com/netbymatt/ws4kp) by `markmental`.
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import https from 'https';
|
||||||
|
|
||||||
const get = (url) => new Promise((resolve, reject) => {
|
const get = (url) => new Promise((resolve, reject) => {
|
||||||
const headers = {};
|
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, {
|
https.get(url, {
|
||||||
headers,
|
headers,
|
||||||
|
|
|
||||||
8
package-lock.json
generated
8
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "ws4kp",
|
"name": "ws4kp-linhanced",
|
||||||
"version": "6.5.4",
|
"version": "0.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "ws4kp",
|
"name": "ws4kp-linhanced",
|
||||||
"version": "6.5.4",
|
"version": "0.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dotenv": "^17.0.1",
|
"dotenv": "^17.0.1",
|
||||||
|
|
|
||||||
14
package.json
14
package.json
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "ws4kp",
|
"name": "ws4kp-linhanced",
|
||||||
"version": "6.5.4",
|
"version": "0.1",
|
||||||
"description": "Welcome to the WeatherStar 4000+ project page!",
|
"description": "WeatherStar 4000+: Linhanced - A Linux-focused fork of the WeatherStar 4000+ project",
|
||||||
"main": "index.mjs",
|
"main": "index.mjs",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
@ -18,14 +18,14 @@
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"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",
|
"license": "MIT",
|
||||||
"bugs": {
|
"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": {
|
"devDependencies": {
|
||||||
"@eslint/eslintrc": "^3.3.1",
|
"@eslint/eslintrc": "^3.3.1",
|
||||||
"ajv": "^8.17.1",
|
"ajv": "^8.17.1",
|
||||||
|
|
|
||||||
|
|
@ -311,7 +311,7 @@ class HttpCache {
|
||||||
async makeUpstreamRequest(req, res, fullUrl, options = {}, cacheResult = null) {
|
async makeUpstreamRequest(req, res, fullUrl, options = {}, cacheResult = null) {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
const headers = {
|
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 || '*/*',
|
accept: req.headers?.accept || '*/*',
|
||||||
...options.headers,
|
...options.headers,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
BIN
server/alert/server-obs.mp3
Normal file
BIN
server/alert/server-obs.mp3
Normal file
Binary file not shown.
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "WeatherStar 4000+",
|
"name": "WeatherStar 4000+: Linhanced",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "/images/logos/logo192.png",
|
"src": "/images/logos/logo192.png",
|
||||||
|
|
|
||||||
|
|
@ -381,6 +381,7 @@ const screenAudioMap = {
|
||||||
'travel': 'travel-forecast.mp3',
|
'travel': 'travel-forecast.mp3',
|
||||||
'hourly-graph': 'hourly-graph.mp3',
|
'hourly-graph': 'hourly-graph.mp3',
|
||||||
'hourly': 'hourly-forecast.mp3',
|
'hourly': 'hourly-forecast.mp3',
|
||||||
|
'server-observations': 'server-obs.mp3',
|
||||||
'current-weather': 'current-conditions.mp3',
|
'current-weather': 'current-conditions.mp3',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
// - 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/));
|
const shouldAddUserAgent = !shouldExcludeUserAgent && (window.WS4KP_SERVER_AVAILABLE || _url.toString().match(/api\.weather\.gov/));
|
||||||
if (shouldAddUserAgent) {
|
if (shouldAddUserAgent) {
|
||||||
headers['user-agent'] = 'Weatherstar 4000+; weatherstar@netbymatt.com';
|
headers['user-agent'] = 'WeatherStar 4000+: Linhanced; marky611@gmail.com';
|
||||||
}
|
}
|
||||||
|
|
||||||
// combine default and provided parameters
|
// combine default and provided parameters
|
||||||
|
|
|
||||||
|
|
@ -380,7 +380,7 @@ body {
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-family: Star4000 Large;
|
font-family: Star4000 Large;
|
||||||
font-size: 36px;
|
font-size: 26px;
|
||||||
color: yellow;
|
color: yellow;
|
||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
server/styles/ws.min.css
vendored
2
server/styles/ws.min.css
vendored
File diff suppressed because one or more lines are too long
|
|
@ -4,18 +4,18 @@
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<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="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="keywords" content="WeatherStar 4000+, Linhanced, WeatherStar" />
|
||||||
<meta name="author" content="Matt Walsh" />
|
<meta name="author" content="markmental" />
|
||||||
<meta name="application-name" content="WeatherStar 4000+" />
|
<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="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1">
|
||||||
<meta name="mobile-web-app-capable" content="yes" />
|
<meta name="mobile-web-app-capable" content="yes" />
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||||
<link rel="manifest" href="manifest.json" />
|
<link rel="manifest" href="manifest.json" />
|
||||||
<link rel="icon" href="images/logos/logo192.png" />
|
<link rel="icon" href="images/logos/logo192.png" />
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="images/logos/app-icon-180.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:width" content="1200">
|
||||||
<meta property="og:image:height" content="627">
|
<meta property="og:image:height" content="627">
|
||||||
<link rel="prefetch" href="fonts/Star4000.woff" as="font" type="font/woff" crossorigin>
|
<link rel="prefetch" href="fonts/Star4000.woff" as="font" type="font/woff" crossorigin>
|
||||||
|
|
@ -98,7 +98,7 @@
|
||||||
<div id="container">
|
<div id="container">
|
||||||
<div id="loading" width="640" height="480">
|
<div id="loading" width="640" height="480">
|
||||||
<div>
|
<div>
|
||||||
<div class="title">WeatherStar 4000+</div>
|
<div class="title">WeatherStar 4000+: Linhanced</div>
|
||||||
<div class="version">v<%- version %></div>
|
<div class="version">v<%- version %></div>
|
||||||
<div class="instructions">Enter your location above to continue</div>
|
<div class="instructions">Enter your location above to continue</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -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="main has-box progress">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="item template">
|
<div class="item template">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue