weather-streamoverlay/test.js

20 lines
542 B
JavaScript
Raw Permalink Normal View History

2022-05-20 07:55:08 +02:00
//import SensorHub from 'dockerpi-sensorhub';
//
//const hub = new SensorHub();
//
//if (!hub || !hub.read) throw new Error('Unable to init the hub.');
//hub.read().then(x => {
// console.log('There are the sensorHub values:', x);
// console.log(x.externalTemp);
//});
import { dirname } from 'path';
import { fileURLToPath } from 'url';
import { Storage } from "./controller/storage.js";
import { Weather } from './controller/weather_api.js';
Storage.dir = dirname(fileURLToPath(import.meta.url));
let z = new Weather();
//z.writeFile();