mirror of
https://github.com/jbowdre/lolz.git
synced 2024-11-22 05:02:18 +00:00
update local page to more closely match my omg.lol setup
This commit is contained in:
parent
3715b4fb95
commit
19db00f53c
1 changed files with 23 additions and 23 deletions
14
tempest.html
14
tempest.html
|
@ -36,13 +36,13 @@
|
|||
updateAge = getRelativeTime(updateTime);
|
||||
|
||||
// parse data
|
||||
conditions = res.conditions;
|
||||
temp = (res.air_temperature)+ "° F ("+(((res.air_temperature-32)*5)/9).toFixed(1) + "° C)";
|
||||
humidity = res.relative_humidity + "%";
|
||||
wind = res.wind_gust + " mph (" + (res.wind_gust*1.609344).toFixed(1)+ " kph) " + res.wind_direction_cardinal;
|
||||
precipToday = res.precip_accum_local_day + " in";
|
||||
conditions = (res.conditions).toLowerCase();
|
||||
temp = (res.air_temperature)+ "°f ("+(((res.air_temperature-32)*5)/9).toFixed(1) + "°c)";
|
||||
humidity = res.relative_humidity + "% humidity";
|
||||
wind = res.wind_gust + "mph (" + (res.wind_gust*1.609344).toFixed(1)+ "kph) from the " + (res.wind_direction_cardinal).toLowerCase();
|
||||
precipToday = res.precip_accum_local_day + '" of rain today';
|
||||
pressureTrend = res.pressure_trend;
|
||||
pressure = (res.station_pressure).toFixed(2) + " inHg and " + pressureTrend.slice(0,1).toUpperCase() + pressureTrend.slice(1);
|
||||
pressure = (res.station_pressure).toFixed(2) + 'inhg and ' + pressureTrend;
|
||||
icon = res.icon;
|
||||
|
||||
// display data
|
||||
|
@ -95,7 +95,7 @@
|
|||
<li>Temperature: <span id="temp"></span></li>
|
||||
<li>Humidity: <span id="humidity"></span></li>
|
||||
<li>Wind: <span id="wind"></span></li>
|
||||
<li>Precipitation Today: <span id="precipToday"></span></li>
|
||||
<li>Precipitation: <span id="precipToday"></span></li>
|
||||
<li>Pressure: <i class='fa-solid fa-arrow-right-long'></i><span id="pressure"></span></li>
|
||||
<li><i>Last Update: <span id="time"></span></i></li>
|
||||
</body>
|
||||
|
|
Loading…
Reference in a new issue