Skip to content

Commit

Permalink
URBIBBNA-42
Browse files Browse the repository at this point in the history
Korrekturen
  • Loading branch information
epam-vkerkhoff committed Jan 25, 2024
1 parent fc47c46 commit decf2c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions publish-barshare-gbfs/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ dir="$(mktemp -d -t barshare-gbfs.XXXXXX)"

set -x

mc cp -q index.html barshare-logo.png bbnavi/barshare/
mcli cp -q index.html barshare-logo.png bbnavi/barshare/

while true; do
# We sleep first so that, if the GBFS generation fails contantly, we don't DOS the Moqo API.
sleep "$PUBLISH_INTERVAL"

python moqoToGBFS.py \
python ../moqoToGBFS.py \
--config BARshare --serviceUrl 'https://portal.moqo.de/api_aggregator/' \
--baseUrl 'https://opendata.bbnavi.de/barshare' \
--outputDir "$dir" \
--token "$MOQO_ACCESS_TOKEN"

tree -sh "$dir"

mc cp -q -r $dir/* bbnavi/barshare/
done
mcli cp -q -r $dir/* bbnavi/barshare/
done

0 comments on commit decf2c7

Please sign in to comment.