Compare commits
2 Commits
78f0209af2
...
19e0a368f7
| Author | SHA1 | Date | |
|---|---|---|---|
|
19e0a368f7
|
|||
|
577a3081af
|
6
index.js
6
index.js
@@ -46,7 +46,7 @@ try {
|
|||||||
const outputDir = configData["outputdir"];
|
const outputDir = configData["outputdir"];
|
||||||
|
|
||||||
if (!Array.isArray(configData["icaos"])) {
|
if (!Array.isArray(configData["icaos"])) {
|
||||||
if (loglevel >= 4) console.warn("icao config must be an array of ICAO codes, using default");
|
if (loglevel >= 4) console.warn("icao config must be an array of ICAO codes, using " + defaultConfig["icaos"]);
|
||||||
configData["icaos"] = defaultConfig["icaos"];
|
configData["icaos"] = defaultConfig["icaos"];
|
||||||
}
|
}
|
||||||
const icaos = configData["icaos"];
|
const icaos = configData["icaos"];
|
||||||
@@ -99,7 +99,7 @@ function checkMetar() {
|
|||||||
|
|
||||||
let items = [];
|
let items = [];
|
||||||
for (let i = 0; i < metars.length; i++) {
|
for (let i = 0; i < metars.length; i++) {
|
||||||
if (newMetar(metars[i]) != undefined)
|
if (metars[i] != undefined)
|
||||||
items.push(newMetar(metars[i]));
|
items.push(newMetar(metars[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -186,6 +186,6 @@ function writeFeed(rss, outputPath) {
|
|||||||
try {
|
try {
|
||||||
fs.writeFileSync(fullPathFile, xmlFeed);
|
fs.writeFileSync(fullPathFile, xmlFeed);
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
console.error(err);
|
if (loglevel >= 3)console.error(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "metar-rss",
|
"name": "metar-rss",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "metar-rss",
|
"name": "metar-rss",
|
||||||
"version": "0.1.0",
|
"version": "1.0.1",
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.15.0",
|
"axios": "^1.15.0",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "metar-rss",
|
"name": "metar-rss",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "Monitors, generates and updates an RSS Feed File for Airport METARs",
|
"description": "Monitors, generates and updates an RSS Feed File for Airport METARs",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user