Groundhog Day: origin of idioms

Groundhog idiom
Groundhog tests the weather

From Ricky Gervais’ production of “Afterlife” (Netflix) to a number of recent articles in the press, the term groundhog day, seems to be popping up everywhere. Not sure what it meant, I set out to investigate.