OMG, you don't suppose this boat was built by British Leyland Motors in the UK with all their crap dashboard gauges. Oil pressure was a tube to a Bourdon tube pressure gauge in the dash. Speed and RPM were high speed rotating spring wire within cables which led to the dash (think engine stop cable.) There was also temperature readout but it was not electrical. It was as if they had never heard of electricity. Hopefully not.That line that Ralph asked about looks an awful lot like a sensor line for a manual oil pressure oil pressure (non electric).
If wobbly is the case, I'd suggest removing the box and consider any "T" joints be done with solid piping (1/8" NPT) or other small but solid assembled piping.As its a switch, i am assuming the PO didn't like not having a guage and added the box as an upgrade that later failed catastrophically (note the wobbly reconstructed side)
If you can supply answers to questions by others along with an overwhelming number of pictures dealing with these areas, this would go a long way to solving this mystery.
Just remember, never in the history of SBO has anyone ever said "Hey, ya got too many pictures." Never happened.