The infinitive phrase "to announce the day had begun" is functioning as an adverb in this sentence.
We can tell this because it is giving us more information about the verb. The infinitive phrase is telling us WHY the alarm went off. Therefore, it is telling us more about the action of the sentence.