SNOW

Hi

Have a look to my website page: www.jeanrobertmarion.com

The temperature in below 5 C and it is still indicating RAIN instead snow.

In settings.php the setting is showsnou = 5

Dont understand.

In order to show the snow on the dashboard, three things need to happen:

  1. $SITE[‘showSnow’] = true; must be set in Settings.php (you have that set)
  2. the current temperature must be less than or equal to $SITE[‘showSnowTemp’] … your setting of 5 is ok
  3. there must be snow recorded in WD, Input Daily Weather, Snow Input TAB.
    in particular, the Season’s snow fall must be greater than zero – currently, your station (via testtags.php) is showing
// Snow // ===== // $snowseasonin = '0'; // Snow for season you have entered under input daily weather, inches $snowmonthin = '0'; // Snow for month you have entered under input daily weather, inches $snowtodayin = '0'; // Snow for today you have entered under input daily weather, inches $snowseasoncm = '0.0'; // Snow for season you have entered under input daily weather, cm $snowmonthcm = '0'; // Snow for month you have entered under input daily weather, cm $snowtodaycm = '0.0'; // Snow for today you have entered under input daily weather, cm $snowyesterday = '0'; // Yesterdays' snow $snowheight = '126'; // Estimated height snow will fall at $snowheightnew = ' 0'; // Estimated height snow will fall at, new formula // $snownowin = '0'; // Current snow depth, inches. $snownowcm = '0'; // Current snow depth, cm. // $snowrain = '0.0'; // Rain measure by a heated rain gauge when temp below freezing times 10 to give estimated snow fall $snowdaysthismonth = '0'; // Days with snow this month $snowdaysthisyear = '0'; // Days with snow this year

Since $snowseasoncm = ‘0’, the snow panel is not displayed automatically.

This is the logic used in ajax-dashboard.php for that (in the Canada and World templates)

if ($showSnow and strip_units($temperature) <= $showSnowTemp and $snowseasoncm > 0.0) {
  $displaySnow = true;
}

Make entries in your WD panel and then the snow display will work :slight_smile:

Best regards,
Ken

OK you are abseloutly right i did what you told me to do and it works !

This time i printed your answer this way i will remember it.

Best regards and again congratulations for your great work.