Show temperature and humidity on the DateTimeWeather widget upon sensor events only if the sensor data is numeric.

This commit is contained in:
Fabio Manganiello 2023-04-24 10:59:45 +02:00
parent bfa296e7c5
commit 5638c567ff
Signed by: blacklight
GPG key ID: D90FBA7F76362774
15 changed files with 16 additions and 16 deletions

View file

@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><link rel="stylesheet" href="/fonts/poppins.css"><title>platypush</title><script defer="defer" type="module" src="/static/js/chunk-vendors.95bedba1.js"></script><script defer="defer" type="module" src="/static/js/app.d89d7cfb.js"></script><link href="/static/css/chunk-vendors.0fcd36f0.css" rel="stylesheet"><link href="/static/css/app.11a00465.css" rel="stylesheet"><script defer="defer" src="/static/js/chunk-vendors-legacy.79dede0c.js" nomodule></script><script defer="defer" src="/static/js/app-legacy.9cad3451.js" nomodule></script></head><body><noscript><strong>We're sorry but platypush doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html> <!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><link rel="stylesheet" href="/fonts/poppins.css"><title>platypush</title><script defer="defer" type="module" src="/static/js/chunk-vendors.95bedba1.js"></script><script defer="defer" type="module" src="/static/js/app.43713bf2.js"></script><link href="/static/css/chunk-vendors.0fcd36f0.css" rel="stylesheet"><link href="/static/css/app.11a00465.css" rel="stylesheet"><script defer="defer" src="/static/js/chunk-vendors-legacy.79dede0c.js" nomodule></script><script defer="defer" src="/static/js/app-legacy.39523ae1.js" nomodule></script></head><body><noscript><strong>We're sorry but platypush doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -14,14 +14,14 @@
<div class="row" v-if="_showSensors && Object.keys(sensors).length"> <div class="row" v-if="_showSensors && Object.keys(sensors).length">
<div class="col-3"> <div class="col-3">
<Sensor icon-class="fas fa-thermometer-half" :value="sensors.temperature" unit="°" <Sensor icon-class="fas fa-thermometer-half" :value="sensors.temperature" unit="°"
v-if="sensors.temperature != null" /> v-if="typeof sensors.temperature === 'number'" />
</div> </div>
<div class="col-6">&nbsp;</div> <div class="col-6">&nbsp;</div>
<div class="col-3"> <div class="col-3">
<Sensor icon-class="fas fa-tint" :value="sensors.humidity" unit="%" <Sensor icon-class="fas fa-tint" :value="sensors.humidity" unit="%"
v-if="sensors.humidity != null" /> v-if="typeof sensors.humidity === 'number'" />
</div> </div>
</div> </div>
</div> </div>