settings.yaml 2.08 KB
Newer Older
1
2
SERVER:
    # full URL that accepts POST method for sending data to the server
Nelso Jost's avatar
Nelso Jost committed
3
    # WARNING: replace the end 'BID' with a valid board ID number
4
    # 
Nelso Jost's avatar
Nelso Jost committed
5
    API_POST_URL: 'http://dados.cta.if.ufrgs.br/emm/api/post/rawsensordata/BID'
6
7

LOGGER:
8
9
10
11
12
13
14
15
16
17
    # list of sensors to be read (ordering reflect columns of DATALOG file)
    # to ignore one, comment it out by putting # in the beginning of the line   
    #
    SENSORS:
        - RTC_DS1307
        - DHT22_TEMP
        - DHT22_AH
        - BMP085_PRESSURE
        - LDR

18
19
    # time between readings attempts (cycles of the logger execution)
    # 
Nelso Jost's avatar
Nelso Jost committed
20
    INTERVAL: {days: 0, hours: 0, minutes: 0, seconds: 10}
21

22
    # set false to use the system time or the RTC sensor name to use instead
23
    # if the reading is invalid somehow, the system's time will be used instead
24
25
26
27
28
29
    #
    USE_RTC_DATETIME: RTC_DS1307

    # expected format of the time stamp returned by the RTC reading
    #
    RTC_DATETIME_FORMAT: '%Y-%m-%d %H:%M:%S'
30
31
32


ARDUINO:
33
34
    # list of USB ports (the first one will be used for ino upload)
    # Uno and Mega usually appears at /dev/ttyACMx; else try /dev/ttyUSBx
35
    #    
36
37
38
    SERIAL_PORTS: 
        - /dev/ttyACM0
        - /dev/ttyACM1
39
40

    # Arduino serial communication protocol (same as in meteorolog.ino)
41
    # OBS: 115200 seems unstable with Uno + PySerial
42
    #
43
    BAUD_RATE: 9600
44

45
DATALOG:
46
47
    # CSV delimiter to be used on the file DATA_LOG_FILENAME
    # Sugestions: ',' or ';' or '\t' for tab (do not use the period '.')
48
49
    #    
    CSV_SEP: '\t'
50

51
    # format of the datetime column (see Python docs on datetime module)
52
    #
53
54
55
56
    DATETIME_FORMAT: '%Y%m%d%H%M%S'

# ============================================================================
# list of all the sensors available for this board, and their specs
57
58
# WARNING: should be synced with the server 
# !! Edit only if you know what you are doing !!
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#
SENSORS_AVAILABLE:

    RTC_DS1307:
        data_format: datetime
    
    DHT22_TEMP:
        data_format: float

    DHT22_AH:
        data_format: float

    BMP085_PRESSURE:
        data_format: int
    
    LDR:
        data_format: float