Created
March 23, 2021 19:47
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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