Languages

Pages

LDR for Weather: Pretty-Printing livedoor weather feed


/* How does it work ? */

This Greasemonkey script pretty-print the feed of livedoor Weather
LDR for Weather
Humm … I spent a lot of time for this scripts.

Update history

  • [2008-02-??] 0.1.0 first version
  • [2008-03-25] 0.2.0 improved: highlight today
  • [2008-03-26] 0.2.1 improved: optimized, cleaned
  • [2008-04-05] 0.2.2 bugfixed: sort by date (radix bug)

/* Install */

This script already uploaded to Userscripts.org. So please install it from this page.
ldr4weather.user.js

/* Settings */

Configurable items:

name description value type
limit Limit display number of days to table. Number
label Display weather name or not. true/false Boolean
interval Interval of clawling. Number
today Highlight color for today’s background. #0066EE or CSS color String

Sample settings

/////////////// configurations ////////////////
var cfg = {
	limit: {
		before: 7,
		after: 6
	},
	label: true,
	interval: {
		first: 50,
		default: 100
	},
	today: '#FFAA59'
}
///////////////////////////////////////////////

/* Conclusion */

As you know, this script doesn’t have generality.
However, I have more feeds I want to apply specific script.
For instance, Secunia. I want to classify and filter the entry of it.
I know you say “Go website!”.

My LDR like emacs …
Well, I’d like to make new script to post message to Twitter from LDR.
And I’m looking for “Ore-Ore LDR”.

enjoy LDR! Wink

3 Comments

Similar Posts:

Trackback URL:

Comments:

  1. nayuta says;
    20 Sep 2008 - 8:37

    こんにちは。
    このScriptを使わせていただいていたのですが、
    Firefoxを3にバージョンアップしてから動かなくなってしまいました。
    パッと見で予報が判るところがとても便利で諦めきれません…。
    勝手な御願いですがFx3以降に対応していただけないものでしょうか?

  2. nayutaさん、こんにちは。
    早速Fx3に対応しましたのでお試しください。
    ついでに最低気温も表示するようにしました。

    LDR for Weather - Userscripts.org

    元々ネタで作ったグリモンでしたが、そこまで気に入って使って
    いただいて本当に嬉しいかぎりです。
    ありがとうございます。

  3. nayuta says;
    12 Nov 2008 - 2:08

    こんにちは。
    まさかこんな瞬間的に対応していただけるとは思いもよらず、
    更新されていたことに気づくのが大幅に遅れてしまいました!
    再び大変重宝しております。
    ありがとう御座いました(^^)

Add a Comment