Originally Posted by
ragamatrix
@Sector11 and
Mr Peachy
Is it possible to change "feet" by "meters" for the ceilling ?
I put this in the script to have current wind gusts; is it correct lines ?
Code:
out({c=0xFAFAEC,a=1,x=180,y=300,txt="Raf.Max:"})
out({c=0x00ffff,x=230,y=300,txt=now["wind_gusts_km"]})
Sorry again...But what mean "NA" when there's no wind ?
Thanks
According to the v9000.lua script there is no meters for ceiling.
line 108:
Code:
local ceiling_unit=settings_table[10]
Lines 691-695
Code:
local s,f,t=string.find(nowweather,">Ceiling: </a></td>%s*<td>([%a%d]*)</td>")
if t~="Unl" then
local s,f,t=string.find(t,"([%d%p]*)")
tc=t..ceiling_unit
else
However, someone that know LUA might be able to convert it and create a way to do it. Unfortunately I don't.
Yes, now["wind_gusts_km"] is correct:
lines 781-798
Code:
local s,f,t=string.find(nowweather,">Gusts: </a></td>%s*<td>([%d%a]*)</td>")
if t~="NA" then
local s,f,t=string.find(t,"(%d*)")
tg=t..wind_mph_unit
tgkm=round(tonumber(t)*1.609)..wind_km_unit
tgkts=round(tonumber(t)*0.869)..wind_kts_unit
else
if translate==1 then naset=additional.NA else naset="NA" end
tg=naset
tgkm=naset
tgkts=naset
end
now["wind_gusts"]=tg
now["wind_gusts_caps"]=string.upper(tg)
now["wind_gusts_km"]=tgkm
now["wind_gusts_km_caps"]=string.upper(tgkm)
now["wind_gusts_kts"]=tgkts
now["wind_gusts_kts_caps"]=string.upper(tgkts)
N/A . or n/a in English means a few things:
- Not applicable
- Not available <<--- here it means this (non disponible)
- No answer
- No assignment
- Nothing added
- Non-assessable
From the looks of it you "might" be able to change this line:
Code:
if translate==1 then naset=additional.NA else naset="NA" end
to
Code:
if translate==1 then naset=additional.NA else naset="ND" end
Bookmarks