Recent Posts

Pages: 1 ... 7 8 [9] 10
81
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

82
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
83
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.
84
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
85
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!! :)
86
Php templates / Weather Blue NWS script is not working
« Last post by CurtisZM on March 04, 2018, 08:05:58 PM »
Just to let everyone know that the NWS forecast script is not functioning. I believe Ken True just sent out an updated script for his Saratoga webpage. Not the best at code. Please assist. Thank you.
87
Php templates / Re: Monthly Record on Weather Blue Template Not Showing Data
« Last post by Andy9164 on February 12, 2018, 07:47:37 AM »
Glad we could work it out.

Now you mention the fix, it does ring a bell. I think there are other posts in the forum on the same subject.

Andy
88
Php templates / Re: Monthly Record on Weather Blue Template Not Showing Data
« Last post by djohnson1810 on February 11, 2018, 01:40:44 PM »
Thanks for answering.  I think what you suggested was part of the solution but I finally realized the montlyrecord.php file had the include file mislabeled as wt_months_inc.php instead of wt_month_inc.php (added s to month).  Once I changed that everything started working!
89
Php templates / Re: Monthly Record on Weather Blue Template Not Showing Data
« Last post by Andy9164 on February 10, 2018, 03:14:34 PM »
Hi,
I suspect you are missing the wt_month_inc.php file. This is similar to the wt_data_inc.php file. You need Cumulus to process both these files and put them in the correct directory. You must already be processing the wt_data_inc.php as you are getting the other data. Just set up Cumulus to process the other "month" file and put it in the ../data directory.

I think the place to set this up in Cumulus is under Configuration  - Internet and then click on the files tab

If it doesnt solve it post back.

Andy
90
Templates and Projects discussion / Re: error try download templates
« Last post by Grissel on February 01, 2018, 01:05:38 AM »
Read the first time, I felt like quite a simple explanation really.
Pages: 1 ... 7 8 [9] 10