1
0
Fork 0

Compare commits

...

27 Commits

Author SHA1 Message Date
Craig Oates a51c310c25 update README. 3 years ago
Craig Oates 328e605c52 Merge branch 'master' into unstable 3 years ago
Craig Oates c6157c58df 2021-6-11 snapshot. 3 years ago
Craig Oates d7f58fee84 update .csproj file. 3 years ago
Craig Oates 1c0b8f3d2a update to 2021.6.11 (Ross to Andy label change). 3 years ago
Craig Oates c617416402 change 'Ross' label to 'Andy'. 3 years ago
Craig Oates 99177b0e39 26-05-2021 snapshot. 3 years ago
Craig Oates 3153b6ceef update version number to 2021.5.26. 3 years ago
Craig Oates 922fab998e stop gallery blocks indicating negative light. 3 years ago
Craig Oates c809a4dfb1 replace working-text with final. 3 years ago
Craig Oates 21ead57d15 2021-05-03 Snapshot. 3 years ago
Craig Oates 18af017df9 Merge branch 'unstable' of http://git.abbether.net/return-to-ritherdon/eyes-and-ears into unstable 3 years ago
Craig Oates 8b46b32462 update version information to 2021.5.3. 3 years ago
Craig Oates c9485bd303 change the default value for CurrentTime property in ViewModel. 3 years ago
Craig Oates 40b60daa3f initialise CurrentTime with current time zone offset. 3 years ago
Craig Oates 4c0f44eac9 add white fill/shape/border around app's logo. 3 years ago
Craig Oates b899f66747 fix (#1): time not adjusting time zone. 3 years ago
Craig Oates 8dc91291c1 update threshold for detecting a weld for factory1. 3 years ago
Craig Oates 31f0368fff add extra return statement for gallery device status. 3 years ago
Craig Oates d95182926e change LogToggle to stop logging and clear log area. 3 years ago
Craig Oates a04d132c5e implement a audio notification feature (for status changes). 3 years ago
Craig Oates 5d91fc5772 create a P.O.C. for a text-to-speech feature. 3 years ago
Craig Oates e03215a7e8 implement logging system on dashboard. 3 years ago
Craig Oates 33d6cf83a8 create a log section on dashboard and toggle button. 3 years ago
Craig Oates 690a9dd5dd fine-tune the colour changes for each device and its status. 3 years ago
Craig Oates 48ced0d2ec update version information to 2021.5.3. 3 years ago
Craig Oates 49a4dceacd 2020-01-14 Snapshot: Stable into Master (#6) 3 years ago
  1. 7
      README.md
  2. 1
      src/EyesAndEars.UWP/EyesAndEars.UWP/EyesAndEars.UWP.csproj
  3. 6
      src/EyesAndEars.UWP/EyesAndEars.UWP/MainPage.xaml
  4. 2
      src/EyesAndEars.UWP/EyesAndEars.UWP/Package.appxmanifest
  5. 33
      src/EyesAndEars.UWP/EyesAndEars.UWP/Services/DataServices.cs

7
README.md

@ -1,3 +1,6 @@
# eyes-and-ears
# Return to Ritherdon: Eyes and Ears
A dashboard which provides a live overview of the, as of yet, unnamed project.
Eyes and Ears is a Windows UWP 'Dashboard App.' which monitors the overall artwork, 'Personal Flash in Real-Time' -- which is one of several artworks in the 'Return to Ritherdon' project. For more information on the 'Return to Ritherdon' project and 'Eyes and Ears' specifically, please use the following linsk:
- [Return to Ritherdon Overview](https://git.abbether.net/return-to-ritherdon/rtr-docs)
- [Eyes and Ears Documentation](https://git.abbether.net/return-to-ritherdon/rtr-docs/src/branch/master/eyes-and-ears/rtr-eyes-and-ears.md)

1
src/EyesAndEars.UWP/EyesAndEars.UWP/EyesAndEars.UWP.csproj

@ -28,6 +28,7 @@
<AppxBundle>Always</AppxBundle>
<AppxBundlePlatforms>x64</AppxBundlePlatforms>
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
<AppxSymbolPackageEnabled>False</AppxSymbolPackageEnabled>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>

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

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

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

@ -9,7 +9,7 @@
<Identity
Name="55acd946-60d4-4776-b6c6-03fef750e3da"
Publisher="CN=Craig Oates"
Version="2021.2.10.0" />
Version="2021.6.11.0" />
<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
* is broken.
*/
if (device == 1) {
if (reading > 0 && reading <= 39) // No weld detected.
return new SolidColorBrush(Colors.LightSeaGreen);
if (reading > 38) // Weld detected.
return new SolidColorBrush(Colors.DarkSeaGreen);
}
else if (device == 2) {
if (reading > 0 && reading <= 48) // No weld detected.
return new SolidColorBrush(Colors.LightSeaGreen);
if (reading > 48) // Weld detected.
return new SolidColorBrush(Colors.DarkSeaGreen);
}
else if (reading < 0) {
// The device is on but factory lights are off.
return new SolidColorBrush(Colors.LightSkyBlue);
if (device == 1 || device == 2) {
if (device == 1) {
if (reading > 0 && reading <= 39) // No weld detected.
return new SolidColorBrush(Colors.LightSeaGreen);
if (reading > 38) // Weld detected.
return new SolidColorBrush(Colors.DarkSeaGreen);
}
else if (device == 2) {
if (reading > 0 && reading <= 48) // No weld detected.
return new SolidColorBrush(Colors.LightSeaGreen);
if (reading > 48) // Weld detected.
return new SolidColorBrush(Colors.DarkSeaGreen);
}
else if (reading < 0) {
// The device is on but factory lights are off.
return new SolidColorBrush(Colors.LightSkyBlue);
}
}
// Indicate the gallery relays are on.
return new SolidColorBrush(Colors.LightSeaGreen);