Firestorm Port Assignment

Hey all.

How would you go about assigning a port using PM2? New project and I am stacking a few open ports on one Pi. Currently starting Firestorm via
PORT=4001 yarn server

Tried a few combinations of
PORT=4001 pm2 start server.js
Cheers

Yes that should do it. The trick is that I think pm2 only captures environment variables when it first creates the service entry. Try removing it (like pm2 delete server or something like that) and running that line again.

Cheers pm2 delete server followed by recreate solved it.

Back to the other problem, when Firestorm starts it kills the Picos or PB’s kill Firestorm. No connection, no /?recovery and no names on Firestorm page.

connected to 192.168.144.102
sending to 12875094 at 192.168.144.102 {"getConfig":true,"listPrograms":true,"sendUpdates":false}
connected to 192.168.144.106
sending to 14710614 at 192.168.144.106 {"getConfig":true,"listPrograms":true,"sendUpdates":false}
sending to 12875094 at 192.168.144.102 {"getConfig":true,"listPrograms":true}
sending to 14710614 at 192.168.144.106 {"getConfig":true,"listPrograms":true}
connected to 192.168.144.100
sending to 12611670 at 192.168.144.100 {"getConfig":true,"listPrograms":true,"sendUpdates":false}
connected to 192.168.144.101
sending to 5797718 at 192.168.144.101 {"getConfig":true,"listPrograms":true,"sendUpdates":false}
sending to 14710614 at 192.168.144.106 {"activeProgramId":"JrtFwJFfGCWxN5zzC"}
sending to 5797718 at 192.168.144.101 {"activeProgramId":"GzPRY47N8mZCeKGYm"}
sending to 12611670 at 192.168.144.100 {"activeProgramId":"SLGr8FySmBZ2td7Ym"}
sending to 12875094 at 192.168.144.102 {"activeProgramId":"NTHkEyiF6APNBivMd"}
/home/pi/Firestorm/app/controller.js:115
        console.err("Problem parsing packet", err);
                ^

TypeError: console.err is not a function
    at PixelblazeController.handleMessage (/home/pi/Firestorm/app/controller.js:115:17)
    at WebSocket.emit (events.js:314:20)
    at WebSocket.EventEmitter.emit (domain.js:483:12)
    at Receiver.receiverOnMessage (/home/pi/Firestorm/node_modules/ws/lib/websocket.js:834:20)
    at Receiver.emit (events.js:314:20)
    at Receiver.EventEmitter.emit (domain.js:483:12)
    at Receiver.dataMessage (/home/pi/Firestorm/node_modules/ws/lib/receiver.js:437:14)
    at Receiver.getData (/home/pi/Firestorm/node_modules/ws/lib/receiver.js:367:17)
    at Receiver.startLoop (/home/pi/Firestorm/node_modules/ws/lib/receiver.js:143:22)
    at Receiver._write (/home/pi/Firestorm/node_modules/ws/lib/receiver.js:78:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I have the same problem you are describing here. Did you manage to solve it?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.