Author Topic: Test Tags  (Read 7917 times)

0 Members and 1 Guest are viewing this topic.

Offline Father-Ted

  • Member
  • *
  • Posts: 12
    • weather data
Test Tags
« on: August 01, 2024, 01:56:15 AM »
Where do i put  the Test Tags  which ones for a basic web site
New to this so a complete Dummy   :lol: :lol:
My web site is running crater lake
morrinsvilleweatherlive.co.nz
Cheers

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9697
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Test Tags
« Reply #1 on: August 01, 2024, 12:00:14 PM »
The basic Carter Lake HTML template does not use testtags.php so it is not required there.

If you are using the Saratoga template with Weather-Display, then you can use the instructions at
https://saratoga-weather.org/wxtemplates/setup-WD.php
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 blizzardof78

  • Forecaster
  • *****
  • Posts: 667
    • Newcomerstown Weather
Re: Test Tags
« Reply #2 on: August 01, 2024, 09:42:12 PM »
I've got a "dumb" question... So I have the latest version of WD and would like to get a site up and running, and even looked at the step by step you provide to set up the personal weather site, but how do we know what it looks like when finished, and then how do we get a domain name / address assigned to it when we're ready to do so?

Online R.Sidetrack

  • Senior Contributor
  • ****
  • Posts: 263
Re: Test Tags
« Reply #3 on: August 01, 2024, 10:29:34 PM »
... and then how do we get a domain name / address assigned to it when we're ready to do so?
A "domain registrar" will be happy to take your money for that. There are lots of registrars, some may also offer hosting services. Here is one registrar: https://www.namecheap.com/


Keep in mind that aside from buying a domain name you need a host for your site. A commercial host is one option,  depending on your home ISP and their rules it may be possible for you to host your own site from home.
Graham

--- Variety of 'discrete' Ecowitt devices; CumulusMX on Raspberry Pi4 ---

Offline Father-Ted

  • Member
  • *
  • Posts: 12
    • weather data
Re: Test Tags
« Reply #4 on: August 01, 2024, 11:56:16 PM »
The basic Carter Lake HTML template does not use testtags.php so it is not required there.

If you are using the Saratoga template with Weather-Display, then you can use the instructions at
https://saratoga-weather.org/wxtemplates/setup-WD.php
So mr saratogawx if i follow those instructions  i can get the website  running     ;) 
or how do i get more into crater lake 
Cheers

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9697
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Test Tags
« Reply #5 on: August 02, 2024, 09:20:40 AM »
I've got a "dumb" question... So I have the latest version of WD and would like to get a site up and running, and even looked at the step by step you provide to set up the personal weather site, but how do we know what it looks like when finished, and then how do we get a domain name / address assigned to it when we're ready to do so?
You can see examples of the three basic Saratoga templates and they are grouped by geography of the weather station location:

USA:      https://saratoga-weather.org/wxtemplates/USA/wxindex.php
Canada: https://saratoga-weather.org/wxtemplates/Canada/wxindex.php
World:    https://saratoga-weather.org/wxtemplates/World/wxindex.php

Both Canada and World versions are multilingual, USA is English only (but capable of multiple languages).
The sample sites run on Weather-Display.  Other weather software sample sites can be seen at:
https://saratoga-weather.org/wxtemplates/index.php

So mr saratogawx if i follow those instructions  i can get the website  running     ;) 
or how do i get more into crater lake 
Cheers

Yes, following the instructions will get you a running Saratoga template site.  There's three basic parts:
1) get website hosting and a domain name
2) download the appropriate Base, weather software Plugin and forecast icon set .. unzip (preserving internal directory structure from the .zip files)
3) configure Settings.php, Settings-weather.php with your details, and configure weather software to upload data to your site, the upload ALL the files from the template set to your website, and you're online.

To configure the original Carter Lake HTML template with Weather-Display, you have to edit the c:\wdisplay\webfiles wxlocalNN.htm files for each page you want to modify.  The long-term hassle about the HTML-only template is around adding new pages to the menus -- each wxlocalNN.htm file has to be edited.  The Saratoga template uses a common menu system, so edits of one file (flyout-menu.xml) results is having the menu changed on all pages in the site.

I hope this helps you both...
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 meteosanjuan

  • Contributor
  • ***
  • Posts: 123
    • Meteoensevilla
Re: Test Tags
« Reply #6 on: August 02, 2024, 03:46:48 PM »
Where do i put  the Test Tags  which ones for a basic web site
New to this so a complete Dummy   :lol: :lol:
My web site is running crater lake
morrinsvilleweatherlive.co.nz
Cheers


It may be complicated for you, if you are not very used to it it is logical. Go reading manuals, almost everything is in them. The pleasure of getting a meteorological site up and running is great. Luck

Offline blizzardof78

  • Forecaster
  • *****
  • Posts: 667
    • Newcomerstown Weather
Re: Test Tags
« Reply #7 on: August 02, 2024, 04:34:01 PM »
Yea, I think this is a bit toooooooo complicated for my tiny brain to wrap around. Unless there's someone out there that would be willing to tackle a site for me, I think I'll just fade off into the sunset.

Offline blizzardof78

  • Forecaster
  • *****
  • Posts: 667
    • Newcomerstown Weather
Re: Test Tags
« Reply #8 on: August 02, 2024, 08:31:14 PM »
I've got a "dumb" question... So I have the latest version of WD and would like to get a site up and running, and even looked at the step by step you provide to set up the personal weather site, but how do we know what it looks like when finished, and then how do we get a domain name / address assigned to it when we're ready to do so?
You can see examples of the three basic Saratoga templates and they are grouped by geography of the weather station location:

USA:      https://saratoga-weather.org/wxtemplates/USA/wxindex.php
Canada: https://saratoga-weather.org/wxtemplates/Canada/wxindex.php
World:    https://saratoga-weather.org/wxtemplates/World/wxindex.php

Both Canada and World versions are multilingual, USA is English only (but capable of multiple languages).
The sample sites run on Weather-Display.  Other weather software sample sites can be seen at:
https://saratoga-weather.org/wxtemplates/index.php

So mr saratogawx if i follow those instructions  i can get the website  running     ;) 
or how do i get more into crater lake 
Cheers

Yes, following the instructions will get you a running Saratoga template site.  There's three basic parts:
1) get website hosting and a domain name
2) download the appropriate Base, weather software Plugin and forecast icon set .. unzip (preserving internal directory structure from the .zip files)
3) configure Settings.php, Settings-weather.php with your details, and configure weather software to upload data to your site, the upload ALL the files from the template set to your website, and you're online.

To configure the original Carter Lake HTML template with Weather-Display, you have to edit the c:\wdisplay\webfiles wxlocalNN.htm files for each page you want to modify.  The long-term hassle about the HTML-only template is around adding new pages to the menus -- each wxlocalNN.htm file has to be edited.  The Saratoga template uses a common menu system, so edits of one file (flyout-menu.xml) results is having the menu changed on all pages in the site.

I hope this helps you both...

E-mail sent to you. Thanks!

Offline Father-Ted

  • Member
  • *
  • Posts: 12
    • weather data
Re: Test Tags
« Reply #9 on: August 02, 2024, 08:32:09 PM »
I have done the step by step instructions  But am ending
 a 403 Forbidden error
You don't have permission to access this resource.
Cheers
 

Offline Father-Ted

  • Member
  • *
  • Posts: 12
    • weather data
Re: Test Tags
« Reply #10 on: August 02, 2024, 08:41:32 PM »
Ok i have renamed Morrinsville Weather  to index.html in the directory is this right? But its not updating
http://Morrinsvilleweatherlive.co.nz

Oh but wait... Do i have to alter the  Settings.php  ???
« Last Edit: August 03, 2024, 03:29:12 AM by Father-Ted »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9697
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Test Tags
« Reply #11 on: August 03, 2024, 09:59:16 AM »
So several issues to fix.
First, http://morrinsvilleweatherlive.co.nz/check-fetch-times.php?show=info shows that the GD library is not enabled in your PHP 8.2.11
You can likely use your cPanel PHP settings to enable that, otherwise contact your hoster to have it enabled.
Quote
function imagecreatefrompng is NOT available
function imagecreatefromjpeg is NOT available
function imagecreatefromgif is NOT available
function imagettfbbox is NOT available
function imagettftext is NOT available
Second, your homepage default would be wxindex.php and you would copy that to index.php to make it the site default.

Third, your site is missing Settings.php file -- upload that to your site.  And yes, you do the configuration in Settings.php and Settings-weather.php for the majority of the customization of the site.  In Settings.php, it is the
Quote
$SITE['organ']            = 'World Multilingual Website with PHP & AJAX';
that contains the string for the site name.
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 Father-Ted

  • Member
  • *
  • Posts: 12
    • weather data
Re: Test Tags
« Reply #12 on: August 03, 2024, 05:06:52 PM »
Thank you  Its a bit daunting not knowing what  to alter in  settings php and weather settingsphp  the basic like site and email long/lat i have done  in settings but thats all
Is this correct  for settings weather   
#  required settings for Weather-Display software
#---------------------------------------------------------------------------
$SITE['WXtags']         = 'testtags.php';  // for weather variables .. we're using the old name instead of WDtags.php
$SITE['ajaxScript']     = 'ajaxWDwx.js'; // for AJAX enabled display
$SITE['clientrawfile']  = 'clientraw.txt';  // directory and name of Weather-Display realtime.txt file
$SITE['graphImageDir']  = './';  // directory location for graph images with trailing /
# wxhistory.php settings
$SITE['HistoryStartYear'] = '2000';  // start year for station operation
$SITE['HistoryFilesDir']  = './';    // directory location for the [july][2024].htm history files
$SITE['HistoryGraphsDir'] = './';    // directory location for the 10240719.gif graphic daily report files
# For NOAA reports
$SITE['NOAAdir']        = './';   // relative location of the NOAA report files directory
# Weather Station sensors and options for dashboard
$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']         = true;  // set to false if no Solar sensor
$SITE['showSnow']      = false;   // set to false if snow not recorded on WD
$SITE['showSnowTemp']    = 4;     // show snow instead of rain if temp (C) is <= this amount
« Last Edit: August 04, 2024, 01:02:36 AM by Father-Ted »

Offline Father-Ted

  • Member
  • *
  • Posts: 12
    • weather data
Re: Test Tags
« Reply #13 on: August 04, 2024, 01:09:23 AM »
Is this right for settings.php
# Sitewide configuration - Station location, identity and date/time info
############################################################################

$SITE['organ']         = 'World Multilingual Website with PHP &amp; AJAX';
$SITE['copyr']         = '&copy; ' . gmdate("Y",time()) . ',www.MorrinsvilleWeatherLive.co.nz';
$SITE['location']       = 'Waikato, New Zealand';
$SITE['email']         = 'mailto:morrinsvilleweatherlive@xtra.co.nz';
# Station location: latitude, longitude, cityname
$SITE['latitude']      = '-35.31153397';    //North=positive, South=negative decimal degrees
$SITE['longitude']      = '-175.39274323';  //East=positive, West=negative decimal degrees
$SITE['cityname']      = 'Morrinsville';

$SITE['tz']          = 'New-Zealand/Auckland'; //NOTE: this *MUST* be set correctly to
// translate UTC times to your LOCAL time for the displays.
//  http://us.php.net/manual/en/timezones.php  has the list of timezone names
//  pick the one that is closest to your location and put in $SITE['tz'] like:
//    $SITE['tz'] = 'America/Los_Angeles';  // or
//    $SITE['tz'] = 'Europe/Brussels';
// note: date format used for PHP parts only.  Weather software dates are not processed
// except on the astronomy page
// $SITE['timeFormat'] = 'D, d-M-Y g:ia T';  // Day, 31-Mar-2006 6:35pm Tz  (USA Style)
// $SITE['timeFormat'] = 'm/d/Y g:ia';      // USA  format 03/31/2006 14:03
$SITE['timeFormat'] = 'd/m/Y H:i';       // Euro format 31/03/2006 14:03
// $SITE['timeFormat'] = 'Y-m-d H:i';       // ISO  format 2006-03-31 14:03

// $SITE['timeOnlyFormat'] = 'g:ia';          // USA format h:mm[am|pm\
$SITE['timeOnlyFormat'] = 'H:i';          // Euro format hh:mm  (hh=00..23);
$SITE['dateOnlyFormat'] = 'd/m/Y';        // for 31-Mar-2008 or 'j/n/Y' for Euro format
Cheers


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9697
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Test Tags
« Reply #14 on: August 04, 2024, 08:10:46 AM »
Looks good except for $SITE['tz'].  That should be
Quote
$SITE['tz'] = 'Pacific/Auckland'; //NOTE: this *MUST* be set correctly to

Also note that Settings.php must be uploaded to your site and named Settings.php (not settings.php) -- with Linux website hosts, the upper/lower case is important and Settings.php is a different file than settings.php

When you do http://morrinsvilleweatherlive.co.nz/check-fetch-times.php?show=wx three files should show with the Base-World template:
Settings.php, Settings-weather.php and Settings-language.php -- the latter file does not require any customization.
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 Father-Ted

  • Member
  • *
  • Posts: 12
    • weather data
Re: Test Tags
« Reply #15 on: August 05, 2024, 04:37:49 AM »
Sorry no luck   They are all loaded on the server but not going up to the web   :roll:

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9697
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Test Tags
« Reply #16 on: August 05, 2024, 09:13:02 AM »
The Settings.php file is not in /home13/morrins2/public_html where it needs to be. 
Perhaps your FTP client has put it in /home13/morrins2 directory instead?

When it is in the correct directory (and with the name Settings.php) it should show up at
http://morrinsvilleweatherlive.co.nz/check-fetch-times.php?show=settings along with the Settings-weather.php and Settings-language.php which are on the website.
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 Father-Ted

  • Member
  • *
  • Posts: 12
    • weather data
Re: Test Tags
« Reply #17 on: August 06, 2024, 05:46:15 AM »
Progress   I have  Settings.php ,Settings-weather.php and   Settings-language.php  Now what ? Cheers
« Last Edit: August 06, 2024, 05:47:51 AM by Father-Ted »

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 2070
    • My PWS at Leuven Belgium Europe
Re: Test Tags
« Reply #18 on: August 06, 2024, 07:22:29 AM »
Progress   I have  Settings.php ,Settings-weather.php and   Settings-language.php  Now what ? Cheers

Yes you have, but you are missing index.php or wxindex.php
You can check with http://morrinsvilleweatherlive.co.nz/check-fetch-times.php?show=index.php

Either they have uppercase letters or they do not have a wrong permission or you forgot to upload them.

Check the contents of the folder if they are there.

Succes,
Wim

« Last Edit: August 06, 2024, 07:25:27 AM by wvdkuil »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9697
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Test Tags
« Reply #19 on: August 06, 2024, 09:49:33 AM »
Four things to fix: (in addition to uploading wxindex.php as Wim said in the prior post)

First:
using http://morrinsvilleweatherlive.co.nz/check-fetch-times.php?show=info shows:

allow_url_fopen = off

It really needs to be ON as some scripts use that.  In the php.ini configuration for your site add:

allow_url_fopen = 1

This configuration is probably found in the PHP settings in the control panel for the website.

Second, the same URL above shows:

Quote
Status of needed built-in PHP functions

function simplexml_load_file is available
function iconv is NOT available
function json_decode is available
function curl_init is available
function curl_setopt is available
function curl_exec is available
function curl_error is available
function curl_close is available
function curl_getinfo is available
function imagecreatefrompng is available
function imagecreatefromjpeg is available
function imagecreatefromgif is available
function imagettfbbox is available
function imagettftext is available
function gregoriantojd is available
You should contact your hoster's tech support to get the iconv() function enabled in PHP (ask them to get the libiconv library installed in your webserver).  BTW, this is the first time I've seen that function missing in a hoster's PHP installation.

Third:
using http://morrinsvilleweatherlive.co.nz/check-fetch-times.php?show=settings shows you now have all three Settings files on the site.
You do need to change Settings.php file:

Quote
$SITE['tz']             = 'New-Zealand/Auckland'; //NOTE: this *MUST* be set correctly to
to
Quote
$SITE['tz']             = 'Pacific/Auckland'; //NOTE: this *MUST* be set correctly to
as the 'New-Zealand/Auckland' is not a valid timezone name .. it is 'Pacific/Auckland'.

Fourth: Change Settings.php from:
Quote
$SITE['useMeteoalarm'] = true; // =true; to use get-meteoalarm-warning-inc.php for alerts; =false; if not
to
Quote
$SITE['useMeteoalarm'] = false; // =true; to use get-meteoalarm-warning-inc.php for alerts; =false; if not

The Meteoalarm.org warnings are only for European countries.  I don't have a specific script for New Zealand warnings.
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 Father-Ted

  • Member
  • *
  • Posts: 12
    • weather data
Re: Test Tags
« Reply #20 on: August 07, 2024, 12:49:07 AM »
Ok think all has been done  now   host says iconv is available   and allow_url_fopen is open
Cheers

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9697
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Test Tags
« Reply #21 on: August 07, 2024, 08:22:40 AM »
Very close.. http://morrinsvilleweatherlive.co.nz/check-fetch-times.php?show=info shows that the hoster is NOT correct:

Quote
check-fetch-times.php Version 1.56 - 16-Mar-2024
Website PHP information

Running on webhost 'morrinsvilleweatherlive.co.nz' @ IP='103.254.137.2' (reverse IP Name='ip67fe8902.ipv4.syd02.ds.network')
Webserver OS: Linux cp-wc59.per01.ds.network 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
PHP Version: 8.2.21 built for Linux
PHP cmd location: /opt/cpanel/ea-php82/root/usr/bin/php
Document root: /home13/morrins2/public_html
Template root: /home13/morrins2/public_html
allow_url_fopen = off
allow_url_include = off
request_order = GP
Stream support for http is available
Stream support for https is available
Streams supported: compress.zlib, data, file, ftp, ftps, glob, http, https, phar, php
Socket transports: ssl, tcp, tls, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3, udg, udp, unix
Status of needed built-in PHP functions

function simplexml_load_file is available
function iconv is NOT available
function json_decode is available
function curl_init is available
function curl_setopt is available
function curl_exec is available
function curl_error is available
function curl_close is available
function curl_getinfo is available
function imagecreatefrompng is available
function imagecreatefromjpeg is available
function imagecreatefromgif is available
function imagettfbbox is available
function imagettftext is available
function gregoriantojd is available
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 Father-Ted

  • Member
  • *
  • Posts: 12
    • weather data
Re: Test Tags
« Reply #22 on: August 07, 2024, 11:44:12 PM »
So close yet still so far away  :roll: #-o....

Offline Father-Ted

  • Member
  • *
  • Posts: 12
    • weather data
Re: Test Tags
« Reply #23 on: August 08, 2024, 08:46:13 PM »
Have got my Host to update all the is needed  So now where do i go from here??
Cheers

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9697
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Test Tags
« Reply #24 on: August 08, 2024, 09:00:43 PM »
Good news.
Looking at https://morrinsvilleweatherlive.co.nz/wxstatus.php shows that everything is updating from Weather-Display.
Only the WXSIM plaintext.txt seems stale.  If you are running WXSIM, then have Weather-Display upload it every hour.

You can now copy wxindex.php to index.php and upload it.. then the default webpage is correctly installed.

Looking at https://morrinsvilleweatherlive.co.nz/wxindex.php shows that the Aerisweather/Xweather is not correctly configured for use with an API key.  If your Weather-Display is submitting data to pwsweather.com, then you can get a free API key to use with the AW-forecast.php script.
See the instructions at https://saratoga-weather.org/scripts-AWforecast.php

You could use WeatherUnderground/TWC forecasts instead or OpenWeather or Pirateweather.  The setups for the scripts can all be seen on my scripts page for each script.
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