diff --git a/html_main/index.html b/html_main/index.html
index 1609867..33518b9 100644
--- a/html_main/index.html
+++ b/html_main/index.html
@@ -13,9 +13,9 @@
-
- Dispatcher API Test
-
+ Dispatcher
+
+
@@ -64,7 +64,62 @@ Last LoRaWAN Packet:
class="elevation-1">
- Recent Messages
+ Message History
+
+
+
+
+
+ mdi-email
+ New Message
+
+
+
+
+
+ mdi-close
+
+ New Message
+
+
+
+ Routing Paramters:
+
+
+
+
+
+
+
+
+
+
+ Delivery Targets:
+ Add
+
+
+
+
+
+
+
+
+ mdi-delete
+
+
+
+
+
+
+
+
+
+ Send
+
+
+
+
+
@@ -93,6 +148,11 @@ Last LoRaWAN Packet:
http: { root: '/' },
data() {
return {
+ EXPERTMODE:false,
+
+ dialogNewMessage: false,
+
+
loadingD: true,
loadingM: true,
search: '',
@@ -118,10 +178,48 @@ Last LoRaWAN Packet:
{ text: 'ID', align: 'start', groupable: false, sortable: false, value: 'id', },
{ text: 'Type', value: 'type', groupable: true, sortable: false },
{ text: 'State', value: 'state', groupable: false, sortable: false },
- { text: 'Sent Date', value: 'date', groupable: false, sortable: false },
- { text: 'Sent Payload', value: '_payload', groupable: false, sortable: false },
+ { text: 'Date', value: 'date', groupable: false, sortable: false },
+ { text: 'Message', value: '_payload', groupable: false, sortable: false },
+ ],
+
+
+ pagerTypes: [
+ {k: 'Simple', v: 'simple'},
+ {k: 'Duplex', v: 'duplex'},
+ ],
+ deviceType: [
+ {k: 'Generic', v: 'generic'},
+ {k: 'Birdy Slim (IoT)', v: 'birdyslim'},
+ ],
+ connectorTypes: [
+ {k: 'Dummy', v: 'dummy'},
+ {k: 'POCSAG GW', v: 'pocsag'},
+ {k: 'DAPNET', v: 'dapnet'},
+
+ {k: 'e*Cityruf inetgw', v: 'ecityruf'},
+ {k: 'e*Cityruf Puppeteer', v: 'em-p-cityruf'},
+ {k: 'e*Cityruf alertManager', v: 'em-a-cityruf'},
+
+ {k: 'e*2wayS Puppeteer', v: 'em-p-twoways'},
+ {k: 'e*2wayS alertManager', v: 'em-a-twoways'},
+
+ {k: 'LoRaWAN TTNv3', v: 'lorawan'},
],
- bulkImportText: '',
+
+ newMSGData: {
+ "pager": {
+ "params": {
+ "type": "simple",
+ "routing": {
+ "device": "generic",
+ "connectors": [
+ ["dummy","1234"]
+ ]
+ }
+ },
+ "payload": "Test Message",
+ },
+ }
}
},
created() {
@@ -171,6 +269,16 @@ Last LoRaWAN Packet:
this.$http.get(
'/api/message/ack/'+[ackType, id].join('/')
).then(x=>{})
+ },
+ testMsg_addDeliveryTarget() {
+ this.newMSGData.pager.params.routing.connectors.push(["dummy","1234"])
+ },
+ testMsg_send() {
+ this.$http.post('/api/message/advanced/',
+ Object.assign({ ...this.newMSGData.pager.params }, { payload: this.newMSGData.pager.payload })
+ ).then(x=>{
+ this.dialogNewMessage = false
+ })
}
}