2017年2月28日 星期二

Unicode & code conversion study

UTF-8 vs UTF-16
https://zh.wikipedia.org/wiki/UTF-8

2017年2月26日 星期日

Arduino 資料收集

介紹擴充板
S4A介紹
S4A實驗(台中教育局)
葉難


買過的買家
http://class.ruten.com.tw/user/index00.php?s=buyic&d=3085726&o=0&m=1


RJBot port到Arduino的環境
1. Arduino 使用javascript控制GPIO的能力  https://create.arduino.cc/projecthub/glowascii/basic-arduino-javascript-workshop-88c8df
2. GPIO的https://create.arduino.cc/projecthub/glowascii/basic-arduino-javascript-workshop-88c8df

3. TJBot Source  https://github.com/ibmtjbot/tjbot
https://www.instructables.com/id/Build-TJ-Bot-Out-of-Cardboard/


http://adilmoujahid.com/posts/2015/07/practical-introduction-iot-arduino-nodejs-plotly/

2017年2月23日 星期四

Robot之路 - Day2

找了很多資料都不太清楚
最後找到這篇才做出第一個facebook chatbot
https://github.com/jw84/messenger-bot-tutorial


















學到
  • 新增git remote 
    • =>https://git-scm.com/book/zh-tw/v1/Git-%E5%9F%BA%E7%A4%8E-%E8%88%87%E9%81%A0%E7%AB%AF%E5%8D%94%E5%90%8C%E5%B7%A5%E4%BD%9C
  • 新增粉絲專頁, 設定WebHook
  • 設定Procfile for hekuro

  • https://www.sitepoint.com/building-facebook-chat-bot-node-heroku/

下一關:
  • 整合這個殼跟匯率的爬蟲

2017年2月22日 星期三

Chatbot之路 - Day1 寫一隻抓匯率的chatbot

需求:

  • 讀台銀的匯率網頁
  • 使用者可以輸入“日元” 回傳即時匯價
  • 到價通知
    • 系統預設的匯價
    • 使用者設定匯價
  • 畫面下方預設選項
元件:
  • server端http request抓出幣別-匯價
學習
  • 在Heroku上面部署node.js
  • 串Line/FB前端  
  • 資料庫
進度
2/23
  • 申請Heroku/Line developer 帳號 
  • 後端parse匯率done
  • Problem: WebHook 測試一直失敗