This Repositry hosts a GUI-based application of the Weather Research and Forecasting Model (WRF) on a Raspberry Pi (version 3 or higher)
In order to run this application, the container platform, Docker, must be installed. If this OSX is the operating system being used, then the X server application, XQuartz must be installed as well. If you are running the application on PC then you will need VcXsrv Windows X Server
- create container with "docker run -it --rm --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw wefoust/pi-wrf"
- run app with the command "run"
- Open Xlaunch and use these settings:
- page 1) multiple windows, Display number = -1
- page 2) Start no client
- page 3) Clipboard, Primary Selection, Native opengl, Disable Access Control
- page 4) Finish
-
Find Your IP Address
- Type network status in the search bar
- click ethernet (if connected via ethernet)
- click ethernet connected icon
- the IPv4 address is you IP address
-
Run the app
- Open Windows command prompt
- type "docker run -it --rm -e DISPLAY=YourIPaddress:0.0 wefoust/pi-wrf"
- type "run" to run the application
--prerequisite (open X11 security settings and check "Allow connections from network clients")
- type the command "open -a XQuartz"
- type the command "IP=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')"
- type the command "xhost + $IP"
- type "docker run -it --rm -e DISPLAY=$IP:0 wefoust/pi-wrf"
- run the app with the command "run"
This section is for users who have modified the WRF-Source Code. Make your changes to the source code and then run the following commands to build a new Docker Image. Warning: This may take a few hours to complete.
- CD into the top level directory
- Build the image with the command "docker build -f envs/smpar_gui/dockerfile ."