Skip to content

Commit

Permalink
Add pressure Parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
leoherzog committed Jun 18, 2024
1 parent 06f7449 commit 6be83cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions send-cwop-rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ function buildPacket(observation) {
if (observation.searchParams.get('dailyrainin')) rainsincemidnight = Number(observation.searchParams.get('dailyrainin'));
if (observation.searchParams.get('last24hrrainin')) rainlast24hr = Number(observation.searchParams.get('last24hrrainin'));
if (observation.searchParams.get('baromin')) pressure = Number(observation.searchParams.get('baromin'));
if (observation.searchParams.get('pressure')) pressure = Number(observation.searchParams.get('pressure'));
if (observation.searchParams.get('humidity')) humidity = Number(observation.searchParams.get('humidity'));
if (observation.searchParams.get('solarradiation')) solarradiation = Number(observation.searchParams.get('solarradiation'));
} else {
Expand All @@ -133,6 +134,7 @@ function buildPacket(observation) {
if (observation.dailyrainin) rainsincemidnight = Number(observation.dailyrainin);
if (observation.last24hrrainin) rainlast24hr = Number(observation.last24hrrainin);
if (observation.baromin) pressure = Number(observation.baromin);
if (observation.pressure) pressure = Number(observation.pressure);
if (observation.humidity) humidity = Number(observation.humidity);
if (observation.solarradiation) solarradiation = Number(observation.solarradiation);
}
Expand Down

0 comments on commit 6be83cf

Please sign in to comment.