Skip to content
Open
Changes from 1 commit
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
44 changes: 39 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)",
"avgSpeed": {
"description": "Average wind speed (m/s)",
"$ref": "#/definitions/speed"
},
"gustSpeed": {
"description": "Gust wind speed (m/s)",
"$ref": "#/definitions/speed"
},
"direction": {
Comment on lines 133 to 138
Copy link
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
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 +145,32 @@
}
},
"additionalProperties": false
},
"water": {
"type": "object",
"properties": {
"depth": {
"description": "Depth of water measurement (cm)",
"$ref": "#/definitions/depth"
},
"temperature": {
"description": "Water temperature (°C)",
"$ref": "#/definitions/temperature"
},
"ec": {
"description": "Water electrical conductivity (dS/m)",
"$ref": "#/definitions/ec"
},
"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