Author Topic: pywws on a PI  (Read 6894 times)

Offline timerider

  • New member
  • *
  • Posts: 1
pywws on a PI
« 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


Offline Geoff Morris

  • Jr. Member
  • **
  • Posts: 14
    • Shotton Weather
Re: pywws on a PI
« Reply #1 on: September 24, 2014, 09:46:56 AM »
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.

Offline jddavis

  • New member
  • *
  • Posts: 1
    • Personal website
Re: pywws on a PI
« Reply #2 on: September 25, 2014, 05:32:04 AM »
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

Offline LapplandsCohan

  • New member
  • *
  • Posts: 2
    • Eolsborg Weather Station
Re: pywws on a PI
« Reply #3 on: October 12, 2014, 04:50:41 PM »
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"

Quote
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.

Offline LapplandsCohan

  • New member
  • *
  • Posts: 2
    • Eolsborg Weather Station
Re: pywws on a PI
« Reply #4 on: October 12, 2014, 04:55:59 PM »
Issue #1 also needs to be fixed in feed_daily.xml, feed_hourly.xml, tweet.txt and 7days.txt.