8 Commits

Author SHA1 Message Date
RPI User
e0f7ec34f2 Implement dual logging workflow: noconfig vs configured mode
NOCONFIG MODE (device not configured):
- Sends 'App initialized' message on startup
- Sends 'RFID initialized' message after RFID ready
- Sends 'App working' message on startup
- Sends periodic 'App working' health status every 5 minutes
- Card inserted/removed events sent directly to monitoring server

CONFIGURED MODE (table ID set):
- Sends 'App initialized' and startup messages
- Card events POST to Harting API first
- Only sends to monitoring server on successful API post
- Failed posts saved to tag.txt backup file
- Backup data sent with summary when internet restored

Changes:
- Added send_health_status() function for periodic monitoring
- Updated process_card_events() to handle both workflows
- Updated main() to send startup messages and start health monitor
- Improved monitoring server URL to use rpi-ansible hostname
- Added retry logic for monitoring server requests
2025-12-19 15:08:02 +02:00
RPI User
6b199a0e41 Add config UI interface and update app.py with config card functionality
- Copied config.py with FreeSimpleGUI configuration interface to root folder
- Added load_config() function to launch config UI when card 12886709 is inserted
- Config UI allows setting hostname and work table (Loc De Munca)
- Automatic printer configuration and hostname updates
- System reboot after configuration changes
- Added config.py to version control
2025-12-19 14:38:39 +02:00
RPI User
c3a55a89c3 Add log cleanup function (15-day deletion) and archive documentation
- Added cleanup_old_logs() function to app_v3_simplified.py
- Deletes log.txt if older than 15 days at app startup
- Sends notification to monitoring server when cleanup occurs
- Archived all legacy modules and documentation to oldcode/
- Updated device_info.txt with correct IP (192.168.1.104)
- All changes validated and tested
2025-12-18 17:18:14 +02:00
Developer
a50197a9d6 Refactor: Skip socket resolution, load device hostname/IP directly from file
- Remove socket.gethostname() and socket.gethostbyname() calls
- Device info now loads exclusively from device_info.txt
- Device hostname and IP are independent of server hostname
- Resolves DNS/socket errors on startup
- Device info file is primary config source for device identity
2025-12-18 14:14:52 +02:00
Developer
b12c47d01f Fix: Update device_info.txt with correct hostname and IP for socket error resolution 2025-12-18 14:09:56 +02:00
9d08ee81f3 feat: Add repository update summary and cleanup
- Added comprehensive REPOSITORY_UPDATE_SUMMARY.md documentation
- Cleaned up temporary files (oldapp.py, __pycache__)
- Updated log files and libraries.sh
- Documented all v2.7 changes and improvements
2025-08-14 15:58:52 +03:00
6975e18ed2 v2.7: Fixed auto-update path detection for case-sensitive file systems
- Replaced hardcoded paths with dynamic path detection using __file__
- Auto-update now works regardless of folder case (prezenta vs Prezenta)
- Added comprehensive dependency management documentation
- Enhanced port 80 capability setup script
- Updated system packages repository structure
- Fixed path resolution for Files/reposytory and system_packages directories
2025-08-14 15:51:29 +03:00
0b9419c6d2 final project 2025-02-28 09:03:50 +02:00