W trakcie pracWork in progress etap 8 z 11 ukończonystage 8 of 11 done
AARS
Automatic Alert Radio Station. Małe urządzenie przy radiotelefonie, które samo nadaje komunikaty głosowe: o stałych porach, jednorazowo albo od razu, gdy coś się dzieje. Działa bez internetu, bo właśnie wtedy jest najbardziej potrzebne.
Automatic Alert Radio Station. A small box next to a radio that broadcasts voice announcements by itself: on a schedule, once at a set time, or immediately when something happens. It works without the internet, because that is exactly when it is needed most.
PosłuchajListen
Komunikat próbny wygenerowany przez AARS na komputerze, bez internetu, polskim głosem Piper. Tak brzmi treść, zanim trafi do nadajnika.
A test announcement generated by AARS on a computer, offline, with a Polish Piper voice. This is what the message sounds like before it goes to the transmitter.
Operator wpisujeThe operator types
Tu stacja ostrzegawcza AARS, komunikat próbny. Prognoza na jutro: wiatr 12 m/s, temperatura -3°C, opad 5 mm. Poziom wody na wodowskazie 245 cm. Koniec komunikatu.
Stacja czytaThe station reads
Tu stacja ostrzegawcza AARS, komunikat próbny. Prognoza na jutro: wiatr dwanaście metrów na sekundę, temperatura minus trzy stopnie Celsjusza, opad pięć milimetrów. Poziom wody na wodowskazie dwieście czterdzieści pięć centymetrów. Koniec komunikatu.
Jak to działaHow it works
-
KomunikatMessage
Operator wpisuje go w panelu albo przychodzi z harmonogramu (np. codziennie o 18:00). Później także z ostrzeżeń IMGW i PAA.
The operator types it in the panel, or it comes from the schedule (e.g. every day at 18:00). Later also from IMGW and PAA warnings.
-
KolejkaQueue
Cztery priorytety, od niskiego do alarmowego. Komunikat alarmowy może przerwać trwające nadanie. Kolejka jest zapisana na dysku i przetrwa zanik zasilania.
Four priorities, from low to emergency. An emergency message can interrupt a transmission in progress. The queue lives on disk and survives a power cut.
-
MowaSpeech
Tekst jest zamieniany na polską mowę lokalnie (Piper). Liczby, jednostki i skróty są rozwijane, żeby brzmiały naturalnie.
The text is turned into Polish speech locally (Piper). Numbers, units and abbreviations are expanded so they sound natural.
-
NadanieOn air
Stacja kluczuje radio (GPIO, port szeregowy albo VOX), nadaje komunikat i w ustalonych odstępach podaje znak wywoławczy.
The station keys the radio (GPIO, serial port or VOX), plays the message and gives its callsign at set intervals.
PanelPanel
Zrzuty z wersji po etapie 7, na przykładowych danych. Panel działa w przeglądarce, także na telefonie, i nie potrzebuje internetu.
Screenshots of the stage 7 version with example data. The panel runs in a browser, phones included, and needs no internet.




Bezpieczeństwo nadawaniaTransmit safety
Automat, który sam włącza nadajnik, musi umieć go też wyłączyć. AARS ma twardy limit czasu nadawania: pilnuje go sekwencer, a niezależnie od niego osobny wątek, który opuści PTT nawet wtedy, gdy reszta programu się zawiesi. Po interwencji strażnika stacja blokuje się do ręcznego zdjęcia blokady przez administratora, a komunikat wstrzymany przez blokadę czeka w kolejce, zamiast przepaść. Stacja regularnie podaje swój znak wywoławczy (CW albo głosem), a jeden przycisk w panelu blokuje całe nadawanie.
A machine that keys a transmitter by itself must be able to unkey it too. AARS has a hard transmit time limit: the sequencer enforces it, and independently a separate thread drops PTT even if the rest of the program hangs. After the guard steps in, the station stays blocked until an administrator clears it, and a message held by any block waits in the queue instead of being lost. The station regularly gives its callsign (CW or voice), and one button in the panel blocks all transmitting.
- SprzętHardware
- Raspberry Pi, karta dźwiękowa, radiotelefonRaspberry Pi, sound card, radio
- PTT
- GPIO, DTR/RTS, VOX
- MowaSpeech
- Piper, lokalnie, bez internetuPiper, local, offline
- OprogramowanieSoftware
- Rust, jedna binarka, SQLiteRust, a single binary, SQLite
- LicencjaLicence
- MIT
- KodCode
- github.com/sptq/aars
Plan pracRoadmap
- Szkielet: konfiguracja, baza, CLISkeleton: configuration, database, CLI
- Synteza mowy i polska normalizacja tekstuSpeech synthesis and Polish text normalisation
- Nadawanie: PTT, limit czasu, identyfikacjaTransmitting: PTT, time limit, identification
- Trwała kolejka z priorytetamiPersistent priority queue
- HarmonogramScheduler
- Panel: logowanie, nadawanie, kolejkaPanel: login, sending, queue
- Panel: komunikaty z harmonogramem, odsłuch, kolejka, dzienniki, ustawienia, użytkownicyPanel: scheduled messages, listening, queue, logs, settings, users
- Ostrzeżenia meteorologiczne IMGW dla wybranego województwa lub powiatuIMGW weather warnings for a chosen voivodeship or county
- Panel admina: sprzęt (PTT, audio, głos), pozycja stacji na mapie, moduły do włączaniaAdmin panel: hardware (PTT, audio, voice), station position on a map, switchable modules
- Gotowy obraz na Raspberry Pi i automatyczna aktualizacja z GitHubaReady Raspberry Pi image and automatic updates from GitHub
- IMGW hydro, PAA, biuletyn, prognoza pogody (Open-Meteo) i mapa ostrzeżeńIMGW hydro, PAA, the bulletin, weather forecast (Open-Meteo) and a warnings map