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