소스 검색

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 년 전
부모
커밋
b92fc796d3
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  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
 ```
 
 ```