Update time script to allow api url customisation

The url for the WWO api depends on which plan you have, paid vs free. The url can now be set using env variables.