|
12 | 12 | />
|
13 | 13 | </div>
|
14 | 14 | <div class="weather-now temp-now">
|
15 |
| - 20° |
| 15 | + {{ weatherData[0]['data']['instant']['details']['air_temperature']}}° |
16 | 16 | </div>
|
17 | 17 | <div class="weather-now detailsWeatherNow">
|
18 |
| - <div class="weather-now detailsWeatherNow percipitation">Regn: 2%</div> |
19 |
| - <div class="weather-now detailsWeatherNow humidity">Fuktighet: 6%</div> |
20 |
| - <div class="weather-now detailsWeatherNow wind">Vind: 4 m/s</div> |
| 18 | + <div class="weather-now detailsWeatherNow percipitation">Regn: {{ weatherData[0]['data']['next_1_hours']['details']['precipitation_amount']}} mm</div> |
| 19 | + <div class="weather-now detailsWeatherNow humidity">Fuktighet: {{ weatherData[0]['data']['instant']['details']['relative_humidity']}}%</div> |
| 20 | + <div class="weather-now detailsWeatherNow wind">Vind: {{ weatherData[0]['data']['instant']['details']['wind_speed']}} m/s</div> |
21 | 21 | </div>
|
22 | 22 | </div>
|
23 | 23 | <div class="temperature-graph">
|
24 | 24 | <WeatherGraph
|
25 | 25 | :temperatureDataToPlot="[
|
26 |
| - { time: '00:00', temperature: -3.9 }, |
27 |
| - { time: '00:02', temperature: -4.1 }, |
28 |
| - { time: '00:03', temperature: 3.8 }, |
29 |
| - { time: '00:04', temperature: 3.5 }, |
30 |
| - { time: '00:05', temperature: 4.2 }, |
31 |
| - { time: '00:06', temperature: 4.4 }, |
32 |
| - { time: '00:07', temperature: 3.9 }, |
33 |
| - { time: '00:08', temperature: 4.2 }, |
34 |
| - { time: '00:09', temperature: 5.4 }, |
35 |
| - { time: '00:10', temperature: 5.9 }, |
| 26 | + { time: weatherData[0]['time'].slice(11,16), temperature: weatherData[0]['data']['instant']['details']['air_temperature'] }, |
| 27 | + { time: weatherData[1]['time'].slice(11,16), temperature: weatherData[1]['data']['instant']['details']['air_temperature'] }, |
| 28 | + { time: weatherData[2]['time'].slice(11,16), temperature: weatherData[2]['data']['instant']['details']['air_temperature'] }, |
| 29 | + { time: weatherData[3]['time'].slice(11,16), temperature: weatherData[3]['data']['instant']['details']['air_temperature'] }, |
| 30 | + { time: weatherData[4]['time'].slice(11,16), temperature: weatherData[4]['data']['instant']['details']['air_temperature'] }, |
| 31 | + { time: weatherData[5]['time'].slice(11,16), temperature: weatherData[5]['data']['instant']['details']['air_temperature'] }, |
| 32 | + { time: weatherData[6]['time'].slice(11,16), temperature: weatherData[6]['data']['instant']['details']['air_temperature'] }, |
| 33 | + { time: weatherData[7]['time'].slice(11,16), temperature: weatherData[7]['data']['instant']['details']['air_temperature'] }, |
| 34 | + { time: weatherData[8]['time'].slice(11,16), temperature: weatherData[8]['data']['instant']['details']['air_temperature'] }, |
| 35 | + { time: weatherData[9]['time'].slice(11,16), temperature: weatherData[9]['data']['instant']['details']['air_temperature'] }, |
36 | 36 | ]"
|
37 | 37 | />
|
38 | 38 | </div>
|
@@ -356,7 +356,7 @@ export default {
|
356 | 356 | align-content: stretch;
|
357 | 357 | align-items: flex-start;
|
358 | 358 | height: 50%;
|
359 |
| - width: 6em; |
| 359 | + width: 8em; |
360 | 360 | }
|
361 | 361 |
|
362 | 362 | .iconWeatherNow {
|
|
0 commit comments