Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

short script for getting data out of our people counter system and into libinsight

Notifications You must be signed in to change notification settings

gvsulib/peopleCounterHarvest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

# People Counter Script

This is a very simple phython script to harvest data from our peoplecounter gate counters (https://axper.com/en/resources/counting-technology/) 
and move it into our libinsight account (https://www.springshare.com/libinsight) which is what we use to analyze and prepare reports.  
Both these systems have APIs that can be used to move data back and forth.

Requires a separate authentication file with credentials for the respective APIs.

The script is scheduled to run every week (via cron) and by default, gathers and migrates data representing traffic in the past week.

the script can be invoked from the command line with explicit dates and locations.  This is useful if there's an issue and we need to load a specific time period.  Syntax:

./request.py YYYY-MM-DD YYYY-MM-DD locationID(optional)

The third option is the location ID of a specific location-this will limit retrieval to data matching the specified dates from that specific location.  Locations and their codes are:

5 = "Mary Idema Pew Library"
6 = Steelcase
7 = Frey Learning Center
14 = Siedman


It will pull all data from the peoplecounters from the first specified date to the second.  If no date arguments are specified, it will pull data from the last seven days.`

About

short script for getting data out of our people counter system and into libinsight

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages