Author Topic: Basic - data to self hosted website  (Read 2119 times)

Offline craynerd

  • New member
  • *
  • Posts: 4
    • Raynerd
Basic - data to self hosted website
« on: February 27, 2014, 06:21:19 PM »
I'm sorry, this is a basic question but this is all a whirl-wind, I'm new to weather stations, new to raspberry pi and new to Linux!!

I have a weather station communicating with a raspberry pi with pywws. On the pi itself I am hosting weatherbyyou nature-pywws template. At present I can only see the header but I appreciate this is because I have no data!

I'm confused with a very basic principle - where should the data files actually be going!?

On my pi home folder, I have the standard pywws structure of a webdata folder as well as a data folder containing daily, monthly, hourly, raw and calib folders.  In the website template folder www, I have a data folder (and also a text but I don't think I should be touching this!)

I presume I need to divert some of the data files into the website www folder rather than the users home folder...but I'm not clear what data I should be outputting into the website template folder. Can someone please advise?

I'm very grateful of any support.

Chris

Offline craynerd

  • New member
  • *
  • Posts: 4
    • Raynerd
Re: Basic - data to self hosted website
« Reply #1 on: February 28, 2014, 02:43:54 PM »
Ok, I've opened this up ...

http://86.180.180.191

Still can only see the top header despite trying to add data to the data folder in the web template

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Basic - data to self hosted website
« Reply #2 on: February 28, 2014, 04:41:47 PM »
Hi Chris,

I'm new to Linux too... an have no PI, but if you read
the READ.ME file, you'll see how it is supposed to work.

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

Then, Copy these <folders> to your (PI) pywws folder:
  - <plot>
  - <text>

Finally, Configure your pywws weather.ini file to specify
where you've put folders plot and text in your PI.

templates = /opt/weather/text/
graph_templates = /opt/weather/plot/

So, hope this help!

Regards,
Jacques
Please, consider supporting this site 

Offline craynerd

  • New member
  • *
  • Posts: 4
    • Raynerd
Re: Basic - data to self hosted website
« Reply #3 on: March 01, 2014, 02:32:51 AM »
OK, I`d certainly made some mistakes but it is still not working.

So I copied all the files from the nature template to a folder on my pi called /var/www because this is the folder that displays the web.

I then moved the folders plot and text to the pi`s home weather pywws folder   /home/pi/weather - so I now have plot and text folders in there with associated files.

What is confusing me is the paths. Based on the fact that the plot and text are in my home pywws folder, the paths are:
templates = /home/pi/weather/text/
graph_templates = /home/pi/weather/plot/


For FTP I have:
[ftp]
local site = True
secure = False
site =
user =
password =
directory = /var/www
port = 21

This seems to work OK because files that 'look right to me', such as 7days.txt and such appear in the var/www folder.

Still, I have no content in the main site other than the header!

I`d appreciate any more help. I`ve pasted my full weather.ini file to the following paste bin:  http://pastie.org/8814240


Cheers
Chris

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Basic - data to self hosted website
« Reply #4 on: March 01, 2014, 06:47:16 AM »
Hi Chris,

Page stop when it try to include file: data/forecast_icon.txt
so your local website supposed to have images and data folders
into your var/www folder.

Also, user Pingu has done an excellent PI Weather station project
guide based on this Template, you could see here.

Regards,
Jacques
Please, consider supporting this site 

Offline craynerd

  • New member
  • *
  • Posts: 4
    • Raynerd
Re: Basic - data to self hosted website
« Reply #5 on: March 01, 2014, 08:59:37 AM »
I'm still not having any luck and I was working on this until midnight and then all morning  :P

Yes, I have the images and data folders inside the var/www folder, basically copied from your template.

I noticed that you said it stopped on forcast_icon.txt and apparently it is looking for this file in /home/pi/weather/text.  Interestingly, this file is called forcast_icon_9am.txt in there, despite being called forcast_icon.txt in the weather.ini.    I have now renamed the file to match and removed _9am  and there is no longer an error, yet it still do not see any data or content! I have searched the forums for "raspberry" and this file is mentioned twice so clearly there is some issue here but I don't know why it still doesn't work!!

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Basic - data to self hosted website
« Reply #6 on: March 01, 2014, 11:37:02 AM »
Hi Chris,

Check your weather.ini file agains original file from pywws.
Template need to be updated, but my pywws installation is dead! :P

Regards,
Jacques
Please, consider supporting this site 

Offline martyp

  • New member
  • *
  • Posts: 4
    • Marty's Weather Station
Re: Basic - data to self hosted website
« Reply #7 on: March 08, 2014, 08:18:46 AM »
This sounds like exactly the same problem I'm having. If anyone has an answer to it and if they could post a tutorial possibly to get this working specifically on a Pi running as a web server that would be awesome. I'd love to get the template working to show min/max temp readings etc.

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Basic - data to self hosted website
« Reply #8 on: March 08, 2014, 09:15:24 AM »
Hi Marty,

It seems that your data folder contain no files.
Verify that you follow READ.ME file.

Regards,
Jacques
Please, consider supporting this site