diff --git a/PIT.sh b/PIT.sh index 117473d..1ac5855 100755 --- a/PIT.sh +++ b/PIT.sh @@ -89,6 +89,7 @@ usage() { [-m ] [-k key based (sFTP) authentication if specified] [-u uploads images if specified, requires -i to be specified] + [-v validate login credentials for sFTP transfers] [-r retrieves login key if specified, requires -i to be specified] [-x purges all previous settings and keys if specified, requires -i to be specified] [-h calls this menu if specified] @@ -97,8 +98,33 @@ usage() { exit 0 } +validate() { + echo " Trying to validate sFTP login" + echo "" + + # check if IP is provided + if [ -z ${ip} ]; then + echo " No IP address provided" + error_upload + fi + + # create command + command=" + sh /mnt/cfg1/scripts/phenocam_validate.sh + " + + # execute command + ssh admin@${ip} ${command} 2>/dev/null + + echo "" + echo "[if no warnings are given your logins were successful]" + echo "" + echo "====================================================================" + exit 0 + } + upload() { - echo " Try to upload image to the server" + echo " Trying to upload image to the server" echo "" # check if IP is provided @@ -113,11 +139,8 @@ upload() { " # execute command - ssh admin@${ip} ${command} || error_upload 2>/dev/null + ssh admin@${ip} ${command} || error_upload 2> /dev/null - echo " -----------------------------------------------------------" - echo "" - echo " Done, successfully uploaded images" echo "" echo "====================================================================" exit 0 @@ -210,7 +233,7 @@ purge() { #---- parse arguments (and/or execute subroutine calls) ---- # grab arguments -while getopts "hi:p:n:o:s:e:m:kurx" option; +while getopts "hi:p:n:o:s:e:m:kuvrx" option; do case "${option}" in @@ -223,6 +246,7 @@ do m) int=${OPTARG} ;; k) key=TRUE ;; u) upload ;; + v) validate ;; r) retrieve ;; x) purge ;; h | *) usage; exit 0 ;; @@ -728,9 +752,9 @@ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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odG1sPgoAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA diff --git a/README.md b/README.md index efbfc58..7477394 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,12 @@ To retrieve the current login key use when using sFTP use: > [!note] > The above command will put a `phenocam_key.pub` file in your current directory. -> To complete the sFTP install you will have to email this (public) key file to phenocam@nau.edu. + +To complete the sFTP install you will have to email this (public) key file to phenocam@nau.edu. If you received confirmation you can validate if the login procedure works with: + +```bash +./PIT.sh -i 192.168.1.xxx -v +``` #### 4.2 Uploading a test image manually @@ -149,3 +154,23 @@ Only use this option as a last resort (or when recycling the camera for a new si If a micro-SD card is inserted in the back of the camera all images will be backed up by default to this card in the `phenocam_backup` directory. The card size is limited to 32GB (standard camera/cellphone cards should work). Cards are hot swappable, meaning you can remove a card without further action and replace it with a different one. This allows easy data retrieval in the field (using two cards in rotation). If you are on an unstable internet connection it might be beneficial to use SD cards as backups, so data can be backfilled from storage media. +## FAQ + +1. My images don't upload, what can I do? + + - check the connection of the camera to the server (can you reach phenocam.nau.edu from your site) + - validate if you have login access when using sFTP (see above) + +2. I want to change the camera name, can I do this? + + - the configuration script can be rerun and will overwrite old settings + - note that to establish a true new identity tied to the camera in sFTP mode you will need to purge the old key (see above) + +3. I want to do a fresh install, what are my options? + + - do a factory reset by pressing the recessed button on the back of the camera with a small metal rod + - a soft reset can be done by purging the camera (see above) + +4. I want to run a custom setup, where do I find information? + + - the software only supports PhenoCam US and ICOS phenocams, for custom setups contanct BlueGreen Labs.