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 2 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
40 changes: 35 additions & 5 deletions lib/payload.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@
"minimum": 0,
"maximum": 100
},
"ec": {
"type": "number",
"description": "Electrical conductivity (dS/m)",
"minimum": 0,
"maximum": 621
},
Copy link
Member

Choose a reason for hiding this comment

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

This is now unused in water so it can be reverted

"measurement": {
"type": "object",
"properties": {
Expand All @@ -73,9 +79,7 @@
},
"ec": {
"description": "Soil electrical conductivity (dS/m)",
"type": "number",
"minimum": 0,
"maximum": 621
"$ref": "#/definitions/ec"
},
"pH": {
"description": "Soil pH level",
Expand Down Expand Up @@ -127,8 +131,12 @@
"wind": {
"type": "object",
"properties": {
"speed": {
"description": "Wind speed (m/s)",
"averageSpeed": {
"description": "Average wind speed (m/s)",
"$ref": "#/definitions/speed"
},
"gustSpeed": {
"description": "Gust wind speed (m/s)",
"$ref": "#/definitions/speed"
},
"direction": {
Expand All @@ -137,6 +145,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