publish post (DStarGateway) with slim Javascript dashboard; link to it in older post

main
Dominic Reich 9 months ago
parent 2c7bf3e3e6
commit 5941c33dde
Signed by: dominic
GPG Key ID: BC9D6AE1A3BE169A

@ -8,7 +8,7 @@ summary: >
Working without Pi-Star on a fresh and lightweight Raspberry Pi OS (64 bit)
installation. One of the longer articles over here...
date: 2022-07-10T14:27:28+02:00
lastmod: 2022-08-20T07:55:25+02:00
lastmod: 2024-02-03T05:37:01+0000
categories: [amateur-radio]
tags: [pistar,dmr,ysf,dstar,hotspot,mmdvm]
#weight: 1
@ -18,6 +18,16 @@ tags: [pistar,dmr,ysf,dstar,hotspot,mmdvm]
This is my attempt to create a lightweight hotspot for DMR, D-STAR and C4FM on
a Raspberry Pi 4 using the 64 bit operating system “Raspberry Pi OS”.
{{< alert circle-info >}}
**As of 2024** some of the steps below are not up to date anymore! If you are looking
for a D-STAR hotspot: I can recommend [DStarGateway from F4FXL](https://github.com/F4FXL/DStarGateway)
which does not rely on wxWidgets as its predecessor (ircDDBGateway).
{{< /alert >}}
I made a walk-through-note in a [more recent post]({{< ref "posts/2024/62-a-slim-dstar-gateway-on-a-raspberry-pi-2" >}})
on this weblog in which I go through my installation process on a Raspberry Pi 2 using
Arch Linux ARM.
## Preparation
{{< alert >}}

@ -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 @@
@ -658,14 +637,23 @@ index 0c71092..502933e 100644
-const server = https
+const server = http
.createServer(
- {
- key: fs.readFileSync("key.pem"),
- cert: fs.readFileSync("cert.pem"),
- },
app
)
.listen(serverPort, ()=>{
.createServer(
- {
- key: fs.readFileSync("key.pem"),
- cert: fs.readFileSync("cert.pem"),
- },
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.

Loading…
Cancel
Save