Local Weather: How to udpate weather every hour

I am confused on how to update the weather obtained through the api every hour. Here is the codepen: https://codepen.io/Ag_Yog/pen/wqgzNE. I wrote the following code in the attempt to update the code within my getLocation() function:
setTimeout(getLocation, 1800000);

Thanks for any help