Add CumulusForecast & WSForecast to Dashboard
Posted: Tue 31 Aug 2021 1:29 pm
I am trying to edit one of my tiles and add the Cumulus and Weather Station forecasts separately (while removing the default 'forecast'). Adding them in index.html is simple (added below, with the default 'forecast' kept for now for comparison purposes):
Additionally, I know that dashboard.js has to be updated as well. Below the entry, I added:
However, I am clearly missing something because it is not loading correctly. On the CMX dashboard, I am seeing:
So, any ideas on what I am doing wrong??
Code: Select all
<!-- FORECAST TILE -->
<div class="half-unit forecasttile">
<div class="cont">
<p>Forecast: <span id="Forecast"></span>.</p>
<p>CumulusMX Forecast: <span id="CumulusForecast"></span>.</p>
<p>Weather Station Forecast: <span id="WSForecast"></span>.</p>
</div>
</div>
Additionally, I know that dashboard.js has to be updated as well. Below the
Code: Select all
forecast: (inp.Forecast || "n/a").toString(),
Code: Select all
cumulusforecast: (inp.CumulusForecast || "n/a").toString(),
wsforecast: (inp.WSForecast || "n/a").toString(),
So, any ideas on what I am doing wrong??