Skip to content

Commit

Permalink
Bugfix for First Refresh from MyAcurite
Browse files Browse the repository at this point in the history
  • Loading branch information
leoherzog authored May 18, 2023
1 parent b6e0672 commit 85ad970
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code.gs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const windGuruStationPassword = 'xxxxxxxxxxxxxxxx';
*/

let version = 'v2.1.0';
let version = 'v2.1.1';

function Schedule() {
ScriptApp.getProjectTriggers().forEach(trigger => ScriptApp.deleteTrigger(trigger));
Expand Down Expand Up @@ -179,7 +179,7 @@ function refreshFromAcurite_() {
"password": acuritePassword
}

let token = UrlFetchApp.fetch('https://marapi.myacurite.com/users/login', {
token = UrlFetchApp.fetch('https://marapi.myacurite.com/users/login', {
"headers": headers,
"method": "post",
"payload": JSON.stringify(credentials)
Expand Down

0 comments on commit 85ad970

Please sign in to comment.