A real-time on-air timer for radio speakers.
Automatically tracks microphone activity using TCP, Axia LWCP (GPIO), or MOXA ioLogik inputs.
Designed for studio displays with a large, readable fullscreen timer.
- โฑ๏ธ Real-time MM:SS timer
- ๐ฅ๏ธ Fullscreen + always-on-top mode
- ๐ Input modes:
- TCP server commands
- Axia Livewire (LWCP GPIO)
- MOXA ioLogik digital input
- ๐ Auto-reconnect for network devices
- ๐๏ธ Auto-scaling GUI font
Uses a config.ini file in the same folder.
[DEFAULT]
MicOnMode = 1
MicOnPort = 5000
GPIOport = 1
xNodeIP = 192.168.1.100
moxaip = 192.168.1.200
FullScreen = True
TopMost = True
MicOnMode
1 = TCP server
2 = MOXA input
3 = AXIA LWCP
MicOnPort
TCP port for START/STOP commands
GPIOport
Axia GPIO channel
xNodeIP
Axia node IP address
moxaip
MOXA device IP address
FullScreen
Enable fullscreen mode (True/False)
TopMost
Keep window always on top (True/False)
Listens for commands:
START โ start timer
STOP โ stop timer
RESET โ restart timer
Example usage:
nc <ip> <port> START STOP
- Connects to Axia xNode
- Sends
ADD GPO - Monitors GPIO state:
- L = mic ON โ start timer
- H = mic OFF โ stop timer
- Polls HTTP API endpoint
- Reads digital input:
- 1 = mic ON โ start timer
- 0 = mic OFF โ stop timer
- Black background
- Large red timer
- Auto-resizing font
- Studio-friendly minimal UI
Runs three possible background threads:
- TCP server thread
- Axia client thread
- MOXA polling thread
GUI runs independently and stays responsive.
pip install requests
Built-in Python modules:
socket
threading
tkinter
time
json
configparser
python onair-stopwatch.py
Ensure config.ini is present in the same directory.
- Intended for trusted LAN environments
- No authentication on TCP interface
- MOXA polling interval: 1 second
- Automatic reconnection enabled
- Radio broadcasting studios
- Podcast recording setups
- Live on-air monitoring
- GPIO-based automation systems
MIT License