Clone the repo on the router and run virtualenv + buildout.
Create a cron job like this:
SHELL=/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin 5-59/10 * * * * root ( timeout 10m /root/traffic-gatherer/bin/trafficclient && touch /var/state/stamp-traffic-client ) |& logger -p user.info -t trafficclient
Note that the actual minute should be unique if the cron job is installed on several routers.
The traffic client needs directory XML-RPC configuration in /etc/local/configure/defaults and a secret in /etc/directory.secret.