Skip to content
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
Copy Markdown
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
Copy Markdown
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": {
Comment on lines 133 to 138

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this is a good change. I think it is indeed useful domain knowledge to differentiate between average and gust wind speeds.

Can you turn it into averageSpeed though?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

OK, this is done.

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
Copy Markdown
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