Skip to content

Instantly share code, notes, and snippets.

@jbuchbinder
Created March 23, 2021 19:47
Show Gist options
  • Save jbuchbinder/483071e8023a0d512f251d872f8d94ff to your computer and use it in GitHub Desktop.
Save jbuchbinder/483071e8023a0d512f251d872f8d94ff to your computer and use it in GitHub Desktop.
PhantomJS script to produce an image of the CT daily forest fire danger rating
// phantomjs script for obtaining CT daily forest fire report
var p = require('webpage').create();
p.viewportSize = { width: 480, height: 265 };
p.clipRect = { top: 50, left: 0, width: 480, height: 215 };
p.open('https://www.depdata.ct.gov/forestry/forestfire/firerpt.cshtml', function() {
p.render('ff.png');
phantom.exit();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment