If you keep having issues with it, it could be your wiring/grounds are broken/not making good contact. Buy a switch at autozone($1.50) and some wire, and wire it directly. Put the switch somewhere on your dash. Turn it on every time you drive somewhere.
All for the grand total of 2 dollars.
Enjoy