1
0
Fork 0
Browse Source

26-05-2021 snapshot.

master 2021.5.26.0
Craig Oates 3 years ago
parent
commit
99177b0e39
  1. 6
      src/EyesAndEars.UWP/EyesAndEars.UWP/MainPage.xaml
  2. 2
      src/EyesAndEars.UWP/EyesAndEars.UWP/Package.appxmanifest
  3. 33
      src/EyesAndEars.UWP/EyesAndEars.UWP/Services/DataServices.cs

6
src/EyesAndEars.UWP/EyesAndEars.UWP/MainPage.xaml

@ -40,7 +40,7 @@
<StackPanel Padding="8,0"> <StackPanel Padding="8,0">
<TextBlock Text="Return to Ritherdon Project" FontSize="40"/> <TextBlock Text="Return to Ritherdon Project" FontSize="40"/>
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<TextBlock Text="Unnamed Project" Padding="0" FontSize="24" <TextBlock Text="Personal Flash in Real-Time" Padding="0" FontSize="24"
VerticalAlignment="Bottom"/> VerticalAlignment="Bottom"/>
<TextBlock Text="by Nicola Ellis" Padding="0" Margin="12,0" <TextBlock Text="by Nicola Ellis" Padding="0" Margin="12,0"
FontSize="18" VerticalAlignment="Bottom"/> FontSize="18" VerticalAlignment="Bottom"/>
@ -74,7 +74,7 @@
Text="{x:Bind _vm.Device1.LatestReading.reading, Text="{x:Bind _vm.Device1.LatestReading.reading,
Mode=OneWay, FallbackValue=404}" Foreground="White" Mode=OneWay, FallbackValue=404}" Foreground="White"
VerticalAlignment="Bottom" FontSize="144"/> VerticalAlignment="Bottom" FontSize="144"/>
<TextBlock Text="Factory 1" Foreground="White" FontSize="36" <TextBlock Text="Factory 1 (Ross)" Foreground="White" FontSize="36"
VerticalAlignment="Bottom"/> VerticalAlignment="Bottom"/>
</StackPanel> </StackPanel>
</Grid> </Grid>
@ -91,7 +91,7 @@
Text="{x:Bind _vm.Device2.LatestReading.reading, Text="{x:Bind _vm.Device2.LatestReading.reading,
Mode=OneWay, FallbackValue=404}" Foreground="White" Mode=OneWay, FallbackValue=404}" Foreground="White"
VerticalAlignment="Bottom" FontSize="144"/> VerticalAlignment="Bottom" FontSize="144"/>
<TextBlock Text="Factory 2" Foreground="White" FontSize="36" <TextBlock Text="Factory 2 (Tony)" Foreground="White" FontSize="36"
VerticalAlignment="Bottom"/> VerticalAlignment="Bottom"/>
</StackPanel> </StackPanel>
</Grid> </Grid>

2
src/EyesAndEars.UWP/EyesAndEars.UWP/Package.appxmanifest

@ -9,7 +9,7 @@
<Identity <Identity
Name="55acd946-60d4-4776-b6c6-03fef750e3da" Name="55acd946-60d4-4776-b6c6-03fef750e3da"
Publisher="CN=Craig Oates" Publisher="CN=Craig Oates"
Version="2021.5.3.0" /> Version="2021.5.26.0" />
<mp:PhoneIdentity PhoneProductId="55acd946-60d4-4776-b6c6-03fef750e3da" PhonePublisherId="00000000-0000-0000-0000-000000000000"/> <mp:PhoneIdentity PhoneProductId="55acd946-60d4-4776-b6c6-03fef750e3da" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

33
src/EyesAndEars.UWP/EyesAndEars.UWP/Services/DataServices.cs

@ -103,22 +103,23 @@ namespace EyesAndEars.UWP.Services {
* the system knows about and everything is fine -- nothing * the system knows about and everything is fine -- nothing
* is broken. * is broken.
*/ */
if (device == 1 || device == 2) {
if (device == 1) { if (device == 1) {
if (reading > 0 && reading <= 39) // No weld detected. if (reading > 0 && reading <= 39) // No weld detected.
return new SolidColorBrush(Colors.LightSeaGreen); return new SolidColorBrush(Colors.LightSeaGreen);
if (reading > 38) // Weld detected. if (reading > 38) // Weld detected.
return new SolidColorBrush(Colors.DarkSeaGreen); return new SolidColorBrush(Colors.DarkSeaGreen);
} }
else if (device == 2) { else if (device == 2) {
if (reading > 0 && reading <= 48) // No weld detected. if (reading > 0 && reading <= 48) // No weld detected.
return new SolidColorBrush(Colors.LightSeaGreen); return new SolidColorBrush(Colors.LightSeaGreen);
if (reading > 48) // Weld detected. if (reading > 48) // Weld detected.
return new SolidColorBrush(Colors.DarkSeaGreen); return new SolidColorBrush(Colors.DarkSeaGreen);
} }
else if (reading < 0) { else if (reading < 0) {
// The device is on but factory lights are off. // The device is on but factory lights are off.
return new SolidColorBrush(Colors.LightSkyBlue); return new SolidColorBrush(Colors.LightSkyBlue);
}
} }
// Indicate the gallery relays are on. // Indicate the gallery relays are on.
return new SolidColorBrush(Colors.LightSeaGreen); return new SolidColorBrush(Colors.LightSeaGreen);