1
0
Fork 0
The documentation repository for the software projects developed for the 'Return to Ritherdon Project' by Nicola Ellis. http://www.nicolaellis.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

155 lines
7.2 KiB

Squashed commit of the following: commit e23be46f540ded7f8c5797627bb9589eec9ffe5e Author: Craig Oates <craig@craigoates.net> Date: Fri Nov 5 16:59:01 2021 +0000 update Midpoint doc. commit 70e23d0902027e7a1855dbacc275fdc2667ec5ec Author: Craig Oates <craig@craigoates.net> Date: Fri Nov 5 16:55:27 2021 +0000 update Midpoint doc. commit 3daa38662a85c98c98314bf602352f96f0455c6f Author: Craig Oates <craig@craigoates.net> Date: Fri Nov 5 16:46:04 2021 +0000 update README doc. commit 2e9d1df94dffddea972bc08527bf766ba723954a Author: Craig Oates <craig@craigoates.net> Date: Fri Nov 5 16:19:39 2021 +0000 create and populate Light Wave doc. commit 73464777fe01bf7dc305b1c1a22b913420999011 Author: Craig Oates <craig@craigoates.net> Date: Thu Nov 4 20:34:37 2021 +0000 add Return to Ritherdon Project Overview .dot file. This is the file used to generate the .png version of the file in the main README.md file. commit 76710d26cb4414365b0250c765852db017f5dbb5 Author: Craig Oates <craig@craigoates.net> Date: Thu Nov 4 20:32:30 2021 +0000 update README doc. diagrams. I added a .dot file for the Return to Riterdon project overview and fix the image links for so the diagrams sit in their correct places within the document. commit 131bdefdc388e4ca778e58cab7df18f1df1faae2 Author: Craig Oates <craig@craigoates.net> Date: Thu Nov 4 20:27:49 2021 +0000 add .dot file for diagram in README. This is the file used to illustrate the how 'Personal Flash in Real-Time' fits into the 'Return to Ritherdon' project. commit 6dae2040dc8250825a530ef07badd05c4c73e6cb Author: Craig Oates <craig@craigoates.net> Date: Thu Nov 4 20:27:27 2021 +0000 update README doc (main project overview). commit d20d59249562d5420a6d1534c819254a1d50df91 Author: Craig Oates <craig@craigoates.net> Date: Thu Nov 4 19:39:12 2021 +0000 update Midpoint doc. commit db74ec5d062b6faffba8158259727042a7dd2291 Author: Craig Oates <craig@craigoates.net> Date: Thu Nov 4 19:14:05 2021 +0000 populate midpoint doc. commit a4ecffeec941ac2bb20d9247abd4b22b7b3e81da Author: Craig Oates <craig@craigoates.net> Date: Wed Nov 3 20:31:37 2021 +0000 start populating Midpoint doc. This is a work in progress (end of session) commit. commit bf8a961f99e0fbcb3e6daa58bb427e26ec47e66a Author: Craig Oates <craig@craigoates.net> Date: Wed Nov 3 20:02:07 2021 +0000 fix typo in Relay doc. commit 8902037b83b9bb19da93c25e32a2b5b7a18b64b1 Author: Craig Oates <craig@craigoates.net> Date: Wed Nov 3 19:53:14 2021 +0000 update Relay doc. commit 0e62c64f069d36c4fb7f933ff2f5882e11ce4eef Author: Craig Oates <craig@craigoates.net> Date: Tue Nov 2 19:00:20 2021 +0000 stub out further sections for Relay doc. This is prep. work for expanding the documentation for the Relay project. End of session commit, though, which is the reason why the sections are not filled out. commit af03002f48b0e17a65d1a39001cb5381dd1ca835 Author: Craig Oates <craig@craigoates.net> Date: Tue Nov 2 18:50:31 2021 +0000 populated Relay doc. This is a rough transfer of my personal notes in to the public doc's for the Relay project. I've not gone through it properly so expect mistakes and it needing a good proof-read. commit c8eba160fb2eac9f42825072b07eb736e94ef933 Author: Craig Oates <craig@craigoates.net> Date: Tue Nov 2 18:07:02 2021 +0000 update Light Meter doc. commit 755db34e927c3abba5087c2c8a242668a802516e Author: Craig Oates <craig@craigoates.net> Date: Tue Nov 2 17:52:21 2021 +0000 update light-meter doc. commit d28dea87c494ec7a6f5d5d9a0f1b18dfd81a0c10 Author: Craig Oates <craig@craigoates.net> Date: Tue Nov 2 17:15:13 2021 +0000 add install section to Eyes and Ears doc. commit d5e6440297e200f318a6a0b60eb3cea8ff153f7a Author: Craig Oates <craig@craigoates.net> Date: Tue Nov 2 17:09:27 2021 +0000 add links to other projects (Eyes and Ears doc's). commit 5b2583c00b97f8b4fa5dee1ff2534d4af74681bc Author: Craig Oates <craig@craigoates.net> Date: Tue Nov 2 16:59:32 2021 +0000 populate the Eyes and Ears section. commit b3408532d89e1c5ce0ee2e7def8796cb731e18ae Author: Craig Oates <craig@craigoates.net> Date: Tue Nov 2 12:57:48 2021 +0000 change Ross to Andy. At some point, I forgot when it was, Ross was replaced by Andy as a welder. This name change is just me dotting the i's and crossing the t's.
3 years ago
# Return to Ritherdon: Eyes and Ears
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, please use the
following link:
- [Return to Ritherdon Overview](https://git.abbether.net/return-to-ritherdon/rtr-docs)
![Screenshot 1](./attachments/eyes-and-ears-screenshot-1.png)
![Screenshot 2](./attachments/eyes-and-ears-screenshot-2.png)
## Overview of Eyes and Ears Fits into the 'Personal Flash in Real-Time' System
For the purpose of this documentation, I will refer to 'Personal Flash
in Real-Time' as a 'system' instead of an 'artwork'. The reason why is
becaues of the context we are viewing the various (sub-)projects and
their components in.
First of all, Eyes and Ears is not an essential part of the system. It
is a nice to have. There are three smaller projects which combine to
create the whole 'Personal Flash in Real-Time' system. On top of that,
they reside in different places across the U.K. which makes it
difficult to see what state the whole system is in at any one
moment. It is not unsurmountable but this dashboard app. helps.
![System Overview](./attachments/system-overview.png)
For more information on the other parts of the system, use the following
links:
- [Light Meter Code](https://git.abbether.net/return-to-ritherdon/light-meter)
- [Light Meter Documentation](https://git.abbether.net/return-to-ritherdon/rtr-docs/src/branch/master/light-meter)
- [Relay Code](https://git.abbether.net/return-to-ritherdon/relay)
- [Relay Documentation](https://git.abbether.net/return-to-ritherdon/rtr-docs/src/branch/master/relay)
- [Midpoint Code](https://git.abbether.net/return-to-ritherdon/midpoint)
- [Midpoint Documentation](https://git.abbether.net/return-to-ritherdon/rtr-docs/src/branch/master/midpoint)
## Technology Overview
Because of the nature of 'Personal Flash in Real-Time', Eyes and Ears
has no long term maintainence concerns. So, the code is a bit of a
mess. The biggest mess is the lack of seperation between the code in
the view (`MainPage.cs`) and the view-model (`MainPageVM.cs`). If
anything, I think it would be easier to re-write Eyes and Ears than
look to add new features.
Eyes and Ears in written in C# and the Universal Windows Platform
(UWP) and targets Windows 10. I should point out **Microsoft is moving
away from UWP so you should view this application as obsolete**.
- [Universal Windows Platform (UWP)](https://docs.microsoft.com/en-us/windows/uwp/)
- [Article on Microsoft dropping UWP](https://www.techradar.com/news/microsoft-is-finally-dropping-uwp-app-support-windows-app-sdk-heres-why)
The project's structure is a typical UWP one. There are a lot of files
you do not need to touch so I have highlighted the files/directories
you will spend the most time in with `(AREA OF INTEREST)`.
```shell
./src
└── EyesAndEars.UWP
├── EyesAndEars.UWP
   ├── AppPackages
   ├── App.xaml
   ├── App.xaml.cs
   ├── Assets
   ├── bin
   ├── BundleArtifacts
   ├── EyesAndEars.UWP.csproj
   ├── EyesAndEars.UWP.csproj.user
   ├── EyesAndEars.UWP_TemporaryKey.pfx
   ├── images
   ├── MainPage.xaml <------ (AREA OF INTEREST)
   ├── MainPage.xaml.cs <--- (AREA OF INTEREST)
   ├── Models <------------- (AREA OF INTEREST)
   ├── obj
   ├── Package.appxmanifest
   ├── Properties
   ├── Services <----------- (AREA OF INTEREST)
   └── ViewModels <--------- (AREA OF INTEREST)
└── EyesAndEars.UWP.sln
```
Below is a diagram showing how the various pieces fit together. The
`Models`, `ViewModel` and `Services` sections are the
directories. There are further files in them. I should point out there
is only one ViewModel called `MainPageVM.cs` which binds to `MainPage.cs`.
![App-Internals](./attachments/app-internals.png)
## How-To Use Eyes and Ears
The first time you start Eyes and Ears, you need to input the URL to
the server part of the system (MidPoint). You do this by entering it
in the URL-bar (3) at the bottom of the screen and then press the
'Save' button (6). For all intents and purposes, that is all you need
to do. The rest of the features are secondary and you can get away
with not ever using them.
For more information on the other parts of the system, use the following
links:
- [Light Meter Code](https://git.abbether.net/return-to-ritherdon/light-meter)
- [Light Meter Documentation](https://git.abbether.net/return-to-ritherdon/rtr-docs/src/branch/master/light-meter)
- [Relay Code](https://git.abbether.net/return-to-ritherdon/relay)
- [Relay Documentation](https://git.abbether.net/return-to-ritherdon/rtr-docs/src/branch/master/relay)
- [Midpoint Code](https://git.abbether.net/return-to-ritherdon/midpoint)
- [Midpoint Documentation](https://git.abbether.net/return-to-ritherdon/rtr-docs/src/branch/master/midpoint)
The URL has changed throughout the course of developing the whole
system ('Personal Flash in Real-Time'). So, you will need to confirm
the URL is correct which means you will need to speak to whomever is
running the server (Midpoint) part of the system.
![GUI-Breakdown](./attachments/gui-breakdown.png)
1. Log Toggle (toggle debug logs (6) on/off)
2. Info. button (artist's website)
3. URL-Bar (to connect to (Midpoint) server
4. Play/Stop Button (stop and start updating system status)
5. Save Button (writes the URL to disk for future use)
6. Debug Logs (used to testing and you will probably never need to use
it)
7. Main Info. Area (displays the status of the various devices making
up the whole system)
8. Current Time (used to cross-reference the time-stamps of the
various status updates)
When Eyes and Ears is running, the Main Info. (7) displays the
time-stamp of the latest event pushed to the server (Midpoint). The
main (biggest) numbers in `Factory 1` and `Factory 2` states the
latest light level reading taken from their respective
devices. `Gallery 1` and `Gallery 2` refers to when the devices are
either turned-on (and online) or turned-off (and offline as a
result). Refer to the Legend for the colour coded nature of the
various devices within the application itself. The 'Low Light' colour
refers to when the light meters (`Factory 1` and `Factory 2`) record
'negative light'. The reason why this happens is beyond the scope of
this documentation (and the Eyes and Ears application).
# Installing Eyes and Ears
The easiest way to install the program is by downloading a build in
the 'Releases' section on the main (I.E. code) repository:
- [Eyes and Ears Releases Page](https://git.abbether.net/return-to-ritherdon/eyes-and-ears/releases)
If you have Visual Studio, you can build from the source code either
by pressing `F5` and or using the `Publish` feature within Visual
Studio. I will not go into detail on how to do this becuase it is a
Visual Studio, .Net, C# and UWP specific concern -- which is outside
the scope of this documentation.