Code Monkey home page Code Monkey logo

jma-ruby's Introduction

jma-ruby

Display local weather in Japan with BitBar/SwiftBar/xBar

日本気象情報をBitBar/SwiftBar/xBarで表示

気象庁ホームページリニューアル版に対応(ほとんど)JSON万歳 \(^o^)/

mapgen.rbで白地図を作成、地域コードをサイトまたはJSONから取得、スクリプト冒頭に書き込むこと

DarkSkyサービス終了に向け、観測データは気象庁から

OpenWeather、VisualCrossing、ClimaCellでそれを補足(任意)

Requires ruby >= 2.4, imagemagick, rubygems: activesupport, nokogiri, faraday, rmagick, nkf, mk_sunmoon

screenshot

凡例

 気温(体感温度※)一日間の最低最高気温、観測時

湿 相対湿度(露点)

 気圧

 方向、速度(一日間の突風、観測時)

雨/雪 一時間の降水量(一日間の降水量)

 雲量(雲の高さ〈ClimaCell〉)

 視程

 気象庁データの観測時間

 【一ヶ月間の震度3以上で最近の地震】

   マグニチュード(設定観測地点における震度)震源、深さ、観測日時


予報 最低最高気温 誤差幅表記の例: 2̤0̇ => 18〜20〜21度

                  2͔0͐ => ≤16〜20〜≥24度(±4以上)

   降水確率 10% _▁▂▃▄▅▆▇█▓ 100%

※ 体感温度は有効温度の公式によって計算される (参照).


地図データは国土地理院の白地図を基に作成

アイコンは、「Climacons」Adam Whitcroft氏が作成【出典】(矢印などは自作)

jma-ruby's People

Contributors

tsurezuregusa avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

matryer largo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.