Giter Club home page Giter Club logo
Weather Bot TW(氣象機器人) photo

weather-bot Goto Github PK

repos: 6.0 gists: 0.0

Name: Weather Bot TW(氣象機器人)

Type: Organization

Bio: A bot for weather question 回答任何氣象問題的機器人

氣象喵 WxKitty

Build Status

「氣象喵」是一個氣象機器人,自動回應有關天氣的訊息(原名:氣象機器人)

"WxKitty" is a weather chatbot that answers all questions about weather. English here

bot_home

支援以下平台

對此專案有興趣的話,可以閱讀這篇:來寫個氣象機器人吧!

開始使用

Line

掃 QR code 或是點擊「加朋友」,你可以把「氣象喵」加入群組喔!

QRcode

加入好友

Telegram

連結: https://t.me/weather_tw_bot

你可以直接使用「氣象喵」,或是加入到 telegram 的群組

Messenger(棄用)

已不支援 QQ

粉絲專頁

FB: http://fb.me/WxKitty.tw

範例

demo_enter

demo1

demo2

demo3

demo4

demo5

demo6

文件

【快速使用(文字輸入)】
- 預報(圖)
- 地震(圖)
- 空氣品質(圖)
- 衛星雲圖(圖)
- [地區]天氣(例如:東京天氣)
- [縣市][時間]預報 (例如:明天晚上台北預報)
- [台灣地區]概況(例如:台北概況、士林概況)
- [地區]空氣(例如:北京空氣)
- 辨識雲 / 雲辨識
�- 颱風
- [地區]喵喵(貓圖氣象)
- [地區]豬豬(春節氣象)

【語音輸入】
支援語音辨識,使用 Line 的錄音功能,念出指令,例如說出「台北天氣」錄下並送出

【進階指令】
<地區天氣>:直接查詢地區的天氣狀況(支援英文查詢國外地區)
 *[地址]天氣:取得地區氣象數據
    例如:高雄市天氣、淡水天氣
         new york 天氣、東京天氣

 *[縣市][時間]天氣:取得縣市預報
    例如:明天台中天氣、明天17:00台南天氣

 *[縣市]概況:臺灣的縣市天氣概況
    例如:全臺概況、金門縣概況

  *[地區]喵喵:背景是貓圖的氣象圖片
    例如:關渡喵喵、雲林喵喵

  *[地區]豬豬:帶有春節賀詞以及背景的氣象圖片
    例如:彰化豬豬、淡水豬豬

<預報>:台灣縣市預報
 *預報:取得台灣地區預報圖

 *[縣市][時間]預報
    例如:明天晚上台北預報
 *[縣市][未來時間]天氣
    例如:明天台中天氣、明天17:00台南天氣

 註:目前只支援 7 天內台灣縣市預報

<氣象圖>:提供氣象圖的連結
 *空汙
 *預報
 *天氣圖
 *衛星雲
 *雷達
 *颱風

<辨識雲>:上傳圖片,回答雲種
 在個人模式可以先傳圖片,機器人會問你要不要分析
 群組模式必須先使用本指令,再上傳圖片
 Telegram 必須以「照片」上傳才有效

<氣象觀測站>:查詢單一測站的詳細數據
 *[觀測站名稱]觀測
    例如:宜蘭觀測、士林觀測
 *觀測站清單:用來查詢有哪些觀測站

<空氣品質查詢>:查詢地區或測站空氣資訊
 *[地區]空氣
    例如:紐約空氣、北京空氣、台北空氣
 *[監測站名稱]空氣
    例如:基隆空氣、淡水空氣
 *監測站清單:用來查詢有哪些台灣監測站

<校園觀測網>:查詢臺北市國中小校園氣象站資料
 *[校園名稱]
    例如:北投國小、雨聲國小
 *校園氣象:用來查詢有哪些校園監測站

<其他>
 *氣象局/CWB
 *回報問題/issue
 *Github/原始碼

Develop

Currently this repo is connecting with:

The bot use webhook to receive message and reply to users.

The two bot are synced to master.

For more detail about line bot, can visit https://developers.line.me/

How to test

Console mode testing

Console mode is an interactive mode that you can test in local.

npm run console

Test the real bot

Test bot(line) link: https://line.me/R/ti/p/pOGQWj-4j-

Steps:

  1. add the test line bot above as friend
  2. send a PR
  3. ask @tigercosmos to help you call the bot

For user IDs in white list, create comment bot try in PR.

Setup

Dependencies

node-canvas

Linux:

sudo apt-get install libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev build-essential g++

MacOS:

brew install pkg-config cairo pango libpng jpeg giflib
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PATH="/usr/local/opt/icu4c/bin:$PATH
export PATH="/usr/local/opt/icu4c/sbin:$PATH
cp /usr/local/Cellar/libpng/1.6.34/lib/pkgconfig/libpng.pc /usr/local/lib/pkgconfig
cp /usr/local/Cellar/fontconfig/2.12.6/lib/pkgconfig/fontconfig.pc /usr/local/lib/pkgconfig

Run

Make sure npm and NodeJS(v8.11.2) have installed.

note: it is known that not work in NodeJS v10

git clone https://github.com/weather-bot/weather-bot
cd weather-bot
npm install
npm start

開發者

License

MIT

Weather Bot TW(氣象機器人)'s Projects

chrono icon chrono

Javascript 時間自然語言模組 (fork 中文強化版)

meow icon meow

Create meow image with weather infomation

wxkitty icon wxkitty

氣象喵(氣象機器人) Weather Bot implement on Line, Telegram, and Messenger

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.