The cache time is now configurable by the user. If no cache time is set, the old default of half an hour is still used. Temperature formatting has been factored out into its own function.