|
|
|
@ -18,7 +18,7 @@ function WeatherCardContent(props) { |
|
|
|
if (props.weather != null) { |
|
|
|
const weather = props.weather |
|
|
|
device = <h3>Device {weather.deviceId}</h3> |
|
|
|
let url = `http://localhost:3001/images/${weather.summary.replaceAll(' ', '_')}.png` |
|
|
|
let url = `http://157.245.192.125:3001/images/${weather.summary.replaceAll(' ', '_')}.png` |
|
|
|
image = <img onClick={handleClick} src={url} alt={weather.summary} className="weather-image"/> |
|
|
|
let temperature = Math.round((weather.temperature + Number.EPSILON) * 100) / 100 |
|
|
|
header = <h4>{temperature}℃</h4> |
|
|
|
|