Need help....

I think you are missing

Download: Icon Set (V2 for NWS 55x55 icons) (upload to your website in the /forecast/images directory)

from the page I linked above

wooohooo! Thanks Niko. Images are there now.

Last question for tonight. How do I get time to show USA format?

What do you mean? AM/PM?

yes

All Update time stamps on the website are European style while others are am/pm…

Hmmm, looks like you’ve set AM/PM in settings.php so there’s something else going on, a problem for tomorrow…

OK.

Also…looks like my testtags.php is not being uploaded…

Plus Wind and Rain is saying we are in January…

and lastly I would love to know where I can get the Oregon map pages…and possibly link to my GRLevel radar

I’m going to move this to the templates sub-forum.

Hi All,

Can anyone help me with the:

  1. refresh rate to 10 sec? …right now at 20/30sec.
  2. where do I find maps that are relative to Oregon?
  3. where do I find the warnings/advisories for Oregon?
  4. do you know why rain and wind are mentioning a January reference?
  5. On the NWS forecast its warning me that the testtags.php is not being produced… I am wondering why not.

Thanks,
P

First, you need to finish setup of Weather-Display to upload your testtags.php to your website – the one currently there contains demo data from my station from 01/27/2011. Use: https://saratoga-weather.org/wxtemplates/setup-WD.php as a guide on how to do that.

When it is working normally, your status page http://www.cedarridgewx.com/wxstatus.php will show “Current Data” and your site will show all of your current conditions. At present, only the realtime clientraw.txt file is being updated, not your testtags.php file.

You set the ‘refresh rate’ in two places. First, Weather-Display has to upload your clientraw.txt file at 10 second intervals. Use WD, Control Panel, Web Files/Realtime/WDL, Realtime Client FTP/AJAX TAB and set the interval to 10 seconds.
You’ve already set ajaxWDwx.js file to have

var reloadTime = 10000;       // reload AJAX conditions every 5 seconds (= 5000 ms)

so it will check every 10 seconds for an update.

For Oregon, try https://www.weather.gov/ and search for your city name. On that page with your forecast shown, there is a link near the bottom of the page for “Printable Forecast” it will look like

https://forecast.weather.gov/MapClick.php?lat=45.5118&lon=-122.6756

– copy that link and use it in the Settings.php for your forecast. Also on that page is a link to the Zone forecast… hover over that link and you’ll see an URL with ORZnnn in it… the ORZnnn is your Zone forecast code.
To find your County Zone code, go to https://alerts.weather.gov/cap/or.php?x=3 and look up your county … it will have an ORCmmm code… remember to use both ORZnnn and ORCmmm codes you discovered to configure the NWS alerts area in Settings.php

for 4 and 5 above, you just have to configure Weather-Display to upload testtags.php regularly (5 minute intervals).

Thank Ken. Did all that and got some improvements…but now I get a message that testtags.txt is not there…

Ken, I think I forgot to do this…
Copy testtags.txt file from the distribution WXtags-template-files/ directory to your c:\wdisplay\webfiles directory

Now seems to be OK…

Now only the satellites pages on home page and radar…

I follow the script instructions but cant seem to get the map…

P

For the basic radar and home-page images, edit Settings.php and change

// Radar settings
$SITE['noaaradar']        = 'MUX';           // LAST 3 characters of NOAA Radar Site ID
                                        // e.g. Radar KMUX has $SITE['noaaradar'] = 'MUX';
$SITE['WUregion']    = 'sw';                // Wunderground regional maps
// 'sw'=SouthWest, 'nw'=NorthWest, 'mw'=Midwest
// 'sp'=South Central, 'ne'=North East, 'se'=South East

to

// Radar settings
$SITE['noaaradar']        = 'RTX';           // LAST 3 characters of NOAA Radar Site ID
                                        // e.g. Radar KMUX has $SITE['noaaradar'] = 'MUX';
$SITE['WUregion']    = 'nw';                // Wunderground regional maps
// 'sw'=SouthWest, 'nw'=NorthWest, 'mw'=Midwest
// 'sp'=South Central, 'ne'=North East, 'se'=South East

I see you’ve changed your NWS forecast/alerts settings to

$SITE['NWSforecasts']   = array( // for the advforecast2.php V3.xx version script
// use "Zone|Location|Point-printableURL",  as entries .. first one will be the default forecast.
  "ORC051|Portland|https://forecast.weather.gov/MapClick.php?lat=45.534&lon=-122.8189&unit=0&lg=english&FcstType=text&TextType=2",
"ORC067|Cedar Hills|https://forecast.weather.gov/MapClick.php?lat=45.4847&lon=-122.796&unit=0&lg=english&FcstType=text&TextType=2",
);

// Uncomment the two lines below to use WXSIM as the ONLY forecast script to use
// $SITE['fcstscript']    = 'plaintext-parser.php';    // WXSIM forecast (if only forecast script)
// $SITE['fcstorg']        = 'WXSIM';    // set to 'WXSIM' for WXSIM forecast

// NOAA warning zone
$SITE['noaazone']         = 'ORC067'; // used for NOAA advisories and advforecast2.php zone forecasts
$SITE['hurlURL']        = "wxadvisory.php"; // page to launch for details on NOAA advisories
// 

// NWS Alerts package configuration (for Curly's nws-alerts scripts)
// "Location|ZoneCode|CountyCode[|CountyCode]..."
// Note: if more than 4 zone/county codes are used, a message will appear if you are NOT using
//    cron to provide updates.
// Note: additional/optional nws-alerts configuration is in nws-alerts-config.php file
$SITE['NWSalertsCodes'] = array(
  "Santa Clara Valley|CAZ513|CAC085",
//  "Santa Cruz Mtns|CAZ512|CAC081|CAC085|CAC087",
  "Santa Cruz|CAZ529|CAC087",
//  "Monterey|CAZ530|CAC053",
//  "South/East Bay|CAZ508|CAC081",
//  "San Mateo Coast|CAZ509|CAC081",
//  "San Francisco|CAZ006|CAC075"
);

For forecasts, you need to use the Forecast Zone code, not the County Code. Both the Forecast Zone and County Zone should appear in the NWSalerts area however.

I suggest you replace the above with

$SITE['NWSforecasts']   = array( // for the advforecast2.php V3.xx version script
// use "Zone|Location|Point-printableURL",  as entries .. first one will be the default forecast.
  "ORZ006|Portland|https://forecast.weather.gov/MapClick.php?lat=45.534&lon=-122.8189&unit=0&lg=english&FcstType=text&TextType=2",
"ORZ006|Cedar Hills|https://forecast.weather.gov/MapClick.php?lat=45.4847&lon=-122.796&unit=0&lg=english&FcstType=text&TextType=2",
);

// Uncomment the two lines below to use WXSIM as the ONLY forecast script to use
// $SITE['fcstscript']    = 'plaintext-parser.php';    // WXSIM forecast (if only forecast script)
// $SITE['fcstorg']        = 'WXSIM';    // set to 'WXSIM' for WXSIM forecast

// NOAA warning zone
$SITE['noaazone']         = 'ORZ006'; // used for NOAA advisories and advforecast2.php zone forecasts
$SITE['hurlURL']        = "wxadvisory.php"; // page to launch for details on NOAA advisories
// 

// NWS Alerts package configuration (for Curly's nws-alerts scripts)
// "Location|ZoneCode|CountyCode[|CountyCode]..."
// Note: if more than 4 zone/county codes are used, a message will appear if you are NOT using
//    cron to provide updates.
// Note: additional/optional nws-alerts configuration is in nws-alerts-config.php file
$SITE['NWSalertsCodes'] = array(
  "Portland|ORZ006|ORC067",
//  "Santa Cruz Mtns|CAZ512|CAC081|CAC085|CAC087",
//  "Santa Cruz|CAZ529|CAC087",
//  "Monterey|CAZ530|CAC053",
//  "South/East Bay|CAZ508|CAC081",
//  "San Mateo Coast|CAZ509|CAC081",
//  "San Francisco|CAZ006|CAC075"
);

and that should correct both issues.

Amazing Ken! THANK YOU!
Do you know why some time format is am/pm and some in 00:00:00?

Lastly where can I find the script that will allow for changing between imperial and metric systems?

Thanks,
Paolo

The time will display based on whatever setting you have in Weather-Display for the realtime updates … use WD, Control Panel, Units/Other Settings, Precision/Time/Date/Cloud Height TAB to change the basic time format.
Only Tick ONE of ‘use 24 hour time’ OR ‘use AM/PM’ as you prefer.

The imperial/metric switching script is the Burnsville alternative dashboard set of scripts – you can get it from here use the Alt-Dashboard 6.95c Script for a new install.

Note that it is a legacy script – Scott no longer supports it and I offer the download as-is. It is also somewhat difficult to set up and requires you read the docs to make the additional settings required.

Thanks Ken. Changed the time.

Also, the second map on the home page is from Feb 18th…did you notice that? I think I will change it to a different map…maybe the same as you as we are expecting lighting here tomorrow which is unusual for Oregon.

Thanks,
P

A lot of the WU maps are stuck on Feb 18. That is a WU problem (no surprise).

The old WU satellite maps are stuck.

You can change your index.php from

    <img src="https://icons.wunderground.com/data/640x480/<?php echo $SITE['WUregion']; ?>_vi_anim.gif" alt="Regional Infrared Satellite"  
      width="320" height="240" style="margin: 0px; padding: 0px; border: none" />

to

    <img src="https://s.w-x.co/staticmaps/wu/wu/satir1200_cur/usa<?php echo $SITE['WUregion']; ?>/animate.png" alt="Regional Infrared Satellite"  
      width="320" height="240" style="margin: 0px; padding: 0px; border: none" />

to get the animated NorthWest infrared satellite image.

Thanks Ken.

I looked at your website…but cant seem to find the scripts for stickers that people use to show weather conditions on other websites as well as in their signatures…
Can you please point me in the right direction?

Thanks,
P