From ba68421ce014422bdc930122bf6072affa3e5fc6 Mon Sep 17 00:00:00 2001 From: markyharris <39144395+markyharris@users.noreply.github.com> Date: Fri, 25 Mar 2022 18:27:58 -0700 Subject: [PATCH] Update README.md --- README.md | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index a5a8c1b..ad80dc7 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # E-Paper METAR Display This software will display various layouts of METAR data on a 7 by 5 inch 3-color E-Paper. Specifically the 7.5inch e-Paper HAT (B) by Waveshare. See https://www.waveshare.com/7.5inch-e-paper-hat-b.htm for more information and pricing from Waveshare. -
+ -This software is very specific to the size and 3-color nature of this display. However, the layouts are in a separate module and can be modified to fit other sizes of display if the desire is there. Theoretically a 2 color 7x5 could be used as well. See script 'metar_main.py' for comments on this. +This software is written specifically to the size and 3-color nature of this display. However, the layouts are in a separate module and can be modified to fit other sizes of display if the desire is there. Theoretically a 2 color 7x5 could be used as well. See script 'metar_main.py' for comments on this. For specific info on using e-paper display with RPi, see;
+https://desertbot.io/blog/headless-raspberry-pi-4-ssh-wifi-setup provides steps to follow to setup WiFi on a headless system if Berrylan is not used.
WRITE IMAGE TO SD CARD:
Using Balena Etcher, write Image to Micro SD Card.
@@ -32,7 +33,7 @@ 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.
+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. See https://www.raspberrypi.com/documentation/computers/configuration.html for info on using 'raspi-config'
Note: There are a number of SSH Clients. A few of the more popular are;
cd /usr/share/fonts/truetype/
sudo mkdir noto
@@ -116,31 +117,36 @@ The script was written to except up to 4 cmd line arguments;
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 entering the Airport ID and the others will be filled in using the default settings in metar_settings.py
The display will show the Flagstaff Airport using Layout 7 for 60 seconds before updating using airport info.
+They must be in the order shown, but not all of them are required. For instance you can enter only the Airport ID and the default settings will be used for the last 3 args
+
For example enter;
sudo python3 metar_main.py kflg 7 60 0
-Assuming this is works properly, then using the webapp.py and metar.html scripts below should work just fine.
+Assuming this is works properly, then using the webapp.py and metar.html scripts below will work just fine.
TEST WEBAPP.PY:
From the metar directory 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.
sudo python3 webapp.py
+This will run a Flask module that will start 'metar_main.py' using the 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)'
+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.
+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 control of the E-Paper display.
+
+Note: The html file must be run from a computer, tablet or phone that is connected to the same WiFi network using the URL provided when WiFi was originally setup. The URL must have ':5000' appended to the IP Address, ie. http://192.168.86.71:5000/ (Your IP will be different, this is just an example).
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;
+
Before the 'Exit' statement add;
cd ~
cd /etc
sudo nano rc.local
@@ -149,12 +155,11 @@ Then to save and reboot;
sudo python3 /home/pi/metar/webapp.py &
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.
+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 ~