JavaScript app for displaying fall color information from the Minnesota DNR
- nodejs
- npm
- AWS Lambda
- AWS S3
- Run
npm install
- Copy config.example.json to config.json and configure config.json.
- Upload a zip to Amazon Lambda containing pollAndStoreGeoJSONFromDNR.js, node_modules/, config.json and mn_feature.json.
- Run the Lambda function.
- Configure the first line of public/colormap.js to match your S3 configuration.
- Optionally, host the content in public/ in S3 or your web server.
- Navigate to public/colormap.html.
This function seems to work best with 512MB of memory and a 10 second timeout. Most of the time, the function completes within 1 second (if no update is needed). For running the function on a schedule, investigate AWS CloudWatch cron.
A demo is available at fall.arctair.com