Weather plugin core logic added

Code partially translated from PHP….more work to be done