fix: corrigeer WHATSAPP_API URL naar localhost:3001 (nextcloud)

- WHATSAPP_API gebruikte 100.97.199.84:3000 (Mac Mini Tailscale IP, verkeerde poort)
- Gewijzigd naar localhost:3001 (wwebjs-api container op nextcloud zelf)
- Comment toegevoegd om verwarring te voorkomen
- README herschreven met WhatsApp notificatie sectie en correcte architectuur
- Verouderd plan geüpdatet met juiste URL
This commit is contained in:
Eddy de Vink 2026-06-23 11:04:39 +02:00
commit c7e046f4ab
3 changed files with 71 additions and 128 deletions

View file

@ -4,7 +4,7 @@
**Goal:** Add a WhatsApp notification to the dashcam transfer script that sends a summary to admin Eddy after each transfer.
**Architecture:** A single `send_whatsapp_notification()` function is added to `dashcam-transfer.py`. It POSTs to the local wwebjs-api (running on Mac Mini via Tailscale) using stdlib `urllib.request`. Failures are logged but never crash the script.
**Architecture:** A single `send_whatsapp_notification()` function is added to `dashcam-transfer.py`. It POSTs to the local wwebjs-api (running as Docker container on nextcloud, port 3001) using stdlib `urllib.request`. Failures are logged but never crash the script.
**Tech Stack:** Python 3 stdlib (`urllib.request`, `json`), wwebjs-api REST API
@ -25,7 +25,7 @@ Add `import json` and `import urllib.request` after the existing stdlib imports.
Insert before `parse_args()` (after `ensure_free_space`):
```python
WHATSAPP_API = "http://100.97.199.84:3000/client/sendMessage/EdGpt"
WHATSAPP_API = "http://localhost:3001/client/sendMessage/EdGpt"
WHATSAPP_CHAT = "31620248011@c.us"