Skip to content

Commit

Permalink
Add Safety Check for Wunderground Infinite Loop
Browse files Browse the repository at this point in the history
  • Loading branch information
leoherzog committed Oct 8, 2024
1 parent 5016f55 commit 2bc9c12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code.gs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const cwopValidationCode = null;
let version = 'v2.8.0';

function Schedule() {
if (updateWunderground && datasource === 'ibm') throw 'Error: You are currently set to pull data from Wunderground and also send data to Wunderground. Please disable one or the other to avoid duplicate data.';
ScriptApp.getProjectTriggers().forEach(trigger => ScriptApp.deleteTrigger(trigger));
switch (datasource) {
case 'ibm':
Expand Down

0 comments on commit 2bc9c12

Please sign in to comment.