1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-03 07:37:47 +00:00

use typos for corrections (#833)

I used [typos](https://github.com/crate-ci/typos/).
I manually checked all the corrections and they seem safe to me.
There are still some left, but those in this PR are good
This commit is contained in:
Maxim Uvarov 2024-05-08 19:47:54 +08:00 committed by GitHub
parent a0aa600153
commit afde2592a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 102 additions and 90 deletions

View file

@ -1,6 +1,6 @@
# Weather Script based on IP Address
# - Weather using dark weather api
# - Air polution condition using airvisual api
# - Air pollution condition using airvisual api
# - Street address using google maps api
# - Version 2.0
export def --env weatherds [] {
@ -62,7 +62,7 @@ def get_airCond [loc] {
let url = $"https://api.airvisual.com/v2/nearest_city?lat=($lat)&lon=($lon)&key=($apiKey)"
let aqius = (http get $url).data.current.pollution.aqius
# clasification (standard)
# classification (standard)
if $aqius < 51 { "Good" } else if $aqius < 101 { "Moderate" } else if $aqius < 151 { "Unhealthy for some" } else if $aqius < 201 { "Unhealthy" } else if $aqius < 301 { "Very unhealthy" } else { "Hazardous" }
}