forked from aWhereAPI/API-Code-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestvars.py
More file actions
21 lines (17 loc) · 867 Bytes
/
Copy pathtestvars.py
File metadata and controls
21 lines (17 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import datetime
import json
# The below dict is the valid jason required for the body in creation.
# Constraints and other info at
# http://developer.awhere.com/api/reference/fields/create-field
test_field_json_load = json.dumps({
"id": 'mynewfield' ,
"name": 'My New Field',
"farmId": 'F-1234-14-B',
"acres": 120,
"centerPoint":{
"latitude": 39.8282,
"longitude": -98.5795,
}
})
forecast_start = str(datetime.date.today() + datetime.timedelta(days = -8))
forecast_end = str(datetime.date.today() + datetime.timedelta(days = -1))