mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-13 17:22:54 -05:00
Update light
This commit is contained in:
15857
Display/package-lock.json
generated
15857
Display/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -96,7 +96,7 @@ export class PowerChartsComponent implements OnInit {
|
||||
|
||||
seriesData.push({ name: 'Generation', data: [], yAxis: 0, marker: { enabled: false }, tooltip: { valueSuffix: ' W' } } as SeriesLineOptions);
|
||||
seriesData.push({ name: 'Consumption', data: [], yAxis: 0, marker: { enabled: false }, tooltip: { valueSuffix: ' W' } } as SeriesLineOptions);
|
||||
seriesData.push({ name: 'Light', data: [], yAxis: 1, marker: { enabled: false }, tooltip: { valueSuffix: '%' } } as SeriesLineOptions);
|
||||
seriesData.push({ name: 'Light', data: [], yAxis: 1, marker: { enabled: false }, tooltip: { valueSuffix: ' lx' } } as SeriesLineOptions);
|
||||
|
||||
data[0].forEach(dataElement => {
|
||||
const date = Date.parse(dataElement.bucket);
|
||||
|
||||
@@ -113,7 +113,7 @@ export class WeatherChartsComponent implements OnInit {
|
||||
seriesData.push({ type: 'line', name: 'Temperature', data: [], yAxis: 0, marker: { enabled: false }, tooltip: { valueSuffix: '°F' } } as SeriesLineOptions);
|
||||
seriesData.push({ type: 'line', name: 'Pressure', data: [], yAxis: 1, marker: { enabled: false }, tooltip: { valueSuffix: '"' } } as SeriesLineOptions);
|
||||
seriesData.push({ type: 'line', name: 'Humidity', data: [], yAxis: 2, marker: { enabled: false }, tooltip: { valueSuffix: '%' } } as SeriesLineOptions);
|
||||
seriesData.push({ type: 'line', name: 'Light', data: [], yAxis: 2, marker: { enabled: false }, tooltip: { valueSuffix: '%' } } as SeriesLineOptions);
|
||||
seriesData.push({ type: 'line', name: 'Light', data: [], yAxis: 4, marker: { enabled: false }, tooltip: { valueSuffix: ' lx' } } as SeriesLineOptions);
|
||||
seriesData.push({ type: 'column', name: 'Rain', data: [], yAxis: 3, marker: { enabled: false }, tooltip: { valueSuffix: '"' } } as SeriesColumnOptions);
|
||||
|
||||
data.forEach(dataElement => {
|
||||
@@ -165,8 +165,7 @@ export class WeatherChartsComponent implements OnInit {
|
||||
},
|
||||
title: {
|
||||
text: 'Pressure'
|
||||
},
|
||||
opposite: true
|
||||
}
|
||||
},
|
||||
{
|
||||
visible: true,
|
||||
@@ -177,7 +176,8 @@ export class WeatherChartsComponent implements OnInit {
|
||||
text: 'Percentage'
|
||||
},
|
||||
min: 0,
|
||||
max: 100
|
||||
max: 100,
|
||||
opposite: true
|
||||
},
|
||||
{
|
||||
labels: {
|
||||
@@ -190,7 +190,16 @@ export class WeatherChartsComponent implements OnInit {
|
||||
max: 0.25,
|
||||
visible: true,
|
||||
opposite: true
|
||||
}
|
||||
},
|
||||
{
|
||||
labels: {
|
||||
format: '{value:.2f} lx',
|
||||
},
|
||||
title: {
|
||||
text: 'Light'
|
||||
},
|
||||
opposite: true
|
||||
},
|
||||
],
|
||||
time: {
|
||||
useUTC: false
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
Light
|
||||
</td>
|
||||
<td>
|
||||
{{ latestReading.LightLevel.toFixed(2) }}%
|
||||
{{ latestReading.LightLevel.toFixed(2) }} lx
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user