|
|
@ -1,6 +1,6 @@ |
|
|
|
const log = console.log |
|
|
|
const fs = require('fs') |
|
|
|
const {table} = require('table') |
|
|
|
const {table, getBorderCharacters} = require('table') |
|
|
|
|
|
|
|
const HOURS_AHEAD = 12 |
|
|
|
|
|
|
@ -30,7 +30,8 @@ jsonReader('./dark-sky.json', (err, weatherInfo) => { |
|
|
|
0: { alignment: 'center' }, |
|
|
|
1: { alignment: 'center' }, |
|
|
|
2: { alignment: 'center' }, |
|
|
|
} |
|
|
|
}, |
|
|
|
border: getBorderCharacters(`ramac`) |
|
|
|
} |
|
|
|
const infoList = [['H', '°C', '%P']] |
|
|
|
for (let i = 0; i < HOURS_AHEAD; i++) { |
|
|
|