Main Menu

Recent posts

#31
Pi Gateway / Re: Fresh Install of Pi Gatewa...
Last post by Felix - February 10, 2026, 05:30:16 PM
Found another issue, I forgot to merge a new serial.enabled setting, had it locally.
Get the latest settings.json5 and restart the gateway (CTRL+SHIFT+ALT+R).
#32
Pi Gateway / Re: Fresh Install of Pi Gatewa...
Last post by brasskey4u - February 10, 2026, 01:22:18 PM
I do see this and I have checked that my serial port is set to serial0, unclear as to where to go to check this error.
pi@pigate:~/gateway/logs $ tail -f gateway.sys.log
[26/02/10 13:20:39.943] [INFO]  settings.serial.enabled FALSE or NOT FOUND!
[26/02/10 13:20:40.945] [INFO]  settings.serial.enabled FALSE or NOT FOUND!
[26/02/10 13:20:41.946] [INFO]  settings.serial.enabled FALSE or NOT FOUND!
[26/02/10 13:20:42.947] [INFO]  settings.serial.enabled FALSE or NOT FOUND!
[26/02/10 13:20:43.947] [INFO]  settings.serial.enabled FALSE or NOT FOUND!
[26/02/10 13:20:44.949] [INFO]  settings.serial.enabled FALSE or NOT FOUND!
[26/02/10 13:20:45.950] [INFO]  settings.serial.enabled FALSE or NOT FOUND!
[26/02/10 13:20:46.951] [INFO]  settings.serial.enabled FALSE or NOT FOUND!
[26/02/10 13:20:47.952] [INFO]  settings.serial.enabled FALSE or NOT FOUND!
[26/02/10 13:20:48.953] [INFO]  settings.serial.enabled FALSE or NOT FOUND!
[26/02/10 13:20:49.954] [INFO]  settings.serial.enabled FALSE or NOT FOUND!
[26/02/10 13:20:50.955] [INFO]  settings.serial.enabled FALSE or NOT FOUND!
[26/02/10 13:20:51.956] [INFO]  settings.serial.enabled FALSE or NOT FOUND!
[26/02/10 13:20:52.957] [INFO]  settings.serial.enabled FALSE or NOT FOUND!
[26/02/10 13:20:53.957] [INFO]  settings.serial.enabled FALSE or NOT FOUND!
[26/02/10 13:20:54.958] [INFO]  settings.serial.enabled FALSE or NOT FOUND!
[26/02/10 13:20:55.958] [INFO]  settings.serial.enabled FALSE or NOT FOUND!
[26/02/10 13:20:56.960] [INFO]  settings.serial.enabled FALSE or NOT FOUND!
[26/02/10 13:20:57.961] [INFO]  settings.serial.enabled FALSE or NOT FOUND!

#33
Pi Gateway / Re: Fresh Install of Pi Gatewa...
Last post by brasskey4u - February 10, 2026, 01:12:37 PM
Great news, well, kinda.  Got the webserver going and I selected two weather nodes, however there is no data, yet picocom shows data from both in the command line.  I will poke around in the nodes.js and see if something is off (no idea what I am looking for :)  ) 

Definitely closer than before and the gateway is running as you can see:

pi@pigate:~ $ ps ux | grep gateway
pi           966  0.0  0.1   2400  1460 ?        Ss   12:25   0:00 /bin/sh -c /usr/bin/node --trace-deprecation /home/pi/gateway/gateway.js >> /home/pi/gateway/logs/gateway.sys.log 2>&1
pi           976  0.2  7.8 1391224 72664 ?       Sl   12:25   0:07 /usr/bin/node --trace-deprecation /home/pi/gateway/gateway.js
pi          1230  0.0  0.2   6252  2008 pts/0    S+   13:11   0:00 grep --color=auto gateway
pi@pigate:~ $
#34
Pi Gateway / Re: Fresh Install of Pi Gatewa...
Last post by Felix - February 10, 2026, 10:35:19 AM
Ok I think I got it, it was a syntax error in one of the gateway.js commits.
File in HEAD is updated, can you replace your gateway.js with the latest in the repository, it should fix the problem and the gateway service should now start.
Otherwise install on a Pi5 with latest Pi OS Lite 64bit went flawlessly.
#35
Pi Gateway / Re: Fresh Install of Pi Gatewa...
Last post by Felix - February 09, 2026, 05:58:43 PM
Probably related to not being able to start node.js or socket.io
I will try to do an install tomorrow if I have some time.
#36
Pi Gateway / Re: Fresh Install of Pi Gatewa...
Last post by brasskey4u - February 08, 2026, 02:14:25 PM
Also seeing this in gateway.sys.log   It keeps repeating the same error, perhaps that is another clue ?  The webserver.acccess.log and webserver.error.log are empty.

Node.js v25.6.0
/home/pi/gateway/gateway.js:1303



SyntaxError: Unexpected end of input
    at wrapSafe (node:internal/modules/cjs/loader:1740:18)
    at Module._compile (node:internal/modules/cjs/loader:1783:20)
    at Object..js (node:internal/modules/cjs/loader:1940:10)
    at Module.load (node:internal/modules/cjs/loader:1530:32)
    at Module._load (node:internal/modules/cjs/loader:1332:12)
    at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
    at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
    at node:internal/main/run_main_module:33:47
#37
Pi Gateway / Re: Fresh Install of Pi Gatewa...
Last post by brasskey4u - February 05, 2026, 05:08:18 PM
according to picocom, here is live data from my two weather nodes using /dev/serial0

pi@pigate:/dev $ sudo picocom -b 19200 /dev/serial0
picocom v3.1

port is        : /dev/serial0
flowcontrol    : none
baudrate is    : 19200
parity is      : none
databits are   : 8
stopbits are   : 1
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
hangup is      : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv -E
imap is        :
omap is        :
emap is        : crcrlf,delbs,
logfile is     : none
initstring     : none
exit_after is  : not set
exit is        : no

Type [C-a] [C-h] to see available commands
Terminal ready
[40] BAT:4.45v F:60.21 H:39.74 P:29.29   [RSSI:-48][ACK-sent]
[30] BAT:4.56v F:63.18 H:43.09 P:29.28   [RSSI:-63][ACK-sent]

So I am getting data from the MightyHat, but the gateway is still not running.  I did change the settings.json5 file to match my serial port that I am getting data from.  Web UI still has same error and gateway did not start.
#38
Pi Gateway / Re: Fresh Install of Pi Gatewa...
Last post by Felix - February 05, 2026, 02:23:09 PM
It could mean the serial is not enabled. What serial port are you connected to (from your Moteino/radio board)?
#39
Pi Gateway / Re: Fresh Install of Pi Gatewa...
Last post by brasskey4u - February 05, 2026, 09:43:06 AM
Here are my ttys:

pi@pigate:/dev $ ls tty*
tty   tty10  tty13  tty16  tty19  tty21  tty24  tty27  tty3   tty32  tty35  tty38  tty40  tty43  tty46  tty49  tty51  tty54  tty57  tty6   tty62  tty8       ttyS0
tty0  tty11  tty14  tty17  tty2   tty22  tty25  tty28  tty30  tty33  tty36  tty39  tty41  tty44  tty47  tty5   tty52  tty55  tty58  tty60  tty63  tty9
tty1  tty12  tty15  tty18  tty20  tty23  tty26  tty29  tty31  tty34  tty37  tty4   tty42  tty45  tty48  tty50  tty53  tty56  tty59  tty61  tty7   ttyprintk
pi@pigate:/dev $


I notice that there is a symbolic link for serial0:

pi@pigate:/dev $ ls -l ser*
lrwxrwxrwx 1 root root 5 Feb  4 14:34 serial0 -> ttyS0
pi@pigate:/dev $


Could that be an issue ? 
#40
Pi Gateway / Re: Fresh Install of Pi Gatewa...
Last post by Felix - February 04, 2026, 08:23:01 PM
go to /dev then ls tty* - you should get a ton of tty devices. At the very least you should have ttyAMA0 which is the GPIO UART serial.

Anyway it's a mess looks like. I think I have a Pi3B+ somewhere and I'll try this when I have a few hours to burn.