#### WIND MESS ANLAGE BY NETWEBSYSTEMS® 
##### BASIC INSTRUCTIONS FOR INSTALLATION FOR BEAGLEBONE

###### 1. PREPARE BEAGLEBONE:
*    1.1 INSTALL O.S.
*    1.2 CONNECT THROUGH SSH (192.168.7.2)\
       - SSH password: Netweb4ever!
*    1.3 CONNECT TO WIFI
*    1.4 USE IFCONFIG TO CHECK IP AND USE THIS IP TO ACCESS REMOTELY
*    1.5 INSTALL 'minimalmodbus' and 'paho-mqtt' libraries WITH -H\
        sudo -H pip3 install minimalmodbus paho-mqtt
###### 2. PREPARE THE SENSOR:
*    2.1 OPEN THIES DEVICE UTILITY
*    2.2 LOG AS ADMIN KY04711, CS1
*    2.3 CHANGE DUPLEX MODUS AND WIRING
*    2.4 SET TIME ZONE (TZ26) AND DAILY TIME UPDATE(RT03)
*    2.5 CHANGE TO MODBUS RTU INTERPRETER IN THE THIES DEVICE UTILITY
*    2.6 CONNECT THE SENSOR TO THE BEAGLEBONE (BR & YE = A, GR & WH = B, GRAY = GND)
###### 3. INSTALL THE SOFTWARE IN THE BEAGLEBONE
*    3.1 CLONE THE GIT REPOSITORY\
       $ git clone http://git.strawhat-solutions.de/NetWEB/Windmessanlage.git 
*    3.2 CREATE THE WORKING DIRECTORY AND COPY FILES:
*    3.3 EDIT THE CONFIG.INI FILE

###### 4. SET SERVICE AUTO-START
*    4.1 COPY SERVICE FILE INTO BEAGLE BONE SERVICE DIRECTORY\
       $ sudo cp /var/lib/cloud9/Windmessanlage/Software/Sensor/wma.service /lib/systemd/ 
*    4.2 CREATE A SYMLINK in the /etc/systemd/system/ directory \
       $ sudo ln -s /lib/systemd/wma.service /etc/systemd/system/wma.service 
*    4.3 RELOAD DAEMON, ENABLE AND START THE SERVICE

###### 2. PREPARE DISPLAY:

* 1.1 POWER UP DISPLAY\
     Connect the +24 and GND Wires to power up the Display
* 1.2 INSTALL 'pygame' and 'paho-mqtt' libraries WITH -H
* 1.3 CREATE CHANGE TO THE WORKING DIRECTORY\
    $ sudo mkdir /home/pi/WMA/\
    $ cd /home/pi/WMA/
* 2.2 CLONE THE GIT REPOSITORY
* 2.3 EDIT THE CONFIG.INI FILE FOR THE APPLICATION\
    $ sudo nano /home/pi/WMA/Windmessanlage/Display/config.ini 
    
###### 3. SET SERVICE AUTO-START

* 3.1 COPY SERVICE FILE INTO BEAGLE BONE SERVICE DIRECTORY\
    $ sudo cp /home/pi/WMA/Windmessanlage/Display/display.service /etc/systemd/system/display.service
* 3.2 RELOAD DAEMON, ENABLE AND START THE SERVICE\