-
-
Notifications
You must be signed in to change notification settings - Fork 64
Description
Hi, @koalazak!
My rest980 http endpoints are not working at all after the server successfully gets started.
> systemctl status rest980
systemctl status rest980
● rest980.service - rest980 HTTP Server
Loaded: loaded (/etc/systemd/system/rest980.service; enabled; preset: enabled)
Active: active (running) since Sat 2025-08-02 13:53:26 CEST; 1min 4s ago
Main PID: 1200150 (npm start)
Tasks: 23 (limit: 3916)
CPU: 4.627s
CGroup: /system.slice/rest980.service
├─1200150 "npm start"
├─1200161 sh -c "node ./bin/www"
└─1200162 node ./bin/www
Aug 02 13:53:26 home systemd[1]: Started rest980.service - rest980 HTTP Server.
Aug 02 13:53:27 home npm[1200150]: > rest980@2.1.2 start
Aug 02 13:53:27 home npm[1200150]: > node ./bin/www
config/default.json and config/production.json (they have same content):
{
"port": 15955,
"blid": "foo",
"password": "bar",
"robotIP": "x.x.x.x",
"firmwareVersion": 2,
"enableLocal": "yes",
"enableCloud": "no",
"keepAlive": "no",
"basicAuthUser": null,
"basicAuthPass": null,
"sslKeyFile": null,
"sslCertFile": null
}
> nc -v 0.0.0.0 15955
(UNKNOWN) [0.0.0.0] 15955 (?) open
After I try requesting curl 'http://<my-server-ip>:15955/api/local/info/state' -vvv
from my laptop to my server running rest980
all I get is this in journalctl logs:
Aug 02 13:59:02 home npm[1200937]: GET /api/local/info/state - - ms - -
I then tried running your example dorita980
script using Node.js v20 and got nothing. It just hangs indefinitely. The roomba get password app works nicely (it uses http towards my roomba directly), so I suppose it's something with mqtt comms going on?
My setup:
Roomba 981
Firmware: 2.4.17-138 (24 Dec 2023)
rest980 Node.js v20.19.4
The official app is fully working and roomba is functioning well. I have uninstalled it after checking.
May the issue be of security nature? If I try this (with --insecure
and without) from my server, it fails:
mosquitto_sub -h x.x.x.x -p 8883 -u foo -P 'bar' --insecure -t '#'
Error: A TLS error occurred.
Any ideas what the issue might be? Maybe any steps on how to debug this via mqtt? Thanks in advance!