This is a whole new chunk of functionality and will need admin UI and some advanced rules/validation checks.
"Test message status" page should show, for each message type (LOK, PUP, AID):
(a) if the message is valid (can be properly interpreted, has pilot number matching name as we know it, includes parsable GPS coordinates) and we have received at least one, or
(b) no test message has been received (with a link to instructions), or
(c) message received but invalid (with detailed reason for invalidity hopefully, plus a link to instructions)
"Tracking link" should indicate if the link is
(a) valid and working, or
(b) valid and not working (with detailed reason, such as there is a password, or no tracking points or messages are shown so unable to confirm it's the right one), or
(c) invalid (possibly with suggestions, including a link to instructions), or
(d) missing (with link to the bit.ly for submitting a tracking URL)
While in "test" mode, the board is updated with either:
TST (no tests have been done)
FIN (all tests done and valid, has valid tracking URL)
URL (all tests done and valid, but tracking URL missing/bad)
GPS (some test messages sent, but they are missing GPS coordinates)
Note that if the first Inreach message is sent too soon after turning on the device (before a proper GPS lock), then the first may have no GPS coordinates but the others do. This could be considered a valid test, or we just make them send that message again.
Note that SPOT keeps changing the GPS coordinate format, so may require code updates each year!
This is a whole new chunk of functionality and will need admin UI and some advanced rules/validation checks.
"Test message status" page should show, for each message type (LOK, PUP, AID):
(a) if the message is valid (can be properly interpreted, has pilot number matching name as we know it, includes parsable GPS coordinates) and we have received at least one, or
(b) no test message has been received (with a link to instructions), or
(c) message received but invalid (with detailed reason for invalidity hopefully, plus a link to instructions)
"Tracking link" should indicate if the link is
(a) valid and working, or
(b) valid and not working (with detailed reason, such as there is a password, or no tracking points or messages are shown so unable to confirm it's the right one), or
(c) invalid (possibly with suggestions, including a link to instructions), or
(d) missing (with link to the bit.ly for submitting a tracking URL)
While in "test" mode, the board is updated with either:
TST (no tests have been done)
FIN (all tests done and valid, has valid tracking URL)
URL (all tests done and valid, but tracking URL missing/bad)
GPS (some test messages sent, but they are missing GPS coordinates)
Note that if the first Inreach message is sent too soon after turning on the device (before a proper GPS lock), then the first may have no GPS coordinates but the others do. This could be considered a valid test, or we just make them send that message again.
Note that SPOT keeps changing the GPS coordinate format, so may require code updates each year!