Author Topic: NEWBIE - Pywws Weather Nature Template Help  (Read 4155 times)

Offline jakestephens2

  • New member
  • *
  • Posts: 4
    • Whitacre WeatherPi
NEWBIE - Pywws Weather Nature Template Help
« on: June 19, 2016, 11:33:02 AM »
Good Evening!!

First post, go easy!  :)

I have been working on my weather station project for some time and been following some of the great topics and advice on here! I have got the Maplin USB Weather Station and followed the guide over on Dragon Tail http://www.weather.dragontail.co.uk/index.php?page=station_setup so far so good!

I haven't had many setbacks as yet (touch wood)... Download the Pywws Weather Nature Template and followed the READ.ME file and put them on my IIS7 web server (FTPing from the RPi to web server entered FTP details in the weather.ini). I have attached a screenshot of what is in my web directory.

The issue I have and it's possibly something stupid but it's displaying the header image and 'Observations of last' section but that's it. No left side bar or anything. Please feel free to take a look and see what I'm on about: http://weather.stephens-mail.co.uk/

Thank you in advance!


Offline Ecce

  • Jr. Member
  • **
  • Posts: 21
    • Kentallen weather
Re: NEWBIE - Pywws Weather Nature Template Help
« Reply #1 on: June 19, 2016, 03:35:01 PM »
Hi Jake, not sure I'll be much help as I don't use Pywss but from your image you seem to be missing a the plot and text folders and the weather ini doesn't look as if its uploaded.

Offline jakestephens2

  • New member
  • *
  • Posts: 4
    • Whitacre WeatherPi
Re: NEWBIE - Pywws Weather Nature Template Help
« Reply #2 on: June 19, 2016, 03:49:54 PM »
Hi Ecce!

I'll have a go at putting those two directories in the web root but going by the READ.ME file it says the plot and text files need to go in the Pywws directory on the RPi which I have done.

2-Copy files and <folders> to your website:
  - index.php
  - styles.css
  - <data>
  - <images>

3-Copy these <folders> to your pywws folder:
  - <plot>
  - <text>

Regards to the weather.ini I have reattached it :)

Offline Ecce

  • Jr. Member
  • **
  • Posts: 21
    • Kentallen weather
Re: NEWBIE - Pywws Weather Nature Template Help
« Reply #3 on: June 19, 2016, 03:52:50 PM »
See, I said I probably wasn't going to be much help lol.

Am sure you'll get this sorted soon ;)

Offline jakestephens2

  • New member
  • *
  • Posts: 4
    • Whitacre WeatherPi
Re: NEWBIE - Pywws Weather Nature Template Help
« Reply #4 on: June 19, 2016, 03:58:55 PM »
Aha! Thank you for the sanity check, I'm sure I wasn't going mad...  ;D

Offline Ecce

  • Jr. Member
  • **
  • Posts: 21
    • Kentallen weather
Re: NEWBIE - Pywws Weather Nature Template Help
« Reply #5 on: June 19, 2016, 04:12:42 PM »
Am guessing there might be a php error somewhere around
<div id="" class=""></div>
as the index page terminates there. Can you check the server error logs?

Offline Ecce

  • Jr. Member
  • **
  • Posts: 21
    • Kentallen weather
Re: NEWBIE - Pywws Weather Nature Template Help
« Reply #6 on: June 19, 2016, 04:38:43 PM »
This may (or may not) help Jake.

I just uploaded the same files as you did without any editing and get an error but that is probably because no images were uploaded in the data folder. I guess since you don't have that error then you are actually uploading stuff to you site (unless you are suppressing errors?).

www.mullweather.co.uk/pywss

Offline jakestephens2

  • New member
  • *
  • Posts: 4
    • Whitacre WeatherPi
Re: NEWBIE - Pywws Weather Nature Template Help
« Reply #7 on: June 20, 2016, 04:50:26 PM »
That helped me quite a bit, thank you!! I have made some more progress, got to the same stage as yourself! Please see my updated 'weather.ini' file. The issue I now have is in order to get to this stage I had to manually copy the 'forecast_icon_9am.txt' file from text folder (located within the website template zip file) I have read somewhere that pywws should automatically copy it to the data folder in the web root? Now do I need to put the 'forecast_icon_9am.txt' in the hourly string
Code: [Select]
text = ['24hrs.txt', '7days.txt', 'feed_hourly.xml', 'allmonths.txt'] ?

Code: [Select]
pi@weatherpi:~/weather $ cat /home/pi/weather/data/weather.ini
[config]
ws type = 1080
day end hour = 9
gnuplot encoding = iso_8859_1
language = en
logdata sync = 1
rain day threshold = 0.2
usb activity margin = 3.0
pressure offset = 9.4
frequent writes = False
template encoding = iso-8859-1
gnuplot version = 4.2

[fixed]
station clock = 1365620624.45
sensor clock = 1365620436.04
pressure offset = -7.1

[paths]
templates = /home/pi/weather/templates/
graph_templates = /home/pi/weather/templates/
work = /home/pi/weather/temp
local_files = /home/pi/weather/results/

[live]
services = []
twitter = []
text = []
plot = []

[logged]
services = []
twitter = []
text = ['6hrs.txt']
plot = []

[hourly]
services = []
twitter = []
text = ['24hrs.txt', '7days.txt', 'feed_hourly.xml', 'allmonths.txt']
plot = ['7days.png.xml', '24hrs.png.xml', 'rose_24hrs.png.xml' ,'24hrs_full_features.png.xml']

[12 hourly]
services = []
twitter = []
text = []
plot = []

[daily]
services = []
twitter = []
text = ['feed_daily.xml']
plot = ['28days.png.xml']

[ftp]
local site = False
secure = False
site = ftp.example.com
user = myusername
password = mypassword
directory = /weather.stephens-mail.co.uk/data
port = 21

[Zambretti]
north = True
baro upper = 1050.0
baro lower = 950.0

Offline Ecce

  • Jr. Member
  • **
  • Posts: 21
    • Kentallen weather
Re: NEWBIE - Pywws Weather Nature Template Help
« Reply #8 on: June 21, 2016, 02:01:44 PM »
Things are getting there Jake :)

I'm a bit lost now as I don't have any data to play with on my laptop but looking quickly at your last post do you need to include 1hrs.txt in that first line with 24hrs.txt etc?

Not really sure about the forecast problem, it (sort of) looks like nothing is being computed and just displaying the contents of forecast_icon_9am?