def generatepatternforecast(target, size): r = requests.post(settings.forecastEndpoint, json={ "command": "GlobalForecast", "target": target, "forecastSize": size }) print(r.status_code) time.sleep(1) dbaccess.printbill(target)
def generatesingleforecast(account, target, size): r = requests.post(settings.forecastEndpoint, json={ "command": "Forecast", "account": account, "target": target, "forecastSize": size }) print(r.status_code) time.sleep(1) dbaccess.printbill(target)