Main Menu

Recent posts

#41
Pi Gateway / Re: Fresh Install of Pi Gatewa...
Last post by brasskey4u - February 04, 2026, 02:50:53 PM
Thank you for taking the time to help me.  This certainly isn't a high priority as its just supposed to be a fun project. :)

#42
Pi Gateway / Re: Fresh Install of Pi Gatewa...
Last post by brasskey4u - February 04, 2026, 02:49:51 PM
Steps
new image via pi imager
64bit pi os lite for pi 3 b
user name pi
no updates or upgrades
selected HEAD version
installed Fail2Ban
ATXRaspi shutdown script
Installed interrupt script
answered no to login shell
answered yes to serial interface enabled
no to proftp
no to raspiconfig
reboot
Still getting "Waiting for socket connection"

Here is my setting in settings.json5

  serial: {
      editable: true,
      exposed: true,
      port: {
        value: '/dev/ttyAMA0',
        description: 'replace this with whatever serial port you have on your Pi/gateway (ttyAMA0 is the default GPIO serial port). If you use a MoteinoUSB then your Pi will emulate a serial port >
      },
      baud: {
        value: 19200,
        type: 'number',
        description: 'needs to match the Serial baud speed in the sketch running on the Moteino or MightyHat that is attached to this Pi',
      },



As you can see , I have no tty directory or device call ttyAMA0

pi@pigate:/dev $ ls ttyAMA0
ls: cannot access 'ttyAMA0': No such file or directory
pi@pigate:/dev $ cd tty
-bash: cd: tty: Not a directory
pi@pigate:/dev $


In the logs for gateway.sys.log, this just keeps repeating:

pi@pigate:~/gateway/logs $ more gateway.sys.log
/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


webserver log:

pi@pigate:~/gateway/logs $ more webserver.error.log
2026/02/04 14:35:44 [error] 1051#1051: *7 user "pi": password mismatch, client: 192.168.0.108, server: gateway, request: "GET / HTTP/1.1", host: "192.168.0.162"
2026/02/04 14:35:55 [error] 1051#1051: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.108, server: gateway, request: "GET /socket.io/socket.io.js HTTP
/1.1", upstream: "http://[::1]:8080/socket.io/socket.io.js", host: "192.168.0.162", referrer: "https://192.168.0.162/"
2026/02/04 14:35:55 [error] 1051#1051: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.108, server: gateway, request: "GET /socket.io/socket.io.js HTTP
/1.1", upstream: "http://127.0.0.1:8080/socket.io/socket.io.js", host: "192.168.0.162", referrer: "https://192.168.0.162/"
2026/02/04 14:35:55 [error] 1051#1051: *7 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: 192.168.0.108, server: gateway, request: "GET /socket.io/socket.io.j
s HTTP/1.1", upstream: "http://127.0.0.1:8080/socket.io/socket.io.js", host: "192.168.0.162", referrer: "https://192.168.0.162/"


webserver.error.log:


pi@pigate:~/gateway/logs $ more webserver.access.log
192.168.0.108 - pi [04/Feb/2026:14:35:44 -0500] "GET / HTTP/1.1" 401 574 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143
.0.0.0"
192.168.0.108 - pi [04/Feb/2026:14:35:55 -0500] "GET / HTTP/1.1" 200 32667 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/1
43.0.0.0"
192.168.0.108 - pi [04/Feb/2026:14:35:55 -0500] "GET /socket.io/socket.io.js HTTP/1.1" 404 181 "https://192.168.0.162/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Ge
cko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0"
192.168.0.108 - pi [04/Feb/2026:14:35:55 -0500] "GET /css/jquery.mobile-1.4.5.min.css HTTP/1.1" 200 207465 "https://192.168.0.162/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KH
TML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0"
192.168.0.108 - pi [04/Feb/2026:14:35:55 -0500] "GET /css/jqm-font-awesome-usvg-upng.min.css HTTP/1.1" 200 115121 "https://192.168.0.162/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537
.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0"
192.168.0.108 - pi [04/Feb/2026:14:35:55 -0500] "GET /css/listview-grid.css HTTP/1.1" 200 4853 "https://192.168.0.162/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Ge
cko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0"
192.168.0.108 - pi [04/Feb/2026:14:35:55 -0500] "GET /css/jquery.mobile.datepicker.css HTTP/1.1" 200 4936 "https://192.168.0.162/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHT
ML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0"
192.168.0.108 - pi [04/Feb/2026:14:35:55 -0500] "GET /js/jquery-1.12.1.min.js HTTP/1.1" 200 97403 "https://192.168.0.162/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0"
192.168.0.108 - pi [04/Feb/2026:14:35:55 -0500] "GET /js/jquery.flot.time-0.8.3.min.js HTTP/1.1" 200 4658 "https://192.168.0.162/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHT
ML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0"
192.168.0.108 - pi [04/Feb/2026:14:35:55 -0500] "GET /js/jquery.mobile-1.4.5.min.js HTTP/1.1" 200 200143 "https://192.168.0.162/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTM
L, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0"
.
.
.
parsed info in the middle, here is the last several lines:

192.168.0.108 - pi [04/Feb/2026:14:35:56 -0500] "GET /css/images/ajax-loader.gif HTTP/1.1" 200 6242 "https://192.168.0.162/css/jquery.mobile-1.4.5.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64
) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0"
192.168.0.108 - pi [04/Feb/2026:14:35:56 -0500] "GET /css/svg/terminal-16.svg HTTP/1.1" 200 861 "https://192.168.0.162/css/jqm-font-awesome-usvg-upng.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64;
x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0"
192.168.0.108 - pi [04/Feb/2026:14:35:56 -0500] "GET /css/svg/gear-16.svg HTTP/1.1" 200 1680 "https://192.168.0.162/css/jqm-font-awesome-usvg-upng.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64
) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0"
192.168.0.108 - pi [04/Feb/2026:14:35:56 -0500] "GET /css/svg/database-16.svg HTTP/1.1" 200 1340 "https://192.168.0.162/css/jqm-font-awesome-usvg-upng.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64;
x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0"
192.168.0.108 - pi [04/Feb/2026:14:35:56 -0500] "GET /css/svg/flash-16.svg HTTP/1.1" 200 810 "https://192.168.0.162/css/jqm-font-awesome-usvg-upng.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64
) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0"
192.168.0.108 - pi [04/Feb/2026:14:35:56 -0500] "GET /images/favicon.ico HTTP/1.1" 200 6727 "https://192.168.0.162/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko
) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0"





#43
Pi Gateway / Re: Fresh Install of Pi Gatewa...
Last post by Felix - February 04, 2026, 12:06:57 PM
I have some commercial installs that have a lot of changes and haven't really caught up. I will merge what is relevant as I have time.
For now I submitted a commit to the HEAD which includes some installation changes, updated packages etc, which will become a new patch release, also when I can have time to check that.
So right now get the HEAD and try again. It's important to make sure the settings.json5 contains the matching serial port (GPIO UART serial usually /dev/ttyAMA0 or USB serial usually /dev/ttyACM0) and the baud (this matters especially for GPIO UART, as opposed to the USB serial which can not matter when the port is emulated - in any case match it).
Note any install errors, look in the logs for reasons why the gateway.js service cannot start, or nodejs or socket.io are not running.
I will be building a brand new gateway for myself soon with a Pi5 and bring a lot of new features over from my custom commercial installs. At that point I will iron our all issues and merge everything and make a new major release. My big problem is time and other things that are high priority.
#44
Pi Gateway / Re: Fresh Install of Pi Gatewa...
Last post by brasskey4u - February 04, 2026, 11:50:44 AM
Hey Felix, thanks for the reply, I believe my pi3 is b+.  This actually ran on a pi2 for years and had zero problems until I moved and I think something happened to the SD card, so that prompted a new install.  So frustrating.  I have also started with a clean build did a sudo apt update && sudo apt upgrade -y , and that makes no difference.  Odd that the gateway won't start.  At this point it might just be a go unplug everything and comeback in a few days.  Sleeping on it had me trying new things this morning and I definitely had to rebuild with the user "pi".  I knew I screwed up when there was nothing in the home directory of the user I created.  Odd thing is that the default password for pi didn't work either.  But rebuilding everything with just pi user did not fix anything either.
#45
Pi Gateway / Re: Fresh Install of Pi Gatewa...
Last post by Felix - February 04, 2026, 10:53:46 AM
Thanks for reporting it, please avoid pulling hairs, we will solve this somehow :-)
I have installed recently on a few Pi's including Pi5, I think there were minor bumps but nothing major that would prevent a good outcome.
I would need a bit more detail from the error logs to be able to advise on this. I am also checking the details of my installs to try to see what I did and if that might be a cause.
Having said that, unless you just need to use an older pi for economical reasons, I would advise using at least a RaspberryPi 3B+ or Pi 4 would be better.
#46
Pi Gateway / Re: Fresh Install of Pi Gatewa...
Last post by brasskey4u - February 04, 2026, 09:42:20 AM
I'm about to pull my hair out (what little I have left) and I am stuck with the same "Waiting on socket connection"  I changed the default user and rebuilt with "pi", that did not work.  I tried a pi2 and pi3, no joy.  I tried the Head version instead of the recommended version, same result, I also notice that I can not get the gateway to start and doing a ps ux | grep gateway just shows one line (the command itself).  I have the mighty hat installed and I see data from the 2 weather nodes I have just fine.  I also see data coming in by using the terminal program, so it appears that the pi serial port is getting data from the hat.  I think I have rebuilt my SD cards no less that 10 times with different combinations and still stuck with the waiting on socket connection.  Oh I also tried the chmod of the /home/pi directory like stereodude did, no luck with that.  Any ideas welcome.
#47
ATXRaspi / Voltage drop across ATX board
Last post by DaveWatson - January 11, 2026, 03:13:47 PM
I am getting a power loss across the board. The voltage checked with voltmeter on the contacts of the board show 5.294 and the output also checked with voltmeter at the board is 4.840. I am getting a low voltage to the pi warning, and the red led is not illuminating on the pi. All solder joints checked. Any thoughts on how to fix this?
#48
Pi Gateway / Re: For MultiGraph, select any...
Last post by Felix - November 24, 2025, 10:22:38 AM
Thanks LukaQ for the contributions, I will check this out and consider adding features like this!
#49
Pi Gateway / Re: Running on PROXMOX LXC
Last post by LukaQ - November 23, 2025, 11:22:37 AM
Hey

I have installed it on ProxMox, with the lastest updates (then).
Since then, I am on latest debian also

https://github.com/LukaGitH/Gateway
#50
Pi Gateway / For MultiGraph, select any met...
Last post by LukaQ - November 23, 2025, 11:20:49 AM
Hello all,

some might find this useful. I have added option, where in MutiGraph you can select/compare any metric from any node.
This way, I was able to compare outdoor temp (node 5) with another outdoor temp (Tadt from node 4).

Metric select.png
Metric select.png

multinode.png
multinode.png

I have also added option to resize MultiGraph in Y direction by entering hight in px or in %
Bigger MutiGraph.png
Bigger MutiGraph.png

I have also added option to select any color or from a palette, for each metric in MultiGraph.
Colorselect.png
Colorselect.png

This menu and resize menu are collapsible
what you need to change (overwrite) are gateway.js and index.html