You want all of the HTML/Javascript pasted in?
Here is the 'forecast' section in the source...
<script>
// array of forecast data, one element for each forecast source
var forecast_data = {};
// default display settings based on skin parameters
var default_display_settings = {
'orientation': 'horizontal',
'show_temp': 1,
'show_temp_min': 1,
'show_temp_max': 1,
'show_dewpoint': 0,
'show_humidity': 0,
'show_wind': 1,
'show_clouds': 1,
'show_pop': 1,
'show_snow': 1,
'show_precip': 1,
'show_sun': 0,
'show_moon': 0,
'show_moonphase': 0,
'show_tides': 0,
};
function populate_strip(div_id, data_id, display_settings) {
if(display_settings === undefined || display_settings === null) {
display_settings = default_display_settings;
}
if(! forecast_data[data_id]) return;
var elem = document.getElementById(div_id);
if(! elem) return;
elem.innerHTML = '';
var tbl = document.createElement('table');
if(display_settings.orientation === 'vertical') {
populate_vertical_strip(tbl, data_id, display_settings);
} else {
populate_horizontal_strip(tbl, data_id, display_settings);
}
var d = document.createElement('div');
d.className = 'fc_strip';
d.appendChild(tbl);
d.appendChild(create_summary(forecast_data[data_id].summary));
elem.appendChild(d);
}
function create_col(data) {
var c = document.createElement('col');
c.className = data.className;
return c;
}
function populate_vertical_strip(tbl, data_id, display_settings) {
tbl.appendChild(create_col(forecast_data[data_id].date));
tbl.appendChild(create_col(forecast_data[data_id].hour));
if(display_settings.show_temp_max)
tbl.appendChild(create_col(forecast_data[data_id].tempMax));
if(display_settings.show_temp)
tbl.appendChild(create_col(forecast_data[data_id].temp));
if(display_settings.show_temp_min)
tbl.appendChild(create_col(forecast_data[data_id].tempMin));
if(display_settings.show_dewpoint)
tbl.appendChild(create_col(forecast_data[data_id].dewpoint));
if(display_settings.show_humidity)
tbl.appendChild(create_col(forecast_data[data_id].humidity));
if(display_settings.show_wind) {
tbl.appendChild(create_col(forecast_data[data_id].windSpeed));
tbl.appendChild(create_col(forecast_data[data_id].windGust));
tbl.appendChild(create_col(forecast_data[data_id].windDir));
}
if(display_settings.show_clouds)
tbl.appendChild(create_col(forecast_data[data_id].clouds));
if(display_settings.show_pop)
tbl.appendChild(create_col(forecast_data[data_id].pop));
if(display_settings.show_precip) {
tbl.appendChild(create_col(forecast_data[data_id].qpf));
if(display_settings.show_snow)
tbl.appendChild(create_col(forecast_data[data_id].qsf));
}
if(display_settings.show_sun)
tbl.appendChild(create_col(forecast_data[data_id].sun));
if(display_settings.show_moon)
tbl.appendChild(create_col(forecast_data[data_id].moon));
if(display_settings.show_moonphase)
tbl.appendChild(create_col(forecast_data[data_id].moonphase));
var tr = document.createElement('tr');
tr.appendChild(create_th_icon(forecast_data[data_id].date));
tr.appendChild(create_th_icon(forecast_data[data_id].hour));
if(display_settings.show_temp_max)
tr.appendChild(create_th_icon(forecast_data[data_id].tempMax));
if(display_settings.show_temp)
tr.appendChild(create_th_icon(forecast_data[data_id].temp));
if(display_settings.show_temp_min)
tr.appendChild(create_th_icon(forecast_data[data_id].tempMin));
if(display_settings.show_dewpoint)
tr.appendChild(create_th_icon(forecast_data[data_id].dewpoint));
if(display_settings.show_humidity)
tr.appendChild(create_th_icon(forecast_data[data_id].humidity));
if(display_settings.show_wind) {
tr.appendChild(create_th_icon(forecast_data[data_id].windSpeed));
tr.appendChild(create_th_icon(forecast_data[data_id].windGust));
tr.appendChild(create_th_icon(forecast_data[data_id].windDir));
}
if(display_settings.show_clouds)
tr.appendChild(create_th_icon(forecast_data[data_id].clouds));
if(display_settings.show_pop)
tr.appendChild(create_th_icon(forecast_data[data_id].pop));
if(display_settings.show_precip) {
tr.appendChild(create_th_icon(forecast_data[data_id].qpf));
if(display_settings.show_snow)
tr.appendChild(create_th_icon(forecast_data[data_id].qsf));
}
if(display_settings.show_sun)
tr.appendChild(create_th_icon(forecast_data[data_id].sun));
if(display_settings.show_moon)
tr.appendChild(create_th_icon(forecast_data[data_id].moon));
if(display_settings.show_moonphase)
tr.appendChild(create_th_icon(forecast_data[data_id].moonphase));
tbl.appendChild(tr);
...etc etc ..
On 5 February 2018 at 13:11, mwall <[email protected]> wrote:
> On Monday, February 5, 2018 at 7:59:25 AM UTC-5, Cycle London wrote:
>>
>> #include "../forecast/forecast_strip.inc"
>>
>> .. and that error _seems_ to disappear, but there is still absolutely
>> nothing on my 'landing' page that resembles a forecast.
>>
>
> what do you see when you look at the source of the landing page? (not
> the cheetah template source, but the resulting source that cheetah
> generated)
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/weewx-user/IC1-oPV_Q9w/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.