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.
Make sure that pip has been installed on your system. If not, it may be as simple as:
sudo easy_install pip
Now install the required Python packages using pip.
sudo pip install pysqlite sudo pip install configobj sudo pip install Cheetah sudo pip install PIL sudo pip install pyserial sudo pip install pyusb sudo pip 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 pip 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 /Users/Shared/weewx/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