Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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)