Recent Posts

Pages: [1] 2 3 ... 10
1
Promote your site! / My Weather Station
« Last post by ilgoga on July 01, 2018, 06:19:03 AM »
2
Libraries / Re: Forecast icons - pywws template showing BBC icons
« Last post by Mr.Meteo on June 24, 2018, 06:44:00 AM »
Hi Micheal,

You could use these icons for  sure!
These are public icons.

Regards,
Jacques
3
Libraries / Forecast icons pywws template showing BBC icons
« Last post by MichaelZep on June 23, 2018, 10:22:02 AM »
I love your icons Jacques and I am using them.

Can I have your permission to use them on my website as well?
4
Php templates / Weather Blue NWS advforcast2.php update **5/30/2018**
« Last post by CurtisZM on May 30, 2018, 08:39:40 PM »
Another update to Weather Blue NWS forecast script.


1. Make sure you save a copy of your original advance2.php file.

2. Download advforecast2.txt. Once downloaded, make sure to change .txt to .php.

3. Change $NOAAZone to your location.

4. Make sure to find your location at https://www.weather.gov/ and find you city. Then select printable forecast. Copy the URL and paste it in the proper location in the php file.

5. NOAAZone is found here:  https://alerts.weather.gov/

Open advforecast.php and edit these two locations (In bold) to match your location:

$NOAAZone = 'MNZ078'; // change this line to your NOAA warning zone.
// set $fileName to the URL for the point-printable forecast for your area
// NOTE: this value (and $NOAAZone) will be overridden by the first entry in $NWSforecasts if it exists.
$fileName = "https://forecast.weather.gov/MapClick.php?lat=44.2945&lon=-92.6726&unit=0&lg=english&FcstType=text&TextType=2";
5
Php templates / Re: template sky, syntax error,
« Last post by Andy9164 on April 03, 2018, 04:44:00 AM »
Hi Riccardo,
I did some tests last night and downloaded Weather Sky template and loaded on to my test webserver.

I got Cumulus to process the data files and I could not see any errors, I didnt get syntax error or even any error log from my Apache server, so I am a little confused now.

I did see some things were not formatted correctly due to changes in Cumulus MX but pages loaded fine, no problem. Do you have a website address so I can take a look.

Andy
6
Php templates / Re: template sky, syntax error,
« Last post by Andy9164 on April 01, 2018, 01:09:38 PM »
Hi Riccardo,
What weather software are you running.

If running Cumulus please post which version and if running original Cumulus V1 (Windows PC) or Cumulus MX (on PC, Pi, Linux etc.)

There were some major changes on how Cumulus handled characters for time date etc. in MX version. I downloaded Weather Sky template and on default version Line 486 this is first time there might be a conflict due to using new formatting as it has old style "h".

 I had a similar issues on Weather Blues 2 when I changed to Cumuilus MX on a Raspberry Pi. The new formatting also caused badly formatted dates and times i other areas.

Also you could download Notepad++ (Its free and very helpful) and paste here say lines 480 to 490 and I will try and help.

As an example, here is line 486 on the original Weather Blues template

$TtempHF = $pre_time.'<#TtempH format="h'h'nn">'.$pre_date.'<#TtempH format="d ">'.$Tr_monthnames['<#TtempH format="m">'].'<#TtempH format=" yyyy">';

here is what I had to change it to

$TtempHF = $pre_time.'<#TtempH format="HH':'mm">'.$pre_date.'<#TtempH format="dd ">'.$Tr_monthnames['<#TtempH format="%M">'].'<#TtempH format="' 'yyyy">';

If you are using Cumulus MX ( I suspect you are) here is a link to the Cumulus website explaining the differences.

http://sandaysoft.com/forum/viewtopic.php?f=27&t=12908
(Scroll down until you see yellow section)

Let me know if I can help you further as there are other changes

Also if you want to take a look at what I found

http://www.midlifedad.me.uk/WB2_unmodified/records.php This was using the old format

http://www.midlifedad.me.uk/WB2_modified/records.php This was using the new formatted version I did.



Andy

7
Php templates / template sky, syntax error,
« Last post by Solocielo62 on March 27, 2018, 04:10:30 AM »
Hi,  when I try to launch weather Sky I receive this error message:

"Parse error: syntax error, unexpected 'h' (T_STRING) in C:\xampp\htdocs\sky\wt_data_inc.php on line 486"

 can someone help me to understand what is the problem? Thank you
Riccardo
8
Php templates / Re: Weather Blue NWS script is not working
« Last post by CurtisZM on March 14, 2018, 06:19:44 AM »
No problem. All goes to Ken True and Mike Challis for updating the script.
9
Php templates / Re: Weather Blue NWS script is not working
« Last post by Mr.Meteo on March 12, 2018, 11:57:23 AM »
Hi Curtis,

Thanks for this fix.  8)


Regards,
Jacques
10
Php templates / Re: Weather Blue NWS script is not working **Fixed**
« Last post by CurtisZM on March 10, 2018, 09:11:44 AM »
I think I have it fix. Give it a try and see.

1. Make sure you save a copy of your original advance2.php file.

2. Download advforecast2.txt. Once downloaded, make sure to change .txt to .php.

3. Change $NOAAZone to your location. See photo below

4. Copy your $filename URL from your original advforecast2.php and paste it into the new advforecast.php file. See photo below.

5. Upload the updated file to your server. Hope it works!! :)
Pages: [1] 2 3 ... 10