Updated weather update process with more explicit checks. Added ability to query weather via API