User Manual

Aimetis People Counter 2.1
Script Aimetis People Counter 2.1
29
@if %9 == "" goto LbUsage
@set VE170_OutCSV=%9
@rem Initialize some more vars
@set VE170_OutLog=PullData.log
@rem Put together the HTTP request URL
@set
VE170_URL="http://%VE170_IP%/local/VE170/rep.csv?StartYear=%VE170_Year
%&EndYear=%VE170_Year%&StartMonth=%VE170_MonthStart%&EndMonth=%
VE170_MonthEnd%&StartDay=%VE170_DayStart%&EndDay=%VE170_DayEnd
%&StartHour=%VE170_HourStart%&EndHour=%VE170_HourEnd%&DetailLevel
=%VE170_DetailLevel%"
@echo.
@echo Download data from the Aimetis Embedded People Counter
@echo Camera IP: %VE170_IP%
@echo Start date-time:
%VE170_Year%-%VE170_MonthStart%-%VE170_DayStart%
%VE170_HourStart%:00
@echo End date-time:
%VE170_Year%-%VE170_MonthEnd%-%VE170_DayEnd%
%VE170_HourEnd%:00
@echo Detail level: %VE170_DetailLevel%
@echo file: %VE170_OutCSV%
@echo.
@rem Send request to the camera
@wget --http-user=%VE170_User% --http-passwd=%VE170_Pass%
--output-document=%VE170_OutCSV% --append-output=%VE170_OutLog%
%VE170_URL%
@rem Check result
@if errorlevel 1 goto LbFailed
@echo.
@echo Download Successful; Counter data downloaded to %VE170_OutCSV%
@echo.
@goto LbEnd
:LbFailed
@echo.
@echo Download FAILED; please check %VE170_OutLog%