GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - mishcazzulani/onair-stopwatch: Onair stopwatch to help radio speakers keep track of a speech length triggered by the microphone GPIO

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
config.ini
config.ini
 
 
onair-stopwatch.py
onair-stopwatch.py
 
 

Repository files navigation

onair-stopwatch

๐ŸŽ™๏ธ OnAir Timer

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.


๐Ÿš€ Features

  • โฑ๏ธ 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

โš™๏ธ Configuration

Uses a config.ini file in the same folder.

Example

[DEFAULT]
MicOnMode = 1
MicOnPort = 5000
GPIOport = 1
xNodeIP = 192.168.1.100
moxaip = 192.168.1.200
FullScreen = True
TopMost = True


๐Ÿ“Œ Parameters

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)


๐Ÿ”Œ Modes

TCP Server Mode

Listens for commands:

START โ†’ start timer
STOP โ†’ stop timer
RESET โ†’ restart timer

Example usage:

nc <ip> <port>
START
STOP

Axia LWCP Mode

  • Connects to Axia xNode
  • Sends ADD GPO
  • Monitors GPIO state:
    • L = mic ON โ†’ start timer
    • H = mic OFF โ†’ stop timer

MOXA ioLogik Mode

  • Polls HTTP API endpoint
  • Reads digital input:
    • 1 = mic ON โ†’ start timer
    • 0 = mic OFF โ†’ stop timer

๐Ÿ–ฅ๏ธ Interface

  • Black background
  • Large red timer
  • Auto-resizing font
  • Studio-friendly minimal UI

๐Ÿงต Architecture

Runs three possible background threads:

  • TCP server thread
  • Axia client thread
  • MOXA polling thread

GUI runs independently and stays responsive.


๐Ÿ“ฆ Requirements

pip install requests

Built-in Python modules: socket
threading
tkinter
time
json
configparser


โ–ถ๏ธ Run

python onair-stopwatch.py

Ensure config.ini is present in the same directory.


โš ๏ธ Notes

  • Intended for trusted LAN environments
  • No authentication on TCP interface
  • MOXA polling interval: 1 second
  • Automatic reconnection enabled

๐Ÿ’ก Use Cases

  • Radio broadcasting studios
  • Podcast recording setups
  • Live on-air monitoring
  • GPIO-based automation systems

๐Ÿ“„ License

MIT License

About

Onair stopwatch to help radio speakers keep track of a speech length triggered by the microphone GPIO

Topics

axiabroadcastgpioiologiklwcpmoxaonairradiostopwatchtcp

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.