ginlph / ais.js

船舶自动识别系统 (Automatic Identification System) 使用 js 构建 web 端。

Home Page:https://yunyoujun.github.io/ais.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ais.js

船舶自动识别系统 (Automatic Identification System) 使用 js 构建 web 端。

Base on

  • Vue
  • 高德地图
  • node-serialport
  • ais-json

Function

  • 单条解析
  • 串口解析

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

How to use

bash 文件夹

文件名 描述
AIS.JS.sh 启动网站后台服务器并自动打开浏览器至指定页面
SerialPort 打开串口接收 AIS 报文信息
natapp.exe 内网映射至公网工具
config.ini natapp token 配置文件

接口

AIS 解析包使用方法

文件所在路径:/src/ais

import ais from '../ais'
aisInfo = ais(aisText)

aisInfo 为解析获得信息,以 json 对象形式返回; aisText 为需要解析的 AIS 文本。

Intend

npm 的 ais.js 名称已被占用,之后可能会改名并将解析包分离打包上传至 npm。

About

船舶自动识别系统 (Automatic Identification System) 使用 js 构建 web 端。

https://yunyoujun.github.io/ais.js


Languages

Language:JavaScript 73.0%Language:Vue 25.8%Language:HTML 0.9%Language:Shell 0.4%