basic weather function added with synchronous connection