A cross-platform application that continuously monitors the connection to Datecs cash registers and provides real-time visual feedback through system tray/menu bar icons.
Perfect for retail environments using Datecs fiscal printers and cash registers to ensure continuous connectivity monitoring.
datecs-cash-register-monitor/
βββ mac/ # macOS application
β βββ unified_monitor.py # Menu bar app using rumps
β βββ FPrintMonitor.spec # PyInstaller spec for macOS
β βββ requirements.txt # macOS dependencies
βββ win/ # Windows application
β βββ cash_register_monitor/ # Main application package
β βββ build_executable.py # Build script
β βββ build_windows_exe.bat # One-click build
β βββ install_and_run.bat # Quick install & run
β βββ ... # Other Windows files
βββ README.md
βββ LICENSE
βββ requirements.txt # Shared requirements
- macOS 10.14+
- Python 3.8+
- Wine (for running FPrint.exe)
-
Install dependencies:
cd mac pip3 install -r requirements.txt brew install wine-stable # If running FPrint.exe
-
Run the monitor:
python3 unified_monitor.py
-
Configure via menu bar icon β Settings:
- Set your printer IP and port
- π¨οΈ Printer icon: Both FPrint and printer connected
- π‘ Yellow icon: One system running (partial connection)
- π΄ Red icon: Both systems down
- Start FPrint: Launch FPrint.exe via Wine
- Restart FPrint: Kill and restart FPrint
- Settings: Configure printer IP:port
- Quit All: Stop FPrint and exit monitor
- Download the latest release
- Extract the ZIP file
- Navigate to the
win/folder - Double-click
install_and_run.bat - The app will install dependencies and start in your system tray!
- Navigate to
win/folder - Double-click
build_windows_exe.batto createDatecsCashRegisterMonitor.exe - Run the
.exefile - no Python installation needed!
- π’ Green icon: Connected to cash register
- π΄ Red icon: Disconnected from cash register
- π‘ Yellow icon: Checking connection status
| File | Purpose |
|---|---|
install_and_run.bat |
One-click install & start |
build_windows_exe.bat |
Create standalone executable |
run_datecs_monitor.bat |
Smart launcher |
start_silent.bat |
Silent background startup |
This application is designed for Datecs cash registers and fiscal printers:
- Datecs FP-2000 series
- Datecs FP-700 series
- Datecs WP-500 series
- Datecs DP-25 and DP-35 series
- Other Datecs devices with network connectivity
Default Configuration:
- Port: 4999 (standard Datecs communication port)
- Connection Type: TCP Socket
Configuration stored at: ~/.config/fprint_monitor/config.json
{
"printer_ip": "192.168.1.155",
"printer_port": 4999
}Configuration stored in: win/config.json
{
"ip_address": "192.168.1.155",
"port": 4999,
"check_interval": 5,
"auto_start": true,
"minimize_to_tray": true
}- Verify IP address and port in settings
- Ensure cash register is powered on and network-enabled
- Check network connectivity:
ping <IP_ADDRESS> - Test port:
nc -zv <IP_ADDRESS> <PORT>
- Ensure Wine is installed:
brew install wine-stable - Check FPrint.exe exists in parent directory
- Run from terminal to see debug output
- Check Windows notification area settings
- Enable "Show all icons in the notification area"
- Restart the application
This project is licensed under the MIT License. See the LICENSE file for details.
- Added macOS menu bar application
- Restructured project with
mac/andwin/folders - FPrint.exe support via Wine on macOS
- Improved restart functionality
- One-Click Installation with
install_and_run.bat - Executable Builder for standalone .exe
- Background execution without command windows
- TCP connection monitoring for Datecs devices
- Windows system tray integration
- Settings management GUI