settings_schema.yaml 2.35 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
type: map
mapping:

    SERVER:
        required: true
        type: map
        mapping:
            API_POST_URL:
                required: true
                type: str

    LOGGER:
        required: true
        type: map
        mapping:

            SENSORS:
                required: true
                type: seq
                sequence:
                    - type: str
                      unique: true

            INTERVAL:
                # default: {days: 0, hours: 0, minutes: 0, seconds: 10}
                required: true
                type: map
                mapping:
                    days:
                        required: true
                        type: int
                        range:
                            min: 0
                    hours:
                        required: true
                        type: int
                        range:
                            min: 0
                    minutes:
                        required: true
                        type: int
                        range:
                            min: 0
                    seconds:
                        required: true
                        type: int
                        range:
                            min: 0
         
            USE_RTC_DATETIME: 
                required: true
                allowempty: true  
                type: map


            RTC_DATETIME_FORMAT: 
                # default: '%Y-%m-%d %H:%M%:%S'
                required: true
                type: str

    ARDUINO:
        required: true
        type: map
        mapping:
            SERIAL_PORT:
                required: true
                type: str

            BAUD_RATE:
                required: true
                type: int
                enum: [300, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, 115200]

            RESPONSE_DELAY:
                required: true
                type: int
                range:
                    min: 0

    DATALOG:
        required: true
        type: map
        mapping:
            FILENAME:
                required: true
                type: str

            CSV_SEP:
                required: true
                type: str

            DATETIME_FORMAT:
                required: true
                type: str

    SENSORS_AVAILABLE:
        required: true
        type: map
        allowempty: true