Skip to content
/ SguWeewx Public

Highly bespoke WeeWx skin to create images & statistics for use by the Pilot's Wiki, which is implemented in DokuWiki

License

Notifications You must be signed in to change notification settings

swfrx/SguWeewx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SguWeewx

Bespoke skin to produce files & images from WeeWx to go into the SGU Pilot's Wiki, which is created using DokuWiki

The aim of this skin is to make it as simple as possible to install WeeWx and have it produce the required output in a structure that can be copied using FTP to the Pilot's Wiki server.

The file & image names, and paths, are all specific to the SGC Weather Station and SGC Weather Statistics pages.

The skin can be downloaded from https://github.com/swfrx/SguWeewx/releases and is installed in the usual way with 'wee_extension'.

  • I recomend that Weewx is installed with setup.py into the default location of /home/weewx.
  • Turn off the default SeasonsReport by in the [[SeasonsReport]] of weewx.conf, changing enable = true to enable = false.
  • The DokuWiki server needs a user for FTP that the WeeWx platform can connect to, and with a home directory that is the DokuWiki data directory. That directory contains the media and pages subdirectories.
  • The FTP or RSYNC section needs configuring with the correct server, path, user and password as per the DokuWiki server. The home directory on the remote server should be where the dokuwiki installation is.
  • By default $HTML_ROOT is /home/weewx/public_html/sguweewx, and this skin places it's output in $HTML_ROOT/dokuwiki from where new and altered content is copied to the main DokuWiki server.
  • No WeeWx configuration beyond that mentioned above should be required.
  • The correct DokuWiki namespace for the NOAA files in DokuWiki is weather:noaa:

This skin produces the following pages and images:

  • $HTML_ROOT/dokuwiki/media/weather/daybarometer-sgu-big.png
  • $HTML_ROOT/dokuwiki/media/weather/daybarometer-sgu.png
  • $HTML_ROOT/dokuwiki/media/weather/dayrain-sgu-big.png
  • $HTML_ROOT/dokuwiki/media/weather/dayrain-sgu.png
  • $HTML_ROOT/dokuwiki/media/weather/dayrose.png
  • $HTML_ROOT/dokuwiki/media/weather/dayspiral.png
  • $HTML_ROOT/dokuwiki/media/weather/daytempdew-sgu-big.png
  • $HTML_ROOT/dokuwiki/media/weather/daytempdew-sgu.png
  • $HTML_ROOT/dokuwiki/media/weather/daywind-sgu-big.png
  • $HTML_ROOT/dokuwiki/media/weather/daywind-sgu.png
  • $HTML_ROOT/dokuwiki/pages/weather/noaa/noaa-yyyy-mm.txt - one file per month per year
  • $HTML_ROOT/dokuwiki/pages/weather/noaa/noaa-yyyy.txt - one file per year
  • $HTML_ROOT/dokuwiki/pages/weather/weather_stats_incl.txt
  • $HTML_ROOT/dokuwiki/sguweewx.html

sguweewx.html is a file that can be used to view the images and statistics in a test situation. It is not accessed on the live system.

weather_stats_incl.txt is a file in DokuWiki table format. It's intended that it is included in a DokuWiki page to display the most recently generated weather statistics - see Weather Statistics.

The fonts used in the images - OpenSans-Bold.ttf and OpenSans-Regular.ttf - are included in the skin.

The WindRose files are generated by the PolarWindPlot skin which has been included in this sking. Permission was kindly granted by the author, who also gave a lot of help along the way.

About

Highly bespoke WeeWx skin to create images & statistics for use by the Pilot's Wiki, which is implemented in DokuWiki

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages