feat: Remove precise location, useless.
This commit is contained in:
parent
a7aa030e75
commit
d124abb879
2 changed files with 5 additions and 27 deletions
|
|
@ -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.
|
- Filters lightning strikes by your chosen location and radius.
|
||||||
- Sends rich notifications to your devices via [ntfy.sh](https://ntfy.sh/).
|
- Sends rich notifications to your devices via [ntfy.sh](https://ntfy.sh/).
|
||||||
- Optionally displays details about the detectors involved in each strike.
|
- 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
|
## Usage
|
||||||
|
|
||||||
|
|
|
||||||
30
src/main.rs
30
src/main.rs
|
|
@ -135,19 +135,11 @@ fn get_localized_message(
|
||||||
"• Kavēšanās: {}ms\n\
|
"• Kavēšanās: {}ms\n\
|
||||||
• Statuss: {}\n\
|
• Statuss: {}\n\
|
||||||
• Reģions: {}\n\
|
• Reģions: {}\n\
|
||||||
• Atrašanās vieta: {:.5}, {:.5}\n\
|
|
||||||
• Aptuvenā vieta: {}\n\
|
• Aptuvenā vieta: {}\n\
|
||||||
• Attālums līdz jums: {:.2} km\n\
|
• Attālums līdz jums: {:.2} km\n\
|
||||||
• Izmantotie detektori:\n{}\n\
|
• Izmantotie detektori:\n{}\n\
|
||||||
Esiet drošībā! 🌩️",
|
Esiet drošībā! 🌩️",
|
||||||
all.delay,
|
all.delay, all.status, all.region, location_name, distance_km, detectors_str
|
||||||
all.status,
|
|
||||||
all.region,
|
|
||||||
lon,
|
|
||||||
lat,
|
|
||||||
location_name,
|
|
||||||
distance_km,
|
|
||||||
detectors_str
|
|
||||||
),
|
),
|
||||||
"⚡ Zibens trieciens konstatēts".to_string(),
|
"⚡ Zibens trieciens konstatēts".to_string(),
|
||||||
)
|
)
|
||||||
|
|
@ -172,19 +164,11 @@ fn get_localized_message(
|
||||||
"• Задержка: {}мс\n\
|
"• Задержка: {}мс\n\
|
||||||
• Статус: {}\n\
|
• Статус: {}\n\
|
||||||
• Регион: {}\n\
|
• Регион: {}\n\
|
||||||
• Местоположение: {:.5}, {:.5}\n\
|
|
||||||
• Примерное место: {}\n\
|
• Примерное место: {}\n\
|
||||||
• Расстояние до вас: {:.2} км\n\
|
• Расстояние до вас: {:.2} км\n\
|
||||||
• Использованные детекторы:\n{}\n\
|
• Использованные детекторы:\n{}\n\
|
||||||
Будьте осторожны! 🌩️",
|
Будьте осторожны! 🌩️",
|
||||||
all.delay,
|
all.delay, all.status, all.region, location_name, distance_km, detectors_str
|
||||||
all.status,
|
|
||||||
all.region,
|
|
||||||
lon,
|
|
||||||
lat,
|
|
||||||
location_name,
|
|
||||||
distance_km,
|
|
||||||
detectors_str
|
|
||||||
),
|
),
|
||||||
"⚡ Обнаружен удар молнии".to_string(),
|
"⚡ Обнаружен удар молнии".to_string(),
|
||||||
)
|
)
|
||||||
|
|
@ -209,19 +193,11 @@ fn get_localized_message(
|
||||||
"• Delay: {}ms\n\
|
"• Delay: {}ms\n\
|
||||||
• Status: {}\n\
|
• Status: {}\n\
|
||||||
• Region: {}\n\
|
• Region: {}\n\
|
||||||
• Location: {:.5}, {:.5}\n\
|
|
||||||
• Approximate place: {}\n\
|
• Approximate place: {}\n\
|
||||||
• Distance to you: {:.2} km\n\
|
• Distance to you: {:.2} km\n\
|
||||||
• Used detectors:\n{}\n\
|
• Used detectors:\n{}\n\
|
||||||
Stay safe! 🌩️",
|
Stay safe! 🌩️",
|
||||||
all.delay,
|
all.delay, all.status, all.region, location_name, distance_km, detectors_str
|
||||||
all.status,
|
|
||||||
all.region,
|
|
||||||
lon,
|
|
||||||
lat,
|
|
||||||
location_name,
|
|
||||||
distance_km,
|
|
||||||
detectors_str
|
|
||||||
),
|
),
|
||||||
"⚡ Lightning Strike Detected".to_string(),
|
"⚡ Lightning Strike Detected".to_string(),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue