๐Ÿญ HACCPro IoT Installers

One-Stop Raspberry Pi Deployment Center
๐ŸŽ‰ Update Augustus 2025: Print Server v3.0 met verbeteringen!
โœ… Brother QL-820NWB native ondersteuning
โœ… Automatische company configuratie tijdens installatie
โœ… Port 8081 (geen conflicts meer)
โœ… "externally-managed-environment" error opgelost

๐ŸŽฏ Installatie Opties

๐Ÿ–จ๏ธ Print Server

Brother QL-820NWB Label Printer

  • Raspberry Pi 4
  • Brother QL-820NWB printer
  • USB kabel
  • Internet verbinding

๐ŸŒก๏ธ Temperature Sensor

HACCP Temperature Monitoring

  • Raspberry Pi (Zero/3/4/5)
  • DS18B20 temperatuur sensor
  • 4.7kฮฉ weerstand
  • Internet verbinding

๐Ÿš€ One-Line Installation

๐Ÿ–จ๏ธ Print Server

Brother QL-820NWB Label Printer:

Default installation (Company ID 18):
curl -sSL https://iot.haccpro.nl/print/install.sh | bash
Custom company installation:
curl -sSL https://iot.haccpro.nl/print/install.sh | bash -s -- --company-id 31 --location "Kitchen"
๐Ÿ’ก Company ID Examples:
โ€ข Company ID 18: De Pauw van Warnsveld
โ€ข Company ID 31: Replace with your company
โ€ข Company ID 68: Replace with your company

๐Ÿท๏ธ Locations examples: "Kitchen", "Main Kitchen", "Storage Room", "Production Area"

๐Ÿ—‘๏ธ Uninstall Print Server

Complete removal (stops services, removes files):

curl -sSL https://iot.haccpro.nl/print/uninstall.sh | bash -s -- -y
๐Ÿ—‘๏ธ Uninstaller Options:
โ€ข Interactive: curl -sSL https://iot.haccpro.nl/print/uninstall.sh | bash
โ€ข Non-interactive (recommended): curl -sSL https://iot.haccpro.nl/print/uninstall.sh | bash -s -- -y
โ€ข Manual: Download and run ./uninstall.sh -y

๐ŸŒก๏ธ Temperature Sensor

HACCP Temperature Monitoring:

Default installation (Company ID 18):
curl -sSL https://iot.haccpro.nl/sensors/install.sh | sudo bash
Custom company installation:
curl -sSL https://iot.haccpro.nl/sensors/install.sh | sudo bash -s -- --company-id 31 --location "Cold Storage"
๐Ÿ’ก Wat deze scripts doen:
๐Ÿ–จ๏ธ Print Server v3.0:
โ€ข Vraagt EERST om company ID en locatie (voor alle installaties beginnen)
โ€ข Toont beschikbare company IDs (18, 31, 68, etc.)
โ€ข Brother QL-820NWB native support (brother_ql library)
โ€ข Web interface op port 8081, dashboard integratie
โ€ข Automatische API key generatie

๐ŸŒก๏ธ Sensor v2.0:
โ€ข Vraagt EERST om company ID en locatie (voor alle installaties beginnen)
โ€ข Auto-detecteert Pi model (Zero/3/4/5), DS18B20 temperatuur sensoren
โ€ข Heartbeat systeem voor dashboard integratie
โ€ข Remote management en monitoring
๐Ÿ Python Environment: Automatische virtual environment setup (werkt met alle Pi OS versies)

๐Ÿ”ง Handmatige Installatie

Als je liever stap voor stap wilt:

1. Download Print Server

wget https://iot.haccpro.nl/print/raspberry-print-server-web.py -O ~/raspberry-print-server-web.py

2. Download Installer

wget https://iot.haccpro.nl/print/setup.sh -O ~/setup.sh && chmod +x ~/setup.sh

3. Run Installer

./setup.sh

๐Ÿ“ฅ Direct Downloads

Of download individuele bestanden:

๐Ÿ–จ๏ธ Print Server Files

๐ŸŒก๏ธ Sensor Files

โœ… Verificatie

Na installatie test je:

curl http://localhost:8081/api/status
๐ŸŽ‰ Success!
Web Interface: http://PI_IP:8081
Dashboard Setup: https://dashboard.haccpro.nl/settings
Status Check: curl http://PI_IP:8081/api/status

๐Ÿ”ง Troubleshooting & FAQ

๐ŸŽ‰ Nieuw (Dec 2024): "externally-managed-environment" Fix
Onze installers werken nu automatisch met nieuwere Raspberry Pi OS versies!
Het script gebruikt nu correct virtual environments en python3-full package.

โ“ Veel Gestelde Vragen

๐Ÿ—‘๏ธ Hoe verwijder ik de print server volledig?
Voor volledige verwijdering van alle bestanden en services:

Aanbevolen (automatisch):
curl -sSL https://iot.haccpro.nl/print/uninstall.sh | bash -s -- -y
Dit verwijdert automatisch:
โ€ข Print server en heartbeat services
โ€ข Alle configuratiebestanden
โ€ข Python virtual environment
โ€ข Installatie directory (/opt/haccpro-print-server)
โ€ข Python packages (brother_ql, etc.)
โ€ข Firewall regels voor port 8081

Interactief (met bevestiging):
curl -sSL https://iot.haccpro.nl/print/uninstall.sh | bash

Download en handmatig uitvoeren:
wget https://iot.haccpro.nl/print/uninstall.sh && chmod +x uninstall.sh && ./uninstall.sh -y
๐Ÿ”„ Hoe herinstalleer ik na verwijdering?
Na volledige verwijdering kun je gewoon opnieuw installeren:
curl -sSL https://iot.haccpro.nl/print/install.sh | bash
Het script zal opnieuw vragen om company ID en locatie.
๐Ÿ–จ๏ธ Printer wordt niet gedetecteerd in dashboard?
1. Check of de print server draait: sudo systemctl status haccpro-print-server
2. Check of de heartbeat draait: sudo systemctl status haccpro-heartbeat
3. Test de lokale API: curl http://localhost:8081/api/status
4. Check printer connectie: lsusb | grep -i brother
โš ๏ธ Veelvoorkomende problemen:

๐Ÿ Python "externally-managed-environment" error:
Dit is automatisch opgelost in onze nieuwste installer!
Het script installeert nu python3-full en gebruikt virtual environments.

๐Ÿ” Check service status:
sudo systemctl status haccpro-print-server
sudo systemctl status haccpro-heartbeat

๐Ÿ“ Bekijk logs:
sudo journalctl -u haccpro-print-server -f
sudo journalctl -u haccpro-heartbeat -f

๐Ÿ–จ๏ธ Check printer connectie:
lsusb | grep -i brother

๐Ÿ”„ Herstart services:
sudo systemctl restart haccpro-print-server
sudo systemctl restart haccpro-heartbeat

๐ŸŒก๏ธ Voor temperature sensors:
sudo systemctl status haccpro-sensor
sudo journalctl -u haccpro-sensor -f