allow 30 xdr mappings, scroll correctly
This commit is contained in:
parent
b311aabcfd
commit
3f3ae0be57
|
@ -0,0 +1,15 @@
|
|||
#! /bin/sh
|
||||
i=0
|
||||
[ "$2" != "" ] && i=$2
|
||||
if [ "$1" = "" ] ; then
|
||||
echo "usage: $0 num [start]"
|
||||
exit 1
|
||||
fi
|
||||
num=$1
|
||||
|
||||
while [ $num -gt 0 ]
|
||||
do
|
||||
echo '{"name": "XDR'$i'","label": "XDR'$i'","type": "xdr","default": "", "check": "checkXDR","category":"xdr'$i'"},'
|
||||
num=`expr $num - 1`
|
||||
i=`expr $i + 1`
|
||||
done
|
408
web/config.json
408
web/config.json
|
@ -13,7 +13,92 @@
|
|||
"label": "NMEA0183 ID",
|
||||
"type": "list",
|
||||
"default": "GP",
|
||||
"list":["AB","AD","AG","AP","AI","AN","AR","AS","AT","AX","BI","BN","CA","CD","CR","CS","CT","CV","CX","DF","DU","DP","EC","EI","EP","ER","FD","FE","FR","FS","GA","GB","GI","GL","GN","GP","GQ","HC","HE","HF","HN","HD","HS","II","IN","JA","JB","JC","JD","JE","JF","JG","JH","LC","NL","NV","RA","RB","RC","RI","SA","SC","SD","SG","SN","SS","TC","TI","UP","VD","VM","VW","VA","VS","VT","VR","WD","WI","WL","YX","ZA","ZC","ZQ","ZV"],
|
||||
"list": [
|
||||
"AB",
|
||||
"AD",
|
||||
"AG",
|
||||
"AP",
|
||||
"AI",
|
||||
"AN",
|
||||
"AR",
|
||||
"AS",
|
||||
"AT",
|
||||
"AX",
|
||||
"BI",
|
||||
"BN",
|
||||
"CA",
|
||||
"CD",
|
||||
"CR",
|
||||
"CS",
|
||||
"CT",
|
||||
"CV",
|
||||
"CX",
|
||||
"DF",
|
||||
"DU",
|
||||
"DP",
|
||||
"EC",
|
||||
"EI",
|
||||
"EP",
|
||||
"ER",
|
||||
"FD",
|
||||
"FE",
|
||||
"FR",
|
||||
"FS",
|
||||
"GA",
|
||||
"GB",
|
||||
"GI",
|
||||
"GL",
|
||||
"GN",
|
||||
"GP",
|
||||
"GQ",
|
||||
"HC",
|
||||
"HE",
|
||||
"HF",
|
||||
"HN",
|
||||
"HD",
|
||||
"HS",
|
||||
"II",
|
||||
"IN",
|
||||
"JA",
|
||||
"JB",
|
||||
"JC",
|
||||
"JD",
|
||||
"JE",
|
||||
"JF",
|
||||
"JG",
|
||||
"JH",
|
||||
"LC",
|
||||
"NL",
|
||||
"NV",
|
||||
"RA",
|
||||
"RB",
|
||||
"RC",
|
||||
"RI",
|
||||
"SA",
|
||||
"SC",
|
||||
"SD",
|
||||
"SG",
|
||||
"SN",
|
||||
"SS",
|
||||
"TC",
|
||||
"TI",
|
||||
"UP",
|
||||
"VD",
|
||||
"VM",
|
||||
"VW",
|
||||
"VA",
|
||||
"VS",
|
||||
"VT",
|
||||
"VR",
|
||||
"WD",
|
||||
"WI",
|
||||
"WL",
|
||||
"YX",
|
||||
"ZA",
|
||||
"ZC",
|
||||
"ZQ",
|
||||
"ZV"
|
||||
],
|
||||
"description": "the talkerId used in generated NMEA0183 records",
|
||||
"category": "system"
|
||||
},
|
||||
|
@ -32,7 +117,11 @@
|
|||
"check": "checkApPass",
|
||||
"description": "set the password for the Wifi access point",
|
||||
"category": "system",
|
||||
"capabilities":{"hardwareReset":["true"]}
|
||||
"capabilities": {
|
||||
"hardwareReset": [
|
||||
"true"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "usbBaud",
|
||||
|
@ -40,7 +129,20 @@
|
|||
"type": "list",
|
||||
"default": "115200",
|
||||
"description": "baud rate for the USB port",
|
||||
"list": [1200,2400,4800,9600,14400,19200,28800,38400,57600,115200,230400,460800],
|
||||
"list": [
|
||||
1200,
|
||||
2400,
|
||||
4800,
|
||||
9600,
|
||||
14400,
|
||||
19200,
|
||||
28800,
|
||||
38400,
|
||||
57600,
|
||||
115200,
|
||||
230400,
|
||||
460800
|
||||
],
|
||||
"category": "usb port"
|
||||
},
|
||||
{
|
||||
|
@ -88,9 +190,17 @@
|
|||
"label": "serial direction",
|
||||
"type": "list",
|
||||
"default": "receive",
|
||||
"list": ["send","receive","off"],
|
||||
"list": [
|
||||
"send",
|
||||
"receive",
|
||||
"off"
|
||||
],
|
||||
"description": "use the serial port to send or receive data",
|
||||
"capabilities":{"serialmode":["UNI"]},
|
||||
"capabilities": {
|
||||
"serialmode": [
|
||||
"UNI"
|
||||
]
|
||||
},
|
||||
"category": "serial port"
|
||||
},
|
||||
{
|
||||
|
@ -99,8 +209,28 @@
|
|||
"type": "list",
|
||||
"default": "115200",
|
||||
"description": "baud rate for the serial port",
|
||||
"list": [1200,2400,4800,9600,14400,19200,28800,38400,57600,115200,230400,460800],
|
||||
"capabilities":{"serialmode":["RX","TX","UNI","BI"]},
|
||||
"list": [
|
||||
1200,
|
||||
2400,
|
||||
4800,
|
||||
9600,
|
||||
14400,
|
||||
19200,
|
||||
28800,
|
||||
38400,
|
||||
57600,
|
||||
115200,
|
||||
230400,
|
||||
460800
|
||||
],
|
||||
"capabilities": {
|
||||
"serialmode": [
|
||||
"RX",
|
||||
"TX",
|
||||
"UNI",
|
||||
"BI"
|
||||
]
|
||||
},
|
||||
"category": "serial port"
|
||||
},
|
||||
{
|
||||
|
@ -109,7 +239,12 @@
|
|||
"type": "boolean",
|
||||
"default": "true",
|
||||
"description": "send out NMEA data on the serial port",
|
||||
"capabilities":{"serialmode":["TX","BI"]},
|
||||
"capabilities": {
|
||||
"serialmode": [
|
||||
"TX",
|
||||
"BI"
|
||||
]
|
||||
},
|
||||
"category": "serial port"
|
||||
},
|
||||
{
|
||||
|
@ -118,7 +253,12 @@
|
|||
"type": "boolean",
|
||||
"default": "true",
|
||||
"description": "receive NMEA data on the serial port",
|
||||
"capabilities":{"serialmode":["RX","BI"]},
|
||||
"capabilities": {
|
||||
"serialmode": [
|
||||
"RX",
|
||||
"BI"
|
||||
]
|
||||
},
|
||||
"category": "serial port"
|
||||
},
|
||||
{
|
||||
|
@ -127,7 +267,13 @@
|
|||
"type": "boolean",
|
||||
"default": "true",
|
||||
"description": "convert NMEA0183 from the serial port to NMEA2000",
|
||||
"capabilities":{"serialmode":["RX","BI","UNI"]},
|
||||
"capabilities": {
|
||||
"serialmode": [
|
||||
"RX",
|
||||
"BI",
|
||||
"UNI"
|
||||
]
|
||||
},
|
||||
"category": "serial port"
|
||||
},
|
||||
{
|
||||
|
@ -136,7 +282,13 @@
|
|||
"type": "filter",
|
||||
"default": "",
|
||||
"description": "filter for NMEA0183 data when reading from serial\nselect aison|aisoff, set a whitelist or a blacklist with NMEA sentences like RMC,RMB",
|
||||
"capabilities":{"serialmode":["RX","BI","UNI"]},
|
||||
"capabilities": {
|
||||
"serialmode": [
|
||||
"RX",
|
||||
"BI",
|
||||
"UNI"
|
||||
]
|
||||
},
|
||||
"category": "serial port"
|
||||
},
|
||||
{
|
||||
|
@ -145,7 +297,13 @@
|
|||
"type": "filter",
|
||||
"default": "",
|
||||
"description": "filter for NMEA0183 data when writing to serial\nselect aison|aisoff, set a whitelist or a blacklist with NMEA sentences like RMC,RMB",
|
||||
"capabilities":{"serialmode":["TX","BI","UNI"]},
|
||||
"capabilities": {
|
||||
"serialmode": [
|
||||
"TX",
|
||||
"BI",
|
||||
"UNI"
|
||||
]
|
||||
},
|
||||
"category": "serial port"
|
||||
},
|
||||
{
|
||||
|
@ -253,7 +411,229 @@
|
|||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr2"
|
||||
},
|
||||
{
|
||||
"name": "XDR3",
|
||||
"label": "XDR3",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr3"
|
||||
},
|
||||
{
|
||||
"name": "XDR4",
|
||||
"label": "XDR4",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr4"
|
||||
},
|
||||
{
|
||||
"name": "XDR5",
|
||||
"label": "XDR5",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr5"
|
||||
},
|
||||
{
|
||||
"name": "XDR6",
|
||||
"label": "XDR6",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr6"
|
||||
},
|
||||
{
|
||||
"name": "XDR7",
|
||||
"label": "XDR7",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr7"
|
||||
},
|
||||
{
|
||||
"name": "XDR8",
|
||||
"label": "XDR8",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr8"
|
||||
},
|
||||
{
|
||||
"name": "XDR9",
|
||||
"label": "XDR9",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr9"
|
||||
},
|
||||
{
|
||||
"name": "XDR10",
|
||||
"label": "XDR10",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr10"
|
||||
},
|
||||
{
|
||||
"name": "XDR11",
|
||||
"label": "XDR11",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr11"
|
||||
},
|
||||
{
|
||||
"name": "XDR12",
|
||||
"label": "XDR12",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr12"
|
||||
},
|
||||
{
|
||||
"name": "XDR13",
|
||||
"label": "XDR13",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr13"
|
||||
},
|
||||
{
|
||||
"name": "XDR14",
|
||||
"label": "XDR14",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr14"
|
||||
},
|
||||
{
|
||||
"name": "XDR15",
|
||||
"label": "XDR15",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr15"
|
||||
},
|
||||
{
|
||||
"name": "XDR16",
|
||||
"label": "XDR16",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr16"
|
||||
},
|
||||
{
|
||||
"name": "XDR17",
|
||||
"label": "XDR17",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr17"
|
||||
},
|
||||
{
|
||||
"name": "XDR18",
|
||||
"label": "XDR18",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr18"
|
||||
},
|
||||
{
|
||||
"name": "XDR19",
|
||||
"label": "XDR19",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr19"
|
||||
},
|
||||
{
|
||||
"name": "XDR20",
|
||||
"label": "XDR20",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr20"
|
||||
},
|
||||
{
|
||||
"name": "XDR21",
|
||||
"label": "XDR21",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr21"
|
||||
},
|
||||
{
|
||||
"name": "XDR22",
|
||||
"label": "XDR22",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr22"
|
||||
},
|
||||
{
|
||||
"name": "XDR23",
|
||||
"label": "XDR23",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr23"
|
||||
},
|
||||
{
|
||||
"name": "XDR24",
|
||||
"label": "XDR24",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr24"
|
||||
},
|
||||
{
|
||||
"name": "XDR25",
|
||||
"label": "XDR25",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr25"
|
||||
},
|
||||
{
|
||||
"name": "XDR26",
|
||||
"label": "XDR26",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr26"
|
||||
},
|
||||
{
|
||||
"name": "XDR27",
|
||||
"label": "XDR27",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr27"
|
||||
},
|
||||
{
|
||||
"name": "XDR28",
|
||||
"label": "XDR28",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr28"
|
||||
},
|
||||
{
|
||||
"name": "XDR29",
|
||||
"label": "XDR29",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr29"
|
||||
},
|
||||
{
|
||||
"name": "XDR30",
|
||||
"label": "XDR30",
|
||||
"type": "xdr",
|
||||
"default": "",
|
||||
"check": "checkXDR",
|
||||
"category": "xdr30"
|
||||
}
|
||||
|
||||
|
||||
]
|
|
@ -566,7 +566,9 @@ function findFreeXdr(data){
|
|||
el.value=data;
|
||||
let ev=new Event('change');
|
||||
el.dispatchEvent(ev);
|
||||
el.scrollIntoView();
|
||||
window.setTimeout(function(){
|
||||
cat.scrollIntoView();
|
||||
},50);
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue