Skip to content

Commit

Permalink
correct steady threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
oyve committed Nov 30, 2020
1 parent f4d4551 commit 0efd4a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "barometer-trend",
"version": "2.1.1",
"version": "2.1.2",
"description": "Calculate the trend of a barometer",
"main": "index.js",
"directories": {
Expand Down
8 changes: 4 additions & 4 deletions trend.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ const TREND = {
};

const THRESHOLDS_RATIO = [
{ pascal: 0.56, trend: TREND.STEADY }, //up to 100 Pa per 3 hours
{ pascal: 0.89, trend: TREND.SLOWLY }, //160 Pa per 3 hours
{ pascal: 2, trend: TREND.CHANGING }, //360 Pa per 3 hours
{ pascal: 3.33, trend: TREND.QUICKLY }, //600 Pa per 3 hours
{ pascal: 0.056, trend: TREND.STEADY }, //up to 10 Pa per 3 hours
{ pascal: 0.89, trend: TREND.SLOWLY }, //10-160 Pa per 3 hours
{ pascal: 2, trend: TREND.CHANGING }, //160-360 Pa per 3 hours
{ pascal: 3.33, trend: TREND.QUICKLY }, //360-600 Pa per 3 hours
{ pascal: 9999, trend: TREND.RAPIDLY }
];

Expand Down

0 comments on commit 0efd4a5

Please sign in to comment.