Beiträge von bertl

Du wolltest schon immer wissen, was ein Pool kostet? Hier gibts alle Infos -> Ein Überblick über alle anfallenden Kosten beim Poolbau

    Hallo zusammen


    Ich bekomms nicht mehr zum Laufen.

    Es liegt wohl an der MongoDB, die mit dem Raspi 4 nicht mehr kann.

    Auch die Installation von einer älteren Version klappt nicht.

    Kennt jemand das Problem?


    Hier wurde das mal erklärt.

    [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)

    /root/.pm2/pm2.log last 15 lines:

    PM2 | 2022-05-14T17:06:40: PM2 log: PM2 version : 5.2.0

    PM2 | 2022-05-14T17:06:40: PM2 log: Node.js version : 12.22.12

    PM2 | 2022-05-14T17:06:40: PM2 log: Current arch : arm64

    PM2 | 2022-05-14T17:06:40: PM2 log: PM2 home : /root/.pm2

    PM2 | 2022-05-14T17:06:40: PM2 log: PM2 PID file : /root/.pm2/pm2.pid

    PM2 | 2022-05-14T17:06:40: PM2 log: RPC socket file : /root/.pm2/rpc.sock

    PM2 | 2022-05-14T17:06:40: PM2 log: BUS socket file : /root/.pm2/pub.sock

    PM2 | 2022-05-14T17:06:40: PM2 log: Application log path : /root/.pm2/logs

    PM2 | 2022-05-14T17:06:40: PM2 log: Worker Interval : 30000

    PM2 | 2022-05-14T17:06:40: PM2 log: Process dump file : /root/.pm2/dump.pm2

    PM2 | 2022-05-14T17:06:40: PM2 log: Concurrent actions : 2

    PM2 | 2022-05-14T17:06:40: PM2 log: SIGTERM timeout : 1600

    PM2 | 2022-05-14T17:06:40: PM2 log: ===============================================================================

    PM2 | 2022-05-14T17:06:40: PM2 log: App [app:0] starting in -fork mode-

    PM2 | 2022-05-14T17:06:40: PM2 log: App [app:0] online


    /root/.pm2/logs/app-error.log last 15 lines:

    0|app | TypeError: Cannot read property 'includes' of undefined

    0|app | at /home/poolarino_poolcontrol/routes/poolcontrol/poolcontrol.js:259:30

    0|app | at runMicrotasks (<anonymous>)

    0|app | at processTicksAndRejections (internal/process/task_queues.js:97:5)

    0|app | Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client

    0|app | at ServerResponse.setHeader (_http_outgoing.js:530:11)

    0|app | at ServerResponse.header (/home/poolarino_poolcontrol/node_modules/express/lib/response.js:767:10)

    0|app | at ServerResponse.send (/home/poolarino_poolcontrol/node_modules/express/lib/response.js:170:12)

    0|app | at ServerResponse.json (/home/poolarino_poolcontrol/node_modules/express/lib/response.js:267:15)

    0|app | at /home/poolarino_poolcontrol/routes/poolcontrol/poolcontrol.js:208:48

    0|app | at /home/poolarino_poolcontrol/node_modules/mongoose/lib/model.js:4981:18

    0|app | at processTicksAndRejections (internal/process/task_queues.js:79:11) {

    0|app | code: 'ERR_HTTP_HEADERS_SENT'

    0|app | }


    /root/.pm2/logs/app-out.log last 15 lines:

    0|app | <Buffer 4e 6f 74 20 46 6f 75 6e 64>

    0|app | <Buffer 4e 6f 74 20 46 6f 75 6e 64>

    0|app | <Buffer 4e 6f 74 20 46 6f 75 6e 64>

    0|app | <Buffer 4e 6f 74 20 46 6f 75 6e 64>

    0|app | <Buffer 4e 6f 74 20 46 6f 75 6e 64>

    0|app | Error: Error while communicating with Shelly device: ECONNRESET

    0|app | at ClientRequest.<anonymous> (/home/poolarino_poolcontrol/node_modules/shelly-iot/index.js:448:22)

    0|app | at ClientRequest.emit (events.js:314:20)

    0|app | at RedirectableRequest.<anonymous> (/home/poolarino_poolcontrol/node_modules/node-rest-client/lib/node-rest-client.js:721:39)

    0|app | at RedirectableRequest.emit (events.js:314:20)

    0|app | at ClientRequest.eventHandlers.<computed> (/home/poolarino_poolcontrol/node_modules/follow-redirects/index.js:14:24)

    0|app | at ClientRequest.emit (events.js:314:20)

    0|app | at Socket.socketCloseListener (_http_client.js:401:11)

    0|app | at Socket.emit (events.js:326:22)

    0|app | at TCP.<anonymous> (net.js:675:12)

    Hallo Zusammen


    Nach ein paar Anlaufschwierigkeiten habe ich nun mein System im Dummymodus (Pumpe, Kugelhahn durch LEDs ersetzt) am Laufen und es funktioniert.

    Ich habe das Installationsscript verwendet, wobei ich in der network-config gleich mal das WIFI mit angegeben habe.

    Da gabs dann auch ein kleines Problem: Änderungen im Frontend wurden nicht übernommen/gespeichert.

    Dafür musste ich erst in der main.747e424d125fab5ec978.js (per FTP verbunden) die richtige WIFI-IP eingeben.


    Nachdem das dann erledigt war, habe ich mich an die ganze Verdrahtung gemacht. Dabei ist der angehängte Plan entstanden.

    Ich hoffe, es geht in Ordnung, wenn ich ihn hier poste, aber da ich selber auf der Suche war und nichts gefunden habe, hilfts vielleicht anderen.

    Mit dem Shelly 2.5 ist das die denke ich günstigste Lösung. In den Poolarinoeinstellungen muss als Kanal für die Pumpe dann "0" angegeben werden.


    Stückliste:

    1 x Shelly 2.5

    4 x DS18B20

    1 x Breadboard

    1 x 4-Kanal Relais Modul

    1 x Widerstand 4,7 kOhm

    1 x Reihenklemme blau

    1 x Reihenklemme braun

    diverse Kabel