Projekt

Obecné

Profil

Data file structure » Historie » Verze 11

Alex Konig, 2021-05-12 14:34

1 1 Alex Konig
h1. Data file structure
2
3 3 Alex Konig
Application works with input data files in .csv format. In the following paragraphs is described what can be expected in one line of file.
4 2 Alex Konig
5 1 Alex Konig
h2. Weather data
6
7 2 Alex Konig
Sample line from data file
8 1 Alex Konig
9 2 Alex Konig
"03.06.2019 09:15:48";23.5;.4;0;76.1
10
11
* index 0 - date time
12
* index 1 - temperature in °C
13
* index 2 - wind in m/s
14
* index 3 - rain (values 0 or 1)
15
* index 4 - luminance in k lux
16
17 1 Alex Konig
h2. Jis data
18
19 2 Alex Konig
Sample line from data file
20 1 Alex Konig
21 2 Alex Konig
"Zavora-FEL";"01.06.2019 00:02:45";1
22
23
* index 0 - place tag
24
* index 1 - date time
25
* index 2 - recorded amount of interactions
26
27
28 1 Alex Konig
h2. WebAuth data
29 2 Alex Konig
30
Sample line from data file
31
32
"01.12.2019 00:00:00";4;2;"08:25";"09:10";"UL";"Laboratoř";"UL-109";"ul109p01-kks"
33
34
* index 0 - date (time is always 00:00:00)
35
* index 1 - recorded amount of logins
36
* index 2 - lesson
37
* index 3 - lesson start time
38
* index 4 - lesson end time
39
* index 5 - building tag
40
* index 6 - room type
41
* index 7 - room
42 1 Alex Konig
* index 8 - computer
43 3 Alex Konig
44
h2. Weather prediction data
45
46 8 Alex Konig
Weather prediction data is a json file format. The expected format is following:
47 1 Alex Konig
48 8 Alex Konig
All data is contained in one object, in this object are at least two arrays labeled as following:
49
* "current_condition"
50
* "weather"
51 1 Alex Konig
52 8 Alex Konig
h3. Current condition
53 1 Alex Konig
54 8 Alex Konig
In this array is one object that contains information about current weather:
55 1 Alex Konig
* temprerature ("FeelsLikeC": "14")
56
* percentage of cloud coverage ("cloudcover": "75")
57
* wind speed ("windspeedKmph": "9")
58 8 Alex Konig
59
h3. Weather
60
61
In this array are three objects, each one contains weather prediction for one day. Each one of those objects contains the following:
62
63
* array "astronomy"
64
* date ("date":"2021-05-12")
65
* array hourly
66
67
h4. Astronomy
68
69 9 Alex Konig
In this array is one object that contains the following data
70 8 Alex Konig
71 10 Alex Konig
* time of sunrise ("sunrise":"05:27 AM")
72
* time of sunset ("sunset":"08:37 PM")
73 8 Alex Konig
74
h4. Hourly
75
76 11 Alex Konig
In this array are 8 objects, each contains the prediction for one specific time interval. Specifically for times 0:00, 3:00, 6:00, 9:00, 12:00, 15:00, 18:00, 21:00.
77 3 Alex Konig
78 5 Alex Konig
Each of this hourly data must contain:
79 1 Alex Konig
 
80 11 Alex Konig
* time ("time": "0000", which is translated to 00:00, first two numbers taken as the hour value)
81
* temperature ("tempC": "6")
82 5 Alex Konig
* percentage of cloud coverage ("cloudcover": "95")
83
* wind speed ("WindGustKmph": "10")
84
* probability of rain ("chanceofrain": "88")