Update light

This commit is contained in:
2021-05-28 20:50:35 -04:00
parent de95ec18a5
commit 09d38ed93f
4 changed files with 15844 additions and 36 deletions

15857
Display/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -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);

View File

@@ -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

View File

@@ -76,7 +76,7 @@
Light
</td>
<td>
{{ latestReading.LightLevel.toFixed(2) }}%
{{ latestReading.LightLevel.toFixed(2) }} lx
</td>
</tr>
</table>