Skip to content

Instantly share code, notes, and snippets.

@jutememo
Created December 1, 2011 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jutememo/1418412 to your computer and use it in GitHub Desktop.
Save jutememo/1418412 to your computer and use it in GitHub Desktop.
var blockNo = '47662';
var now = new Date();
location.href = 'http://www.data.jma.go.jp/obd/stats/etrn/view/hourly_s1.php?block_no='
+ blockNo
+ '&year='
+ now.getFullYear()
+ '&month='
+ (now.getMonth() + 1)
+ '&day='
+ (now.getDate() - 1).toString()
+ '&view=p1';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment