Skip to content

Commit

Permalink
Update travel times for all data so far.
Browse files Browse the repository at this point in the history
  • Loading branch information
scrudden committed Aug 17, 2017
1 parent e8327fb commit 1127f30
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
8 changes: 4 additions & 4 deletions bin/process_avl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ find /usr/local/transitime/config/ -type f -exec sed -i s#"GTFSRTVEHICLEPOSITION
# This will process AVL using the set of transitime config files in the test directory.
#find /usr/local/transitime/config/test/ -type f | sort -n | xargs -I {} java -Xmx2048m -Xss12m -Duser.timezone=EST -Dtransitime.configFiles={} -Dtransitime.core.agencyId=$AGENCYID -Dtransitime.logging.dir=/usr/local/transitime/logs/ -jar $TRANSITIMECORE/transitime/target/Core.jar -configRev 0 \;
java -Xmx2048m -Xss12m -Duser.timezone=EST -Dtransitime.configFiles=/usr/local/transitime/config/test/transiTimeConfig1.xml -Dtransitime.core.agencyId=$AGENCYID -Dtransitime.logging.dir=/usr/local/transitime/logs/ -jar $TRANSITIMECORE/transitime/target/Core.jar -configRev 0
java -Xmx2048m -Xss12m -Duser.timezone=EST -Dtransitime.configFiles=/usr/local/transitime/config/test/transiTimeConfig1.xml -Dtransitime.core.agencyId=$AGENCYID -Dtransitime.logging.dir=/usr/local/transitime/logs/ -jar $TRANSITIMECORE/transitime/target/UpdateTravelTimes.jar 07-10-2017
java -Xmx2048m -Xss12m -Duser.timezone=EST -Dtransitime.configFiles=/usr/local/transitime/config/test/transiTimeConfig1.xml -Dtransitime.core.agencyId=$AGENCYID -Dtransitime.logging.dir=/usr/local/transitime/logs/ -jar $TRANSITIMECORE/transitime/target/UpdateTravelTimes.jar 07-10-2017 07-10-2017

java -Xmx2048m -Xss12m -Duser.timezone=EST -Dtransitime.configFiles=/usr/local/transitime/config/test/transiTimeConfig2.xml -Dtransitime.core.agencyId=$AGENCYID -Dtransitime.logging.dir=/usr/local/transitime/logs/ -jar $TRANSITIMECORE/transitime/target/Core.jar -configRev 0
java -Xmx2048m -Xss12m -Duser.timezone=EST -Dtransitime.configFiles=/usr/local/transitime/config/test/transiTimeConfig1.xml -Dtransitime.core.agencyId=$AGENCYID -Dtransitime.logging.dir=/usr/local/transitime/logs/ -jar $TRANSITIMECORE/transitime/target/UpdateTravelTimes.jar 07-11-2017
java -Xmx2048m -Xss12m -Duser.timezone=EST -Dtransitime.configFiles=/usr/local/transitime/config/test/transiTimeConfig1.xml -Dtransitime.core.agencyId=$AGENCYID -Dtransitime.logging.dir=/usr/local/transitime/logs/ -jar $TRANSITIMECORE/transitime/target/UpdateTravelTimes.jar 07-10-2017 07-11-2017

java -Xmx2048m -Xss12m -Duser.timezone=EST -Dtransitime.configFiles=/usr/local/transitime/config/test/transiTimeConfig3.xml -Dtransitime.core.agencyId=$AGENCYID -Dtransitime.logging.dir=/usr/local/transitime/logs/ -jar $TRANSITIMECORE/transitime/target/Core.jar -configRev 0
java -Xmx2048m -Xss12m -Duser.timezone=EST -Dtransitime.configFiles=/usr/local/transitime/config/test/transiTimeConfig1.xml -Dtransitime.core.agencyId=$AGENCYID -Dtransitime.logging.dir=/usr/local/transitime/logs/ -jar $TRANSITIMECORE/transitime/target/UpdateTravelTimes.jar 07-12-2017
java -Xmx2048m -Xss12m -Duser.timezone=EST -Dtransitime.configFiles=/usr/local/transitime/config/test/transiTimeConfig1.xml -Dtransitime.core.agencyId=$AGENCYID -Dtransitime.logging.dir=/usr/local/transitime/logs/ -jar $TRANSITIMECORE/transitime/target/UpdateTravelTimes.jar 07-10-2017 07-12-2017

java -Xmx2048m -Xss12m -Duser.timezone=EST -Dtransitime.configFiles=/usr/local/transitime/config/test/transiTimeConfig4.xml -Dtransitime.core.agencyId=$AGENCYID -Dtransitime.logging.dir=/usr/local/transitime/logs/ -jar $TRANSITIMECORE/transitime/target/Core.jar -configRev 0
java -Xmx2048m -Xss12m -Duser.timezone=EST -Dtransitime.configFiles=/usr/local/transitime/config/test/transiTimeConfig1.xml -Dtransitime.core.agencyId=$AGENCYID -Dtransitime.logging.dir=/usr/local/transitime/logs/ -jar $TRANSITIMECORE/transitime/target/UpdateTravelTimes.jar 07-13-2017
java -Xmx2048m -Xss12m -Duser.timezone=EST -Dtransitime.configFiles=/usr/local/transitime/config/test/transiTimeConfig1.xml -Dtransitime.core.agencyId=$AGENCYID -Dtransitime.logging.dir=/usr/local/transitime/logs/ -jar $TRANSITIMECORE/transitime/target/UpdateTravelTimes.jar 07-10-2017 07-13-2017
2 changes: 1 addition & 1 deletion config/test/transiTimeConfig1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</autoBlockAssigner>
<core>
<!--<predictionGeneratorClass>org.transitime.core.predictiongenerator.kalman.KalmanPredictionGeneratorImpl</predictionGeneratorClass>-->
<predictionGeneratorClass>org.transitime.core.PredictionGeneratorDefaultImpl</predictionGeneratorClass>
<predictionGeneratorClass>org.transitime.core.PredictionGeneratorDefaultImpl</predictionGeneratorClass>
<holdingTimeGeneratorClass></holdingTimeGeneratorClass>
<maxDistanceFromSegment>100</maxDistanceFromSegment>
<storeTravelTimeStopPathPredictions>true</storeTravelTimeStopPathPredictions>
Expand Down
2 changes: 1 addition & 1 deletion config/test/transiTimeConfig2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</autoBlockAssigner>
<core>
<!--<predictionGeneratorClass>org.transitime.core.predictiongenerator.kalman.KalmanPredictionGeneratorImpl</predictionGeneratorClass>-->
<predictionGeneratorClass>org.transitime.core.PredictionGeneratorDefaultImpl</predictionGeneratorClass>
<predictionGeneratorClass>org.transitime.core.PredictionGeneratorDefaultImpl</predictionGeneratorClass>
<holdingTimeGeneratorClass></holdingTimeGeneratorClass>
<maxDistanceFromSegment>100</maxDistanceFromSegment>
<storeTravelTimeStopPathPredictions>true</storeTravelTimeStopPathPredictions>
Expand Down
2 changes: 1 addition & 1 deletion config/test/transiTimeConfig3.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</autoBlockAssigner>
<core>
<!--<predictionGeneratorClass>org.transitime.core.predictiongenerator.kalman.KalmanPredictionGeneratorImpl</predictionGeneratorClass>-->
<predictionGeneratorClass>org.transitime.core.PredictionGeneratorDefaultImpl</predictionGeneratorClass>
<predictionGeneratorClass>org.transitime.core.PredictionGeneratorDefaultImpl</predictionGeneratorClass>
<holdingTimeGeneratorClass></holdingTimeGeneratorClass>
<maxDistanceFromSegment>100</maxDistanceFromSegment>
<storeTravelTimeStopPathPredictions>true</storeTravelTimeStopPathPredictions>
Expand Down
2 changes: 1 addition & 1 deletion config/test/transiTimeConfig4.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</autoBlockAssigner>
<core>
<!--<predictionGeneratorClass>org.transitime.core.predictiongenerator.kalman.KalmanPredictionGeneratorImpl</predictionGeneratorClass>-->
<predictionGeneratorClass>org.transitime.core.PredictionGeneratorDefaultImpl</predictionGeneratorClass>
<predictionGeneratorClass>org.transitime.core.PredictionGeneratorDefaultImpl</predictionGeneratorClass>
<holdingTimeGeneratorClass></holdingTimeGeneratorClass>
<maxDistanceFromSegment>100</maxDistanceFromSegment>
<storeTravelTimeStopPathPredictions>true</storeTravelTimeStopPathPredictions>
Expand Down
2 changes: 1 addition & 1 deletion config/transiTimeConfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<allowableLateSeconds>600</allowableLateSeconds>
</autoBlockAssigner>
<core>
<predictionGeneratorClass>org.transitime.core.PredictionGeneratorDefaultImpl</predictionGeneratorClass>
<predictionGeneratorClass>org.transitime.core.PredictionGeneratorDefaultImpl</predictionGeneratorClass>
<maxDistanceFromSegment>30000</maxDistanceFromSegment>
<holdingTimeGeneratorClass></holdingTimeGeneratorClass>
</core>
Expand Down
8 changes: 5 additions & 3 deletions go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ export AGENCYID=1
export GTFS_URL="http://gohart.org/google/google_transit.zip"
export GTFSRTVEHICLEPOSITIONS="http://realtime.prod.obahart.org:8088/vehicle-positions"

docker stop transitime-db
#docker stop transitime-db
docker stop transitime-server-instance

docker rm transitime-db
#docker rm transitime-db
docker rm transitime-server-instance

docker rmi transitime-server

docker build --no-cache -t transitime-server .

docker run --name transitime-db -p 5432:5432 -e POSTGRES_PASSWORD=$PGPASSWORD -d postgres
#docker run --name transitime-db -p 5432:5432 -e POSTGRES_PASSWORD=$PGPASSWORD -d postgres

docker run --name transitime-server-instance --rm --link transitime-db:postgres -e AGENCYID=$AGENCYID -e PGPASSWORD=$PGPASSWORD -e AGENCYNAME=$AGENCYNAME transitime-server ./check_db_up.sh

Expand Down

0 comments on commit 1127f30

Please sign in to comment.