Projekt

Obecné

Profil

Data file structure » Historie » Verze 7

Alex Konig, 2021-05-12 13:46

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 7 Alex Konig
Weather prediction data is a json file format. The expected format is following
47 1 Alex Konig
48 7 Alex Konig
its an object
49
in it are arrays
50
"current_condition"
51
"weather"
52
53
in array current_condition
54
- one object
55
- in it is ...
56
57
in array weather
58
- one object
59
-- array "astronomy" - in it one object ->
60
-- date
61
-- array hourly - 8 objects, with predictions
62
--- in those ...
63
64
65 1 Alex Konig
Under the hearder "current_condition" is the information about current weather. It needs to contain the following information:
66
67 7 Alex Konig
* temprerature ("FeelsLikeC": "14")
68 5 Alex Konig
* percentage of cloud coverage ("cloudcover": "75")
69
* wind speed ("windspeedKmph": "9")
70 3 Alex Konig
71 5 Alex Konig
Furhter in the file under the header "weather" needs to awlays be a date ("date": "2021-05-01") after which follows the value "hourly", in which is stored an array with weather predictions.
72 3 Alex Konig
73 5 Alex Konig
Each day there are 8 predictions, each for different starting time, specifically for times 0:00, 3:00, 6:00, 9:00, 12:00, 15:00, 18:00, 21:00.
74 3 Alex Konig
75 5 Alex Konig
There are 3 days weather predictions written out like this: today, tommorrow and the day after tommorrow.
76 4 Alex Konig
77 1 Alex Konig
Each of this hourly data must contain:
78
 
79 7 Alex Konig
* time ("time": "0000", 00:00 -> first two taken as hour)
80 6 Alex Konig
* temperatur ("tempC": "6")
81 5 Alex Konig
* percentage of cloud coverage ("cloudcover": "95")
82
* wind speed ("WindGustKmph": "10")
83
* probability of rain ("chanceofrain": "88")