feat: Remove precise location, useless.

This commit is contained in:
Soph :3 2025-08-22 15:36:00 +03:00
parent a7aa030e75
commit d124abb879
2 changed files with 5 additions and 27 deletions

View file

@ -8,6 +8,8 @@ This project connects to the Blitzortung lightning detection network and sends n
- Filters lightning strikes by your chosen location and radius.
- Sends rich notifications to your devices via [ntfy.sh](https://ntfy.sh/).
- Optionally displays details about the detectors involved in each strike.
- Supports multiple locales for notifications
- Gives you rough location of where the strike was using the nominatim api
## Usage

View file

@ -135,19 +135,11 @@ fn get_localized_message(
"• Kavēšanās: {}ms\n\
Statuss: {}\n\
Reģions: {}\n\
Atrašanās vieta: {:.5}, {:.5}\n\
Aptuvenā vieta: {}\n\
Attālums līdz jums: {:.2} km\n\
Izmantotie detektori:\n{}\n\
Esiet drošībā! 🌩",
all.delay,
all.status,
all.region,
lon,
lat,
location_name,
distance_km,
detectors_str
all.delay, all.status, all.region, location_name, distance_km, detectors_str
),
"⚡ Zibens trieciens konstatēts".to_string(),
)
@ -172,19 +164,11 @@ fn get_localized_message(
"• Задержка: {}мс\n\
Статус: {}\n\
Регион: {}\n\
Местоположение: {:.5}, {:.5}\n\
Примерное место: {}\n\
Расстояние до вас: {:.2} км\n\
Использованные детекторы:\n{}\n\
Будьте осторожны! 🌩",
all.delay,
all.status,
all.region,
lon,
lat,
location_name,
distance_km,
detectors_str
all.delay, all.status, all.region, location_name, distance_km, detectors_str
),
"⚡ Обнаружен удар молнии".to_string(),
)
@ -209,19 +193,11 @@ fn get_localized_message(
"• Delay: {}ms\n\
Status: {}\n\
Region: {}\n\
Location: {:.5}, {:.5}\n\
Approximate place: {}\n\
Distance to you: {:.2} km\n\
Used detectors:\n{}\n\
Stay safe! 🌩",
all.delay,
all.status,
all.region,
lon,
lat,
location_name,
distance_km,
detectors_str
all.delay, all.status, all.region, location_name, distance_km, detectors_str
),
"⚡ Lightning Strike Detected".to_string(),
)