Skip to content

Commit

Permalink
add settings example
Browse files Browse the repository at this point in the history
  • Loading branch information
bastinc committed Feb 9, 2018
1 parent ce2e003 commit d23d2c5
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions ardas/settings_example.py
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 = {
}

0 comments on commit d23d2c5

Please sign in to comment.