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

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
sending to 12875094 at {"getConfig":true,"listPrograms":true,"sendUpdates":false}
connected to
sending to 14710614 at {"getConfig":true,"listPrograms":true,"sendUpdates":false}
sending to 12875094 at {"getConfig":true,"listPrograms":true}
sending to 14710614 at {"getConfig":true,"listPrograms":true}
connected to
sending to 12611670 at {"getConfig":true,"listPrograms":true,"sendUpdates":false}
connected to
sending to 5797718 at {"getConfig":true,"listPrograms":true,"sendUpdates":false}
sending to 14710614 at {"activeProgramId":"JrtFwJFfGCWxN5zzC"}
sending to 5797718 at {"activeProgramId":"GzPRY47N8mZCeKGYm"}
sending to 12611670 at {"activeProgramId":"SLGr8FySmBZ2td7Ym"}
sending to 12875094 at {"activeProgramId":"NTHkEyiF6APNBivMd"}
        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 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.