Weather by You!
Templates and Projects support => Php templates => Topic started by: timerider on September 23, 2014, 07:58:02 AM
-
Hi All.
I just installed the specific template for pywws.
The first issue that I had, is that I need to change a few files to make it work on the latest version of pywws.
On the 1 hour and 6 hour files
Change the line
Wind: #wind_dir "%s " "" "wind_dir_text
to
Wind: #wind_dir "%s " "" "winddir_text(x)"#
The second issue, is about the wrongly name file missing the 9am.txt ending.
And the third issue that I didn't´t solve yet, is about "Upgrading" the template to the year 2014.
Is there any reference or post what I need to change on all templates to start gathering yearly statistics?
Thanks in advance!
Cheers
-
Hi.............As far as I am aware, you just need to rename one of the yearly templates that you may have (depending on were you got the program from) to 2014.php.xml Then edit it as below......
<size>600, 400</size>
<start>year=2014, month=1, day=1, hour=0</start>
<stop>year=2014, month=12, day=31, hour=0</stop>
<xformat>%b</xformat>
<xlabel>%Y</xlabel>
<dateformat></dateformat>
<plot>
<title>Temperature (°C)</title>
etc..etc....
-----------------------------------------------------------------
I use "nano" for this. Hope this helps....
Geoff.
-
Hi Timerider
I'm also a complete newbie to this and I have found your issue resolution No1 got me out of a hole!!
Can you please be more specific on the second issue "The second issue, is about the wrongly name file missing the 9am.txt ending"
My question is "what file, which location and what should it be modified to"
Many thanks in anticipation.
John D
-
For those of you running the console with verbose to see error messages: fix #1 eliminates the error
"pywws.LiveLog:tuple indices must be integers, not float"
Can you please be more specific on the second issue "The second issue, is about the wrongly name file missing the 9am.txt ending"
My question is "what file, which location and what should it be modified to"
The file forecast_icon.txt has to be changed to forecast_icon_9am.txt, or configuration updated the other way. The file is in the text-folder.
-
Issue #1 also needs to be fixed in feed_daily.xml, feed_hourly.xml, tweet.txt and 7days.txt.