A seaside railway will celebrate the 200th anniversary of the invention of railways with a “horn salute” on New Year’s Day.