forked from TomBers/eko_client
-
Notifications
You must be signed in to change notification settings - Fork 0
Client Test Scripts
charith-amarasinghe edited this page Sep 24, 2011
·
1 revision
#Client Test Scripts#
##Pre-requisites##
-
modbus_tk installed to /usr/lib/python2.6/
-
poster installed to /usr/lib/python2.6/
-
pyserial installed
-
~/eko_client/eko linked to /usr/lib/python2.6/eko
ln -s /home/root/eko_client/eko /usr/lib/python2.6/
##/tools/config_sensors/configtool.py##
usage: python configtool.py [CONFIGPATH]
eg: configtool.py Configs/setup
Will execute all the config scripts in the directory passed as CONFIGPATH. The only difference from eko_logger.py is that the output data directory is internally configured to /data/configdumps. Files are added to the upload directory.
Can be used alongside the setup scripts at eko_client/Configs/setup/ to program sensor devices quickly.
##/tools/syncadmin/syncadmin.py##
usage: python syncadmin.py
Will display the current contents of the sync database.
9 Files Left to Sync
--------------------
Id Name
1 /data/23Sep2011/1200-1759/data-05getbin.data
2 /data/23Sep2011/1200-1759/data.csv
3 /data/configdumps/23Sep2011/1800-2359/acinverter1.csv
4 /data/configdumps/23Sep2011/1800-2359/atmospheric.csv
5 /data/configdumps/23Sep2011/1800-2359/acinverter1-getbin_i.data
6 /data/configdumps/23Sep2011/1800-2359/acinverter1-getbin_v.data
7 /data/configdumps/23Sep2011/1800-2359/acinverter1-dumpconfig.data
8 /data/configdumps/23Sep2011/1800-2359/atmos-dumpconfig.data
9 /data/configdumps/23Sep2011/1800-2359/atmos.csv
root@kiosk-test:~/eko_client# python tools/syncadmin/syncadmin.py