The WindBearer application is a small extension to add a GUI that simplifies reading current sensor measurements for monitoring purposes. The weather station can be run and maintained without this app and in the case that you’re planning to only access the Raspi through SSH the app is redundant, so you can skip this section. The most convenient way of starting the app is creating a Desktop application and starting the app every time the Raspi is booted. To create a Desktop application, head to the Desktop
cd /home/pi/Desktop
and create and open a new file
sudo nano WindBearer.desktop
in which you paste the following contents
[Desktop Entry]
Name=WindBearer App
Comment=Display parameters
Exec=/home/pi/.pyenv/versions/windbearer/bin/python -m wind_bearer_software.wb_app_V2
Path=/home/pi/wind-bearer-software/wind_bearer_software
Icon=/home/pi/wind-bearer-software/wind_bearer_software/misc/WindBearer_logo.jpg
Terminal=false
Type=Application
Categories=Utility;
Note that you might have to adapt the path to the software folder in the lines containing Path= and Icon= as well as the path to the python executable of your virtual environment in the line containing Exec=, depending on how strictly you followed this setup guide.
Now that the .desktop file was created, make it executable
sudo chmod -x WindBearer.desktop
To autostart the app every time the Raspi is booted, create an autostart directory if it is not already existing
mkdir -p /home/pi/.config/autostart
and copy & paste the desktop application into it
cp /home/pi/Desktop/WindBearer.desktop /home/pi/.config/autostart/
