Page 1 of 1

Add CumulusForecast & WSForecast to Dashboard

Posted: Tue 31 Aug 2021 1:29 pm
by stefanbagnato
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):

Code: Select all

<!-- FORECAST TILE -->
<div class="half-unit forecasttile">
   <div class="cont">
      <p>Forecast:&emsp;<span id="Forecast"></span>.</p>
      <p>CumulusMX Forecast:&emsp;<span id="CumulusForecast"></span>.</p>
      <p>Weather Station Forecast:&emsp;<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(),
entry, I added:

Code: Select all

cumulusforecast: (inp.CumulusForecast || "n/a").toString(),
wsforecast: (inp.WSForecast || "n/a").toString(),
However, I am clearly missing something because it is not loading correctly. On the CMX dashboard, I am seeing:

Capture.PNG


So, any ideas on what I am doing wrong??