V 2.03 Noch ein paar Anpassungen

This commit is contained in:
2026-04-01 14:14:15 +02:00
parent 6d1d60a9c1
commit 96a54b69d2
8 changed files with 77 additions and 37 deletions

View File

@@ -24,7 +24,7 @@ import { logit, logerror } from './logit.js'
import { DateTime } from 'luxon'
import fs from 'fs'
import mod_getopt from 'posix-getopt'
import pkg from './package.json' assert { type: "json" }
const pkg = JSON.parse(fs.readFileSync(new URL('./package.json', import.meta.url), 'utf8'))
// import nodeSchedule from 'node-schedule'
@@ -76,7 +76,7 @@ const fetchNewData = async (args) => {
function parse_cmdline(argv) {
let parser = new mod_getopt.BasicParser('i(influx)m(mongo)t:(typ)h(help)v(version)',argv);
let option;
let ret = {influx: true, mongo: true, typ: TYP}
let ret = {influx: false, mongo: true, typ: TYP}
while((option = parser.getopt()) !== undefined) {
switch(option.option) {
case 'i':