Browse Source

README 'quick start' update

Right now, testing with Avail GTFS feed and 'wget' directly
to protobuf file that is interpreted.
I think occasionally the 'wget' half finishes when trying to load
the file, leading to corrupted data.

Instead, 'wget' to temporary file, then 'mv' over in the hopes
the move is atomic.
abram 3 years ago
parent
commit
b92fc796d3
1 changed files with 6 additions and 1 deletions
  1. 6 1
      experimental/README.md

+ 6 - 1
experimental/README.md

@@ -19,7 +19,12 @@ To get a rudimentary real time bus map, execute the following:
 
 ```
 cd ../html/
-while [ true ] ; do wget -q 'https://realtimetcatbus.availtec.com/InfoPoint/GTFS-Realtime.ashx?&Type=VehiclePosition&serverid=0' -O VehiclePosition.pb ; echo '...' ; sleep 10 ; done
+while [ true ] ; do
+  wget -q 'https://realtimetcatbus.availtec.com/InfoPoint/GTFS-Realtime.ashx?&Type=VehiclePosition&serverid=0' -O VehiclePosition.pb.tmp ;
+  mv VehiclePosition.pb.tmp  VehiclePosition.pb  ;
+  echo '...' ;
+  sleep 10 ;
+done
 ```
 
 ```