Side Project Document
  • 如果沒能一次成功,那就叫它 1.0 版吧。
  • Stock Price for LINE Notify V1
    • 前言
    • 一、申請玉山富果 API
    • 二、申請 LINE Notify Token
    • 三、環境架設與資料表設定
    • 四、SSIS 設計
      • SSIS 流程圖
      • Move to History Table & Truncate Table
      • Foreach Loop to Get API
      • Lookup File - Chart
      • Lookup File - Quote
      • Join Table to Result Set
      • Post Result Set to LINE Notify
      • Delete Over 3 days Files
      • 事件處理常式
    • 五、安裝教學
  • Stock Price for LINE Notify V2
    • 前言
    • 一、軟體架構與流程圖
    • 二、環境架設與資料表設定
    • 三、Python 程式說明
      • 主程式:Local_Stock_Main.py
      • 取得個股基本資訊:Local_Stock_Meta.py
      • 取得個股交易資訊:Local_Stock_Quote.py
      • 將折線圖發送至 LINE Notify:Local_Stock_Line_Notify.py
      • 資料解密:Local_Encryption.py
      • 排程設定
  • Stock Price for LINE Notify V3
    • 前言
    • 一、軟體架構與流程圖
    • 二、環境架設與資料表設定
    • 三、Python 程式說明
      • Local_Stock_Main.py
      • Local_Stock_Meta.py
      • Local_Stock_Quote.py
      • Local_Stock_Line_Notify.py
      • Create_RSA_Key.py
      • Encrypt_Data.py
      • Decrypt_Data.py
      • 排程設定
      • 加碼:.py 打包成 .exe 執行檔
Powered by GitBook
On this page
  • 環境與 SQL Server
  • 安裝步驟
  1. Stock Price for LINE Notify V1

五、安裝教學

Last updated 3 years ago

環境與 SQL Server

  • .NET Framework 4.7.2

  1. 安裝時請務必勾選安裝 Integration Services 服務,若沒安裝將無法執行封裝,詳見 。

  2. 安裝完後,請確保 SQL Server、SQL Server Agent、Integration Service 三項服務有正常啟動。

  • (請勿下載 2022 版,2022 版本尚未支援 SSIS)

  • 下載 SSDT 套件,下載與安裝方式詳見 。

安裝步驟

  1. 至 下載專案,將安裝說明中 Stock LINE Notify 整資料夾複製到 C 槽根目錄,最終路徑應為 C:\Stock LINE Notify。

  2. 開啟 C:\Stock LINE Notify\Stock_Code.txt,加入要追縱的股票代號(請以換行區隔)。

  3. 執行安裝說明資料夾 2-1~2-5 四個 SQL Script 建立必要資料表。

  4. 開啟專案,更新以下程式碼(* 為必要調整,Package 封裝有設密碼,若要開啟封裝請與我聯繫)

    *Get API(指令碼元件):將玉山富果 API Token 更新到 _URL_Chart、_URL_Quote 字串中。 *Deserialize JSON - Chart、Deserialize JSON - Quote(指令碼元件):將 json.dll 路徑加入至 path 字串中。 *Post Result Set to LINE Notify、Send Error Msg to LINE Notify(指令碼工作):將個人 LINE Notify Token 加入至 bearer 字串中。 *更新連線管理員 Stock_API 中的連線資訊。 調整檔案路徑。 以上都調整完後,可以先在 Visual Studio 內試跑可否成功收到 LINE 通知。

  5. 將封裝部署至 SQL Server Integration Services 目錄,參考 。

  6. 執行安裝說明資料夾 2-6 SQL Script 建立 SQL Server Agent 作業排程。

以上完成後,每週一~五 09:00 ~ 13:40 每十分鐘會執行一次封裝,可由該時段檢查封裝是否執行成功。

SQL Server 開發者免費版
微軟官方說明文件
Visual Studio 2019
微軟官方說明文件
我的 GitHub
James 大大的文章