//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();