Skip to content

Commit

Permalink
Upgrades request to latest version (issue #12)
Browse files Browse the repository at this point in the history
  • Loading branch information
itemir committed Dec 9, 2024
1 parent 8a30996 commit ee32927
Show file tree
Hide file tree
Showing 3 changed files with 262 additions and 200 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,12 @@ module.exports = function(app) {
return Math.round(ms * 1.94384 * 10) / 10;
}

var statusMessage = '';
var statusMessage;
if (lastSuccessfulUpdate) {
let since = timeSince(lastSuccessfulUpdate);
statusMessage += `Successful submission ${since} ago. `;
statusMessage = `Successful submission ${since} ago. `;
} else {
statusMessage = `No data has been submitted yet. `;
}
if ((windSpeed.length > 0) && (windGust != null)) {
let currentWindSpeed = windSpeed[windSpeed.length-1];
Expand Down
Loading

0 comments on commit ee32927

Please sign in to comment.