mirror of
https://github.com/jbowdre/lolz.git
synced 2024-11-09 16:12:19 +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);
|
updateAge = getRelativeTime(updateTime);
|
||||||
|
|
||||||
// parse data
|
// parse data
|
||||||
conditions = res.conditions;
|
conditions = (res.conditions).toLowerCase();
|
||||||
temp = (res.air_temperature)+ "° F ("+(((res.air_temperature-32)*5)/9).toFixed(1) + "° C)";
|
temp = (res.air_temperature)+ "°f ("+(((res.air_temperature-32)*5)/9).toFixed(1) + "°c)";
|
||||||
humidity = res.relative_humidity + "%";
|
humidity = res.relative_humidity + "% humidity";
|
||||||
wind = res.wind_gust + " mph (" + (res.wind_gust*1.609344).toFixed(1)+ " kph) " + res.wind_direction_cardinal;
|
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 + " in";
|
precipToday = res.precip_accum_local_day + '" of rain today';
|
||||||
pressureTrend = res.pressure_trend;
|
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;
|
icon = res.icon;
|
||||||
|
|
||||||
// display data
|
// display data
|
||||||
|
@ -95,7 +95,7 @@
|
||||||
<li>Temperature: <span id="temp"></span></li>
|
<li>Temperature: <span id="temp"></span></li>
|
||||||
<li>Humidity: <span id="humidity"></span></li>
|
<li>Humidity: <span id="humidity"></span></li>
|
||||||
<li>Wind: <span id="wind"></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>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>
|
<li><i>Last Update: <span id="time"></span></i></li>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in a new issue