Author Topic: Questions about main page  (Read 945 times)

0 Members and 1 Guest are viewing this topic.

Offline chief-david

  • Educational Weather
  • Forecaster
  • *****
  • Posts: 2900
  • Space Academy for Educators
    • Benilde-St. Margaret's Weather
Questions about main page
« on: June 28, 2024, 05:05:01 PM »
My davis is up and running. Kicking butt.

1. I may have screwed something up and my current conditions icon is not working.
How can I fix it.

2. Can I add my UV/Solar instead of having the UV/Solar forecast?

https://www.bsmweather.org/wxindex.php

Using Weather display.



You can't phase me-I teach Middle School.
It's not you-It's WU.

Offline Vasco

  • Forecaster
  • *****
  • Posts: 524
    • PWS
Re: Questions about main page
« Reply #1 on: June 28, 2024, 05:33:50 PM »
2. Can I add my UV/Solar instead of having the UV/Solar forecast?

Try ajax-dashboard.php around line 70:

Code: [Select]
$haveUV   = true;        // set to false if no UV sensor
$haveSolar = true;       // set to false if no Solar sensor

Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

Offline chief-david

  • Educational Weather
  • Forecaster
  • *****
  • Posts: 2900
  • Space Academy for Educators
    • Benilde-St. Margaret's Weather
Re: Questions about main page
« Reply #2 on: June 28, 2024, 06:54:56 PM »
2. Can I add my UV/Solar instead of having the UV/Solar forecast?

Try ajax-dashboard.php around line 70:

Code: [Select]
$haveUV   = true;        // set to false if no UV sensor
$haveSolar = true;       // set to false if no Solar sensor

I have that .....but still has the UV Forecast

oops. may not have had it in

Do I need to get rid of the UV script?
« Last Edit: June 28, 2024, 06:58:13 PM by chief-david »



You can't phase me-I teach Middle School.
It's not you-It's WU.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9568
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Questions about main page
« Reply #3 on: June 28, 2024, 07:05:59 PM »
No, keep the UV script.. it's used by the wxuvforecast.php page.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline chief-david

  • Educational Weather
  • Forecaster
  • *****
  • Posts: 2900
  • Space Academy for Educators
    • Benilde-St. Margaret's Weather
Re: Questions about main page
« Reply #4 on: July 07, 2024, 11:16:15 AM »
I still see UV forecast and not my UV settings.

What else should I look at
https://bsmweather.org/wxindex.php



You can't phase me-I teach Middle School.
It's not you-It's WU.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9568
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Questions about main page
« Reply #5 on: July 07, 2024, 03:14:26 PM »
In Settings-weather.php you have
Quote
$SITE['DavisVP']        = false;  // set to false if not a Davis VP weather station
$SITE['UV']                = false;  // set to false if no UV sensor
$SITE['SOLAR']            = false;  // set to false if no Solar sensor
change that to
Quote
$SITE['DavisVP']        = false;  // set to false if not a Davis VP weather station
$SITE['UV']                = true;  // set to false if no UV sensor
$SITE['SOLAR']            = true;  // set to false if no Solar sensor

N.B.  The values in Settings.php/Settings-weather.php override the built-in settings in other scripts when using the Saratoga template.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Vasco

  • Forecaster
  • *****
  • Posts: 524
    • PWS
Re: Questions about main page
« Reply #6 on: July 07, 2024, 04:34:09 PM »
N.B.  The values in Settings.php/Settings-weather.php override the built-in settings in other scripts when using the Saratoga template.

Even in ajax-dashboard.php? Hadn't realised that could be used standalone. . .

Sorry for the duff gen, @chief-david  :(

P.S. If this is your new Davis station you probably need
Quote
$SITE['DavisVP']        = true;  // set to false if not a Davis VP weather station
too. . .
« Last Edit: July 07, 2024, 04:48:33 PM by Vasco »
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9568
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Questions about main page
« Reply #7 on: July 07, 2024, 05:13:51 PM »
I started out making separate scripts with inbuilt settings for standalone uses.  When I put together the templates with Kevin Reed and Mike Challis, I adapted the scripts to check for $SITE variables to override the built-in values -- that way, template users could just modify stuff in Settings.php/Settings-weather.php and the the support scripts would autoconfigure.  It made for easy setup of the templates, and allowed for simple replacement of the support scripts without further configuration when updates were issued.  Now you know the method behind my madness :)

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline chief-david

  • Educational Weather
  • Forecaster
  • *****
  • Posts: 2900
  • Space Academy for Educators
    • Benilde-St. Margaret's Weather
Re: Questions about main page
« Reply #8 on: July 07, 2024, 05:39:17 PM »
In Settings-weather.php you have
Quote
$SITE['DavisVP']        = false;  // set to false if not a Davis VP weather station
$SITE['UV']                = false;  // set to false if no UV sensor
$SITE['SOLAR']            = false;  // set to false if no Solar sensor
change that to
Quote
$SITE['DavisVP']        = false;  // set to false if not a Davis VP weather station
$SITE['UV']                = true;  // set to false if no UV sensor
$SITE['SOLAR']            = true;  // set to false if no Solar sensor

N.B.  The values in Settings.php/Settings-weather.php override the built-in settings in other scripts when using the Saratoga template.

Thanks, that is it. I was on the wrong file.

Yes, vasco, I have a new Davis.



You can't phase me-I teach Middle School.
It's not you-It's WU.

Offline Vasco

  • Forecaster
  • *****
  • Posts: 524
    • PWS
Re: Questions about main page
« Reply #9 on: July 07, 2024, 05:58:18 PM »
Now you know the method behind my madness :)

Forgive me, I'm relatively new to this game  :lol:
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

 

anything