Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split wind speed into avg & gust, added water measurements. #568

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion lib/payload.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@
"type": "object",
"properties": {
"speed": {
"description": "Wind speed (m/s)",
"description": "Instantaneous or average wind speed (m/s)",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer to avoid documenting/promoting the use of average here until we figure out a way to introduce grouping and stats.

Suggested change
"description": "Instantaneous or average wind speed (m/s)",
"description": "Wind speed (m/s)",

"$ref": "#/definitions/speed"
},
"gustSpeed": {
"description": "Maximum wind speed during the measurement interval (m/s)",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer not making assumptions on how the gust speed is calculated:

Suggested change
"description": "Maximum wind speed during the measurement interval (m/s)",
"description": "Gust wind speed (m/s)",

"$ref": "#/definitions/speed"
},
"direction": {
Expand All @@ -137,6 +141,28 @@
}
},
"additionalProperties": false
},
"water": {
"type": "object",
"properties": {
"depth": {
"description": "Depth of water measurement (cm)",
"$ref": "#/definitions/depth"
},
"temperature": {
"description": "Water temperature (°C)",
"$ref": "#/definitions/temperature"
},
"pH": {
"description": "Water pH level",
"$ref": "#/definitions/pH"
},
"salinity": {
"description": "Salt (mg) per litre (ppm)",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're following en-US

Suggested change
"description": "Salt (mg) per litre (ppm)",
"description": "Salt (mg) per liter (ppm)",

"$ref": "#/definitions/concentration"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down