homehub/packages/homehub_app/tests/__fixtures__/weather.js
2021-08-26 12:33:15 +02:00

45 lines
801 B
JavaScript

export const WeatherFactory = () => {
return {
'coord': {
'lon': 145.77,
'lat': -16.92,
},
'weather': [
{
'id': 802,
'main': 'Clouds',
'description': 'scattered clouds',
'icon': '03n',
},
],
'base': 'stations',
'main': {
'temp': 300.15,
'pressure': 1007,
'humidity': 74,
'temp_min': 300.15,
'temp_max': 300.15,
},
'visibility': 10000,
'wind': {
'speed': 3.6,
'deg': 160,
},
'clouds': {
'all': 40,
},
'dt': 1485790200,
'sys': {
'type': 1,
'id': 8166,
'message': 0.2064,
'country': 'AU',
'sunrise': 1485720272,
'sunset': 1485766550,
},
'id': 2172797,
'name': 'Cairns',
'cod': 200,
};
};