settings.yaml 2.1 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
    # 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:
        - DHT22_TEMP
        - DHT22_AH
        - BMP085_PRESSURE
        - LDR

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

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

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


ARDUINO:
32 33
    # 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
34
    #    
35 36
    SERIAL_PORTS: 
        - /dev/ttyACM0
Nelso Jost's avatar
Nelso Jost committed
37
        - /dev/ttyUSB0
38
        - /dev/ttyACM1
Nelso Jost's avatar
Nelso Jost committed
39
        - /dev/ttyUSB1
40 41

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

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

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

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