diff --git a/bmsapp/periodic_scripts/ecobee.py b/bmsapp/periodic_scripts/ecobee.py index 0ad554097df9e8e3003ea35c8cff50ef0e36a969..d2c53d24c42575942ab7a5ccb159f5eb23bb95d8 100644 --- a/bmsapp/periodic_scripts/ecobee.py +++ b/bmsapp/periodic_scripts/ecobee.py @@ -57,7 +57,7 @@ class EcobeeDataCollector: ---------- At the time of the first run of this script, there must be a Access token and a Refresh token present in the script parameters. These are manually copied into the script parameters - from the results of the authorization process accessed at the "ecobee_auth" URL. For + from the results of the authorization process accessed at the "ecobee-auth" URL. For subsequent runs of the script, the script results from the prior run will provide the necessary access and refresh tokens. These tokens may have been refreshed in the prior run of the script, so the original tokens will be invalid. @@ -78,7 +78,7 @@ class EcobeeDataCollector: # There must be access and refresh tokens present and 32 characters long. if not type(access_token) in (str, unicode) or not type(refresh_token) in (str, unicode) or \ len(access_token)!=32 or len(refresh_token)!=32: - raise ValueError('The Access or Refresh token is not present or invalid. Reauthorize the BMON application with Ecobee at the "ecobee_auth" URL, and enter the new Access and Refresh token in the Script Parameters input box.') + raise ValueError('The Access or Refresh token is not present or invalid. Reauthorize the BMON application with Ecobee at the "ecobee-auth" URL, and enter the new Access and Refresh token in the Script Parameters input box.') if type(api_key)!=str or len(api_key)!=32: raise ValueError('API Key is not present or valid. It should be entered in the Django Settings file.') diff --git a/bmsapp/templates/bmsapp/ecobee_auth.html b/bmsapp/templates/bmsapp/ecobee_authorization.html similarity index 100% rename from bmsapp/templates/bmsapp/ecobee_auth.html rename to bmsapp/templates/bmsapp/ecobee_authorization.html diff --git a/bmsapp/views.py b/bmsapp/views.py index fd288ab79642b953c2266e5903e37a2a225dd5c2..ea2257547697b2a1c85dda059dd7de976179db72 100644 --- a/bmsapp/views.py +++ b/bmsapp/views.py @@ -367,7 +367,7 @@ def ecobee_auth(request): # Get a PIN and auth code results = periodic_scripts.ecobee.get_pin() ctx.update(results) - return render(request, 'bmsapp/ecobee_auth.html', ctx) + return render(request, 'bmsapp/ecobee_authorization.html', ctx) elif request.method == 'POST': req = request.POST.dict()