-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
bastinc
committed
Feb 9, 2018
1 parent
ce2e003
commit d23d2c5
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
from ardas import sensor_tools as st | ||
|
||
# connexion to InfluxDB | ||
DATABASE = { | ||
'host': '', | ||
'port': 8086, | ||
'user': '', | ||
'password': '', | ||
'dbname': '', | ||
'series': '' | ||
} | ||
|
||
# ArDAS configuration | ||
ARDAS_CONFIG = { | ||
'station': '', # 4 characters | ||
'net_id': '', # 3 characters | ||
'integration_period': '0001', # 4 characters convertible to int | ||
'tty': '/dev/ttyACM0', | ||
'raw_data_on_disk': False # to implement in raspardas | ||
} | ||
|
||
# ArDAS sensors objects connected to the ArDAS channels | ||
SENSORS = (st.load_sensor('0001'), st.load_sensor('0002'), st.load_sensor('0003'), st.load_sensor('0004')) | ||
|
||
# connection to master | ||
MASTER_CONFIG = { | ||
'local_host': '0.0.0.0', | ||
'local_port': 10001 | ||
} | ||
|
||
# messages logging configuration | ||
LOGGING_CONFIG ={ | ||
'debug_mode': False, | ||
'logging_to_console': False, | ||
'file_name': 'raspardas_log', | ||
'max_bytes': 262144, | ||
'backup_count': 30, | ||
'when': 'd', | ||
'interval': 1 | ||
} | ||
|
||
# data logging configuration | ||
DATA_LOGGING_CONFIG ={ | ||
'file_name': 'data_log', | ||
'max_bytes': 16777216, | ||
'backup_count': 1024, | ||
'when': 'd', | ||
'interval': 1, | ||
'influxdb_logging': True | ||
} | ||
|
||
# parameters to push code to raspberry via sftp_transfer.py | ||
SFTP = { | ||
} |