So I set SOLAR and UV to "false" and this happened...

Saratoga: In Settings.php I set $SITE[‘SOLAR’] and $SITE[‘UV’] to “false;” because my WMR300 has neither a Solar sensor nor a UV sensor, and now I see two sections with “UV Index Forecast” on my front page. How can I remove these, or change them to something different?

I’m no expert but if you look in settings.php you’ll see:

$SITE['UVscript']		= 'get-UV-forecast-inc.php'; // worldwide forecast script for UV Index
//	comment out above line to exclude UV forecast from dashboard, gizmo and wxuvforecast.php page

so I would try doing that.

Did that, niko… still there.

That is the built-in response when solar and UV are turned off (to use the UV forecast instead of those values).

You’ll need to change the coding in ajax-dashboard.php to fully remove (or substitute other content). Be careful with the mods… it is non-trivial to modify ajax-dashboard.php due to the table structure and all the PHP conditional HTML generation. Good luck…

Best regards,
Ken

So what does this do Ken:

 
$SITE['UVscript']        = 'get-UV-forecast-inc.php'; // worldwide forecast script for UV Index 
//    comment out above line to exclude UV forecast from dashboard, gizmo and wxuvforecast.php page 
// 

Hmmm… just tried some tests. Commenting that line in Settings.php out doesn’t remove it from ajax-dashboard.php since there’s a default of

$UVscript		= 'get-UV-forecast-inc.php'; // worldwide forecast script for UV Index

in it, which is overridden by the $SITE[UVscript] definition (if there is one).

Commenting out the $UVscript in the variable just results in two ‘n/a’ displays for UV Forecast, in the dashboard, but doesn’t remove the two table entries.
I guess I’d never planned to have those table entries ‘gracefully’ removed or other things substituted for the UV or Solar values.

Like I said, it’s all modifiable if you are careful around preserving the table row/column structure (which is quite complex with nested tables).
A good exercise for the student :slight_smile: