These are International maritime signals - the balls on a rope that are raised and lowered in sequence to send out messages.
One I think quite apt is the one warning of a wreck in the water
The Port of London Authority buildings at Greenwich still have these things on their roof to communicate with shipping