Singyu
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    HW1 網頁專案 20190725 === ###### tags: `LAMP` `Map` ###### made by:<`his name`><`Singyu`><`blake11235`> --- # Survey - 網站主架構 - ==LAMP:Linux、Apache、MySQL、PHP== - MEAN:MongoDB、ExpressJS、AngularJS、Node.js :::info - 對(舊)瀏覽器的支援度? - 執行效率? ::: - 地圖嵌入 - ==Open Layers== - 網路範例多,官方建議在nodejs環境中執行 - 免費版無限制請求數 - iMap API - 台灣公司,提供全中文介面及地圖台灣部分較為完善。 - 免費版限制一天250請求 :::info - 收費?免費版是否能達成HW要求? - 台灣部分地圖完整度? - 是否可以嵌入icon及馬達相關資料? ::: - 美觀相關工具 - Bootstrap - 前端開源工具包 - 具備眾多設計好的物件 # Learn - 架設LAMP平台 - 團隊中有相關經驗,可以較快速架設 - 嵌入Open Layers - 因為免費且無請求限制 - 美觀部分用Bootstrap現成物件 - 開源、參考資料多、容易美化 # Design ![](https://i.imgur.com/qY7L3Fn.png) ``` mermaid gantt title 簡易時間規劃 section 主軸 蒐集 :a, 2019-07-04, 7d 測試 :b, after a , 7d 分工撰寫 :c, after b , 10d 系統整合 :after c , 5d ``` # Implement - **open street map** 實際操作 ![](https://i.imgur.com/iP8MtDo.jpg) - 可透過 js 設置來呈現所需要的經緯度。 ```javascript= <script> map = L.map('map').setView([-25.36356, 131.05444], 5); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '<a href="https://www.openstreetmap.org/">OSM</a>', maxZoom: 18, }).addTo(map); </script> ``` -使用 **marker** 來完成 pump 位置之標記 ```javascript= <script> map = new OpenLayers.Map("mapdiv"); map.addLayer(new OpenLayers.Layer.OSM()); var lonLat = new OpenLayers.LonLat( -0.1279688 ,51.5077286 ) .transform( new OpenLayers.Projection("EPSG:4326"), // transform from WGS 1984 map.getProjectionObject() // to Spherical Mercator Projection ); var zoom=16; var markers = new OpenLayers.Layer.Markers( "Markers" ); map.addLayer(markers); markers.addMarker(new OpenLayers.Marker(lonLat)); map.setCenter (lonLat, zoom); </script> ``` - **SQL SERVER** 目前sql server 以成功開啟,並設置在 localhost 。 已有自訂好資料結構,提供網站所需之資料。 ``` 1> select * from Pump_info 2> select * from Pump_data 3> go name class management location GPS_latitude GPS_longitude ---------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------- -------------- g125 gas district office West Central Dist., Tainan City 22.98756 120.18774 y1112 diesel district office West Central Dist., Tainan City 22.993555 120.1919 (2 rows affected) name datetime status hp head flow rpm e_temperature e_rpm e_voltage ---------- -------------------------------------- ----------- ----------- ----------- -------------- ----------- ------------- ----------- ------------ ``` - **php on Apache2** 已架設完畢,準備要與 sql server 連接。 --- # NOTE # info.php #單機資訊 (由保管單位與機組名稱來選擇所要顯示的機組) 1.保管單位 (下拉選單)(全選/安平區公所/大禹公司/成功大學/SMD) 2.機組名稱 (下拉選單)(.....) 3.機組種類 柴油式 4.機組座標 台南市/安平區/23.xxxxx;120.xxxxx 5.異常通知 引擎溫度異常 6.歷史紀錄 (以時間軸與表格顯示過去其單機資訊) 7.機組狀態 工作中 (待命/關機/維修中/異常中止) 當前馬力 15HP 當前揚程 20M 當前出水量 0.5m3/m 當前轉速 3500rpm 引擎溫度 50 引擎轉速 8000rmp 電瓶電壓 5.2V # #機組清單 (以表格呈現) (依照機組分類列出清單,可點選分類做resort) (點選機組會跳到單機資訊) 名稱 // 保管單位 // 種類 // 位置 // 狀態 // 備註 y1112/ 安平區公所 /柴油式 /安平區 /正常 / y4563/ 安平區公所 /柴油式 /安平區 /正常 / y4689/ 大禹公司 /柴油式 /中西區 /正常 / g125/ 安平區公所 /汽油式 /安平區 /異常 / g798/ 大禹公司 /汽油式 /安平區 /正常 /須更換機油 g456/ 成功大學 /汽油式 /東區 /正常 / d468/ 成功大學 /老達利式 /東區 /正常 / d778/ SMD /老達利式 /北區 /異常 /請添購備用零件 #維護清單 ?? #宣達資訊 (條列式呈現要宣答的事項) 1. 2019/7/20 13:01 請各單位注意,由於颱風將近,請注意各機組的運作正常,隨時可啟用。 2. 2019/6/20 10:15 請注意,型號YAG之引擎冷卻異常,操作時請特別注意。 3. 2019/6/19 13:20 台南市安平區將有官員訪查之活動,請當地常駐技術人員協辦。 『此區域須主管階層才會出現』 #機組設定 (更改單機資訊) (顯示與單機資訊一樣格式,但可以修改) #發報設定 (編輯宣達資訊) 1. .......... 刪除 2. .......... 刪除 3. .......... 刪除 新增 (時間,內容) #權限設定 (人員帳號權限設定) 帳號,姓名,單位,權限,登入時間,強制刪除 ppgg/曾小平/技術組/user/1.xx/xx xx:xx 2.xx/xx xx:xx cinfong/老闆/企劃組/root/1.oo/oo oo:oo 2.oo/oo oo:oo 新增使用者: 帳號,姓名,單位,權限 ##機組運轉狀態(畫圖表) 工作中 (待命/關機/維修中/異常中止) 當前馬力 15HP 當前揚程 20M 當前出水量 0.5m3/m 當前轉速 3500rpm 引擎溫度 50 引擎轉速 8000rmp 電瓶電壓 5.2V ##地圖顯示(依種類不同有不同圖標) 機組名稱 y1112 機組種類 diesel 運作指示 工作中 (待命/關機/維修中/異常中止) 出水量 0.47

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully