mirror of
https://github.com/jbowdre/lolz.git
synced 2024-12-22 07:42:19 +00:00
make rain display more concise
This commit is contained in:
parent
fa72cf804e
commit
0a0d7d4f88
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@
|
|||
|
||||
// weather code inspired by https://kris.omg.lol
|
||||
// fetch from API proxy
|
||||
fetch('https://paste.jbowdre.lol/tempest.json/raw')
|
||||
fetch('https://paste.jbowdre.lol/testest.json/raw')
|
||||
.then(res => res.json())
|
||||
.then(function(res){
|
||||
|
||||
|
@ -60,7 +60,7 @@
|
|||
humidity = `${res.relative_humidity}% humidity`;
|
||||
wind = `${res.wind_gust}mph (${(res.wind_gust*1.609344).toFixed(1)}kph) from ${(res.wind_direction_cardinal).toLowerCase()}`;
|
||||
precipLabel = (rainRanges.find(range => res.precip_accum_local_day < range.upper)).label;
|
||||
precipToday = `${res.precip_accum_local_day}" of rain today`;
|
||||
precipToday = `${res.precip_accum_local_day}" rain today`;
|
||||
pressureTrend = res.pressure_trend;
|
||||
pressure = `${res.station_pressure}inhg and ${pressureTrend}`;
|
||||
icon = res.icon;
|
||||
|
|
Loading…
Reference in a new issue