Wview version 4.0.1 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 4.0.1

      View the most recent changes for the wview port at: wview.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for wview.
      The raw portfile for wview 4.0.1 is located here:
      http://wview.darwinports.com/dports/science/wview/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/wview


      The wview Portfile 58230 2009-09-24 16:45:22Z ryandesign macports.org $

      PortSystem 1.0

      Name: wview

      Version: 4.0.1

      Category: science

      Maintainers: mac.com:mbrooksclark

      Homepage: http://wviewweather.com/

      Description: Daemons that download and archive data from supported weather stations

      Long Description: wview is a unix application for weather stations. It archives weather data from the station. Generates full html web sites with graphics. ftp/ssh export capability. MySQL/PostgreSQL archiving. International. Weather alarms. Data feed. RSS feed. Stations currently supported include: Davis Vantage Pro/Pro2, Vaisala WXT-510, La Crosse WS-2300, and a weather station simulator.

      Platform: darwin

      Master Sites: sourceforge:wview

      depends_lib port:gd2 port:radlib

      Checksums: md5 1042769d7c94395bcc3732de7c1c8e87 sha1 949c76e1a2179eedb7104a7b28a526d4e4ffe953 rmd160 86e581f2d9779650d0189b0dbfb068b71b5affc8

      configure.args --exec-prefix=${prefix}

      Variant: env description { Install config files and templates (first time install) } {
      destroot.target-append install-env
      }

      Variant: mysql5 description { Includes mySQL5 database support } {
      configure.args-append --enable-mysql
      configure.ldflags-append -L${prefix}/lib/mysql5/mysql
      depends_lib-append path:bin/mysql_config5:mysql5
      }

      Variant: pgresql description { Includes Postgresql database support } {
      configure.args-append --enable-pgresql
      depends_lib-append port:postgresql83
      }

      Variant: vpro description { Support for Davis Vantage Pro WX Station } {
      configure.args-append --enable-station-vp2
      }

      Variant: wxt510 description { Support for Vaisala WXT-510 WX Station } {
      configure.args-append --enable-station-wxt510
      }

      Variant: ws2300 description { Support for the La Crosse WS-2300 series stations } {
      configure.args-append --enable-station-ws2300
      }

      Variant: wmr918 description { Support for the for the Oregon Scientific WMR918/968 WX Station} {
      configure.args-append --enable-station-wmr918
      }

      Variant: sim description { Support for the Simulated WX Station } {
      configure.args-append --enable-station-sim
      }

      Variant: http description { Enable support for uploading data to Weather Underground } {
      configure.args-append --enable-http
      depends_lib-append port:curl
      }

      destroot.violate_mtree

      post-destroot {
      xinstall -d -o root -g wheel -m 755 ${worksrcpath}/examples/MacOSX/wview ${destroot}/Library/StartupItems/wview

      xinstall -o root -g wheel -m 755 ${worksrcpath}/examples/MacOSX/wview/wview ${destroot}/Library/StartupItems/wview/wview

      xinstall -o root -g wheel -m 644 ${worksrcpath}/examples/MacOSX/wview/StartupParameters.plist ${destroot}/Library/StartupItems/wview/StartupParameters.plist


      file mkdir ${destroot}${prefix}/share/doc/${name}

      file copy ${worksrcpath}/wview-Quick-Start-MacOSX.html ${destroot}${prefix}/share/doc/${name}/wview-Quick-Start-MacOSX.html

      file copy ${worksrcpath}/wview-Quick-Start.html ${destroot}${prefix}/share/doc/${name}/wview-Quick-Start.html

      file copy ${worksrcpath}/wview-User-Manual.html ${destroot}${prefix}/share/doc/${name}/wview-User-Manual.html

      file copy ${worksrcpath}/COPYING ${destroot}${prefix}/share/doc/${name}/COPYING

      file copy ${worksrcpath}/UPGRADE ${destroot}${prefix}/share/doc/${name}/UPGRADE


      }

      post-install {
      ui_msg "\n#####################################"
      ui_msg "Run\n"
      ui_msg "\tsudo ${prefix}/bin/wviewconfig and\n"
      ui_msg "\tsudo ${prefix}/bin/wviewhtmlconfig\n"
      ui_msg "before launching wview\n"
      ui_msg "\n#####################################"
      ui_msg "html templates and config files are stored in ${prefix}/etc/wview/\n"
      ui_msg "archive files are stored in ${prefix}/var/wview/\n"
      ui_msg "\n#####################################"
      ui_msg "Start the daemons with the command:\n"
      ui_msg "\tsudo /sbin/SystemStarter start wview\n"
      ui_msg "\n#####################################"
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/wview
      % sudo port install wview
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching wview
      ---> Verifying checksum for wview
      ---> Extracting wview
      ---> Configuring wview
      ---> Building wview with target all
      ---> Staging wview into destroot
      ---> Installing wview
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using wview with these commands:
      %  man wview
      % apropos wview
      % which wview
      % locate wview

     Where to find more information:

    Darwin Ports



    Lightbox this page.