View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001451 | Garmin Badge Database | Task | public | 2019-01-25 11:36 | 2019-01-29 14:33 |
| Reporter | e7andy | Assigned To | e7andy | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Summary | 0001451: Automate badge downloads | ||||
| Description | Change the script to not rename badges or delete duplicates. Send email if new badges are found. Schedule script to run every 3rd month. | ||||
| Tags | No tags attached. | ||||
|
|
diff . .. | grep "Only in .: .*.svg" |
|
|
Cron job to run every 3 months: sh /home/e7andy.se/public_html/garmin.badges/download/download.garmin.badge.images.sh ------------------------------------------ #!/bin/bash cd /home/e7andy.se/public_html/garmin.badges/download/ url_format="https://connect.garmin.com/web-images/badges/svg/badge_%d.svg" seq_start=0 seq_end=2010 printf "$url_format\\n" `seq $seq_start $seq_end` | wget -q --wait=3 -i- "$@" # Diff diff="$(diff . .. | grep "Only in .: .*.svg")" # Email diff if [ -z "$diff" ] then # Do nothing : else echo "New Garmin Badges found:\n$diff"; fi # Clean up rm *.svg |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2019-01-25 11:36 | e7andy | New Issue | |
| 2019-01-25 11:36 | e7andy | Status | new => assigned |
| 2019-01-25 11:36 | e7andy | Assigned To | => e7andy |
| 2019-01-28 14:49 | e7andy | Note Added: 0000317 | |
| 2019-01-29 14:32 | e7andy | Note Added: 0000318 | |
| 2019-01-29 14:33 | e7andy | Status | assigned => closed |
| 2019-01-29 14:33 | e7andy | Resolution | open => fixed |