diff --git a/README.md b/README.md index 68b878d..e23929f 100644 --- a/README.md +++ b/README.md @@ -31,26 +31,26 @@ Open Berrylan app on phone and select for 'BT WLAN setup' or 'BT WLAN' or 'raspb LOGIN USING SSH CLIENT:
-Open a SSH Client and enter the 'pi@IP address' to start the login process, i.e. 'pi@192.163.86.71'
-Login using username 'pi' and password 'raspberry'. If a normal image was used, then SSH must be enabled before these clients will work. Berrylan automatically enables SSH. Otherwise use raspi-config to do so.
+Open a SSH Client and enter the 'pi@IP address' to start the login process, i.e. 'pi@192.163.86.71'
+Login using username 'pi' and password 'raspberry'. If a normal image was used, then SSH must be enabled before these clients will work. Berrylan automatically enables SSH. Otherwise use raspi-config to do so.

Note: There are a number of SSH Clients. A few of the more popular are;

-SETUP SPI INTERFACE:
+SETUP SPI INTERFACE:
At the cmd line prompt; 'pi@raspberrypi:~ $' enter the following;

   sudo raspi-config
   3 - Interface Options
-  I4 SPI Enable this? Yes 
+ I4 SPI Enable this? Yes
Note: You can change the hostname and password if desired at this point, but its optional
Answer 'Yes' when you exit raspi-config to Reboot the RPi
@@ -111,60 +111,61 @@ Now edit the 'metar_settings.py' file as you wish. These values are defaults tha TEST CMD LINE CONTROL:
The script was written to except up to 4 cmd line arguments;
+
1st argument - airport identifier - must be 4 character ICAO format
2nd argument - layout number - will accept -2, -1, and 0-7
3rd argument - update interval in seconds - 60 = 1 minute, 3600 = 1 hour
- 4th argument - use remarks - 1 = display metar remarks key info, 0 = display airport information
-They must be in the order shown, but not all of them are required. For instance only the Airport ID can be used, and the others will be filled in using the default settings in metar_settings.py
-For example enter;
+ 4th argument - use remarks - 1 = display metar remarks key info, 0 = display airport information
+They must be in the order shown, but not all of them are required. For instance only entering the Airport ID and the others will be filled in using the default settings in metar_settings.py
+For example enter;

   sudo python3 metar_main.py kflg 7 60 0
-The display will show the Flagstaff Airport using Layout 7 for 60 seconds before updating using airport info.
-Assuming this is works properly, then using the webapp.py and metar.html scripts below should work just fine.
- -TEST WEBAPP.PY:
-From the metar directory enter;
+The display will show the Flagstaff Airport using Layout 7 for 60 seconds before updating using airport info.
+Assuming this is works properly, then using the webapp.py and metar.html scripts below should work just fine.
+
+TEST WEBAPP.PY:
+From the metar directory enter;

   sudo python3 webapp.py
-This will run a Flask module that will start metar_main.py in last save configuration. Flask sets up a web server so we can also run an html file to control the display from any computer, tablet or phone that is on the same wifi network.
-If all is good your display should be showing a layout of information.
-Make note that when webapp.py starts, information will be displayed in your SSH client. You will need the URL that it provides. For instance; '* Running on http://192.168.86.71:5000/ (Press CTRL+C to quit)'
- -TEST METAR.HTML:
-Using the URL from the previous step, open a web browser and enter it in the URL. If all is well you will see a web page that allows for easy configuration and change to the display.
- -SETUP RC.LOCAL FOR STARTUP:
-This is optional, but if you would like the display to restart automatically after a shutdown, or accidental power outage then this is a good way to go. Also, the webapp.py must be running for the web interface to work properly.
-Enter;
+This will run a Flask module that will start metar_main.py in last save configuration. Flask sets up a web server so we can also run an html file to control the display from any computer, tablet or phone that is on the same wifi network.
+If all is good your display should be showing a layout of information.
+Make note that when webapp.py starts, information will be displayed in your SSH client. You will need the URL that it provides. For instance; '* Running on http://192.168.86.71:5000/ (Press CTRL+C to quit)'
+
+TEST METAR.HTML:
+Using the URL from the previous step, open a web browser and enter it in the URL. If all is well you will see a web page that allows for easy configuration and change to the display.
+
+SETUP RC.LOCAL FOR STARTUP:
+This is optional, but if you would like the display to restart automatically after a shutdown, or accidental power outage then this is a good way to go. Also, the webapp.py must be running for the web interface to work properly.
+Enter;

   cd ~
   cd /etc
   sudo nano rc.local
-Before the 'Exit' statement add;
+Before the 'Exit' statement add;

   sudo python3 /home/pi/metar/webapp.py &
-Then to save and reboot;
+Then to save and reboot;

   ctrl-x
   y
-  sudo reboot now
-Note: There may be times when you don't want webapp.py to startup automatically, so simply open up rc.local again and comment out the line that was added then resave and reboot.
- -SETUP POWEROFF.SERVICE FOR SHUTDOWN:
-This is optional as well, but its nice to blank the epaper display when the unit is shutdown. A power outage won't blank the screen, but once the power comes back on it will reset the display if you setup rc.local above.
- -Power Off Service installation:
-Copy 'poweroff.service' into /lib/systemd/system;
+ sudo reboot now
+Note: There may be times when you don't want webapp.py to startup automatically, so simply open up rc.local again and comment out the line that was added then resave and reboot.
+
+SETUP POWEROFF.SERVICE FOR SHUTDOWN:
+This is optional as well, but its nice to blank the epaper display when the unit is shutdown. A power outage won't blank the screen, but once the power comes back on it will reset the display if you setup rc.local above.
+
+Power Off Service installation:
+Copy 'poweroff.service' into /lib/systemd/system;

   cd ~
   cd /lib/systemd/system 
   sudo wget https://raw.githubusercontent.com/markyharris/metar/main/poweroff.service
-Enable the service by entering;
+Enable the service by entering;

   sudo systemctl enable poweroff.service
-Copy the python script 'metar_poweroff.py' into /opt/metar_poweroff;
+Copy the python script 'metar_poweroff.py' into /opt/metar_poweroff;

   cd ~  
   cd /opt