Author Topic: pywws template need help  (Read 2947 times)

Offline tjreale

  • New member
  • *
  • Posts: 2
    • Weather
pywws template need help
« on: July 17, 2012, 04:47:53 PM »
I've been able to pull data through pywws from my weather station however I am completely at a loss for how to feed the resulting data files into the pywws template site. Assistance would be greatly appreciated.

Thanks!

Offline admin

  • Your Weather master
  • Administrator
  • Full Member
  • *****
  • Posts: 50
Re: pywws template need help
« Reply #1 on: July 17, 2012, 06:38:00 PM »
Hi Tj,
 
You have to check README file to see how to do it!
 
 -= Installation =-
1-Modify index.php to customize it for your installation
2-Copy files and <folders> to your website:
  - index.php
  - styles.css
  - <data>
  - <images>
3-Copy these <folders> to your pywws folder:
  - <plot>
  - <text>
4-Configure your pywws weather.ini file as
indicated in weather.ini text file.
That's it! Enjoy your new website!
 
You could see in example file weather.ini, what to change to suit your
installation, check path section to specifiy what is your path to text and plot folders.
Also section ftp to fit these options to your account on your provider: ftp adress, user, password.
 
If you need more infos , don't hesitate!   ;D
 
Regards,
Jacques

Offline tjreale

  • New member
  • *
  • Posts: 2
    • Weather
Re: pywws template need help
« Reply #2 on: July 17, 2012, 09:00:11 PM »
Well... currently I'm getting the following error:

21:49:28:pywws.Upload:Copying to local directory
Traceback (most recent call last):
  File "Hourly.py", line 90, in <module>
    sys.exit(main())
  File "Hourly.py", line 87, in main
    return Hourly(args[0])
  File "Hourly.py", line 59, in Hourly
    params, calib_data, hourly_data, daily_data, monthly_data
  File "/home/wmm/Desktop/weather_files/pywws-12.07_r537/pywws/Tasks.py", line 164, in do_tasks
    if not Upload.Upload(self.params, uploads):
  File "/home/wmm/Desktop/weather_files/pywws-12.07_r537/pywws/Upload.py", line 34, in Upload
    shutil.copy2(file, directory)
  File "/usr/lib/python2.7/shutil.py", line 128, in copy2
    copyfile(src, dst)
  File "/usr/lib/python2.7/shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '~/weather_data/rose_1hr.png'

I'm going to guess I may be setting my work value in the ini wrong, what should this be set to?

Also I'm hosting the site locally in my /var/www/ directory so if you can point me a tips in regards to that it would be appreciated, but I think I've got the ftp setup to upload locally
Thanks!

Offline admin

  • Your Weather master
  • Administrator
  • Full Member
  • *****
  • Posts: 50
Re: pywws template need help
« Reply #3 on: July 17, 2012, 09:42:38 PM »
Hi Tj,


I'm sorry... for this one I coundn't help you!
I'm at base a Windows user who succed in installing pywws on a router.


Apparently, pywws is not able to find folder text


I suggest to joinJim at pywws forum.


Regards,
Jacques