Setup (tested on Mac, un-tested on PC)
-
npm install -
brew install ffmpeg -
brew install imagemagick -
Add crontab w/
crontab -einside the Mac Terminal Inside of default VIM, hitito enable editing/insertAdd Cron Job
SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 58 1,7,13,19 * * * /Users/private-mac-server/code/noaa-hrrr-smoke-video-generator/index.shRun
which nodeto get path Enable full disk access tocronHit ESC key, then:wq!and Return key This will run 1 hour 58 minutes after the 12 hour UTC clock +6 hour intervals - just when NOAA makes the full 48-hour forecast available. -
Setup Firebase Project and add JSON service file to root of directory
Normal Usage (Node Cron Schedule)
node index.js
Dev Usage (Immediately-invoked Function Expressions)
node index.js dev
TODO
- add smoke key / legend to each image