A modular command-line toolkit for device control, data retrieval, and network operations β built in Python 3.13+.
This suite provides a unified command interface for interacting with APIs, connected devices, and local systems.
Each command lives in its own module under cmds/, while shared functionality (like networking, environment setup, and I/O) resides in utils/.
| Command | Description |
|---|---|
wut |
Dictionary and internal command reference utilities. πΎ |
nyc |
MTA bus & train tracker |
weather |
NOAA weather updates & predictions β¨ |
sky |
NASA astronomical object feed and space event info. π |
lights |
Govee smart light controller with preset themes. π§ββοΈ |
scan |
Local network IP discovery and mapping tool. π |
sensors |
Tricorder-style input manager for connected sensors. π§ββοΈ |
.
βββ build/
β βββ lib/
β βββ cmds/
β βββ utils/
βββ cmds/
β βββ define.py
β βββ lights.py
β βββ neo.py
β βββ scan_network.py
β βββ sky.py
β βββ weather.py
β βββ ...
βββ utils/
β βββ api_gate.py
β βββ localize.py
β βββ rpi_light_switch.py
βββ setup.py
βββ .env
The lights module interfaces with the Govee REST API to control smart lights.
It includes caching, preset color themes, and brightness/state management.
Features
- Device discovery with caching at
~/.cache/govee_devices.jsonπΎ - Power and brightness control
- Preset color themes (including custom ones like trans, witch, cuddle) β¨
- Automatic
.envkey loading and validation π§ββοΈ
Environment Variables
GOVEE_API_KEY=
Example Usage
# List all cached devices
python -m lights --list
# Turn lights on
python -m lights --state on
# Set brightness to 75%
python -m lights --brightness 75
# Activate a color preset
python -m lights --color witch
pip install -e .
- All modules are import-safe and compatible with standalone CLI execution. π
- The
.envfile should be placed one directory above the module root for global use. β¨ - Cached data is stored under the userβs home directory (
~/.cache/). π§ββοΈ