This is a guide to installing weeWX on macOS.
Download the source archive weewx-X.Y.Z.tar.gz from weewx.com/downloads.
Ensure that Python2 is installed. Python 2.6 or 2.7 will work, but Python 3 will not.
Install the required Python packages using easy_install:
sudo easy_install pysqlite sudo easy_install configobj sudo easy_install Cheetah sudo easy_install PIL sudo easy_install pyserial sudo easy_install pyusb sudo easy_install pyephem
Depending on the macOS and Python versions, you might have to use Pillow instead of PIL.
If the PIL or Cheetah installation fails, you might have to install xcode:
then try the easy_install again.
Expand the source archive:
tar xvfz weewx-X.Y.Z.tar.gz
Modify home in setup.cfg to set the installation location to /Users/Shared/weewx
perl -pi -e 's%^home.*%home = /Users/Shared/weewx%' setup.cfg
python setup.py install
The installer will prompt for a location, latitude/longitude, altitude, station type, and parameters specific to the station.
Run the main program directly:
cd /Users/Shared/weewx ./bin/weewxd weewx.conf
Or as a daemon automatically when the computer starts:
sudo cp util/launchd/com.weewx.weewxd.plist /Library/LaunchDaemons sudo launchctl load /Library/LaunchDaemons/com.weewx.weewxd.plist
To make sure things are running properly, look in the system log for messages from weeWX. Run the Console application and select All Messages.
After about 5 minutes, open the station web page in a web browser. You should see your station information and data.
If your hardware supports hardware archiving, then how long you wait will depend on the archive interval set in your hardware.
To enable uploads such as Weather Underground or to customize reports, modify the configuration file /Users/Shared/weewx/weewx.conf. See the User Guide and Customization Guide for details.
WeeWX must be restarted for configuration file changes to take effect.
To start/stop weeWX:
sudo launchctl load /Library/LaunchDaemons/com.weewx.weewxd.plist sudo launchctl unload /Library/LaunchDaemons/com.weewx.weewxd.plist
To uninstall, simply delete the directory /Users/Shared/weewx. This will delete weeWX, configuration files, and data.
rm -r /Users/Shared/weewx sudo rm /Library/LaunchDaemons/com.weewx.weewxd.plist
The instructions above will result in the following layout:
|skins and templates:||/Users/Shared/weewx/skins/|
|generated web pages and images:||/Users/Shared/weewx/public_html/|
© Copyright Tom Keffer