|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
title: A slim D-STAR gateway on a Raspberry Pi 2
|
|
|
|
|
summary: I wrote down the installation of a forked DStarGateway with a slim
|
|
|
|
|
dashboard based on Javascript on a Raspberry Pi 2.
|
|
|
|
|
date: 2024-01-29T13:01:26+0100
|
|
|
|
|
date: 2024-02-03T06:33:16+0100
|
|
|
|
|
#lastmod:
|
|
|
|
|
categories:
|
|
|
|
|
- amateur-radio
|
|
|
|
@ -14,27 +14,6 @@ tags:
|
|
|
|
|
- mmdvm
|
|
|
|
|
- raspberry-pi
|
|
|
|
|
|
|
|
|
|
# showBreadcrumbs: true
|
|
|
|
|
# showDate: false
|
|
|
|
|
# showReadingTime: false
|
|
|
|
|
# showWordCount: false
|
|
|
|
|
# showPagination: false
|
|
|
|
|
|
|
|
|
|
# feed_exclude: true
|
|
|
|
|
# site_exclude: true
|
|
|
|
|
|
|
|
|
|
# some help
|
|
|
|
|
#
|
|
|
|
|
# highlighting with highlights
|
|
|
|
|
#
|
|
|
|
|
# use table, as inline creates a padding around
|
|
|
|
|
# and it pushes the text more to the right side (end of screen)
|
|
|
|
|
#
|
|
|
|
|
# ~~~html {linenos=table,hl_lines="3-6"}
|
|
|
|
|
# ~~~html {linenos=inline,hl_lines="1,3-6"}
|
|
|
|
|
|
|
|
|
|
draft: true
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
## Installation of Archlinux
|
|
|
|
@ -643,7 +622,7 @@ Therefore I modify the `index.js` file according to the following patch:
|
|
|
|
|
|
|
|
|
|
~~~patch
|
|
|
|
|
diff --git a/index.js b/index.js
|
|
|
|
|
index 0c71092..502933e 100644
|
|
|
|
|
index 0c71092..b8a7aba 100644
|
|
|
|
|
--- a/index.js
|
|
|
|
|
+++ b/index.js
|
|
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
@ -666,6 +645,15 @@ index 0c71092..502933e 100644
|
|
|
|
|
app
|
|
|
|
|
)
|
|
|
|
|
.listen(serverPort, ()=>{
|
|
|
|
|
@@ -83,7 +79,7 @@ function updatelinks() {
|
|
|
|
|
};
|
|
|
|
|
let i = 0;
|
|
|
|
|
while (i < lines.length) {
|
|
|
|
|
- if(lines[i] != "") {
|
|
|
|
|
+ if(lines[i] != "" && lines[i].match(linksregex)) {
|
|
|
|
|
var mylinks = lines[i].match(linksregex);
|
|
|
|
|
// console.log(JSON.stringify(lines[i]));
|
|
|
|
|
var linkrec = {'timestamp':mylinks[1].substr(0,19) , 'protocol':mylinks[2] , 'device':mylinks[4],
|
|
|
|
|
~~~
|
|
|
|
|
|
|
|
|
|
Modify the `dashboard.ini` file to change the port from 443 to 8443.
|
|
|
|
|