The [ftp] values describe your credentials for the InfoEx automated
weather station FTP server.
-`[wxsite]`
+`[nrcs]`
`station_triplet = [The NRCS identifier for a particular SNOTEL site]`
`desired_data = [A comma-delimited list of NRCS elements you're interested in]`
-`location_uuid = [The UUID used by InfoEx to identify your automated Wx site]`
-`csv_filename = [Arbitrary name of the file that will be uploaded to InfoEx]`
-`[ftp]`
+`[infoex]`
`host = [InfoEx FTP host address]`
`uuid = [InfoEx-supplied UUID]`
`api_key = [InfoEx-supplied API Key]`
+`csv_filename = [Arbitrary name of the file that will be uploaded to InfoEx]`
+`location_uuid = [The UUID used by InfoEx to identify your automated Wx site]`
Finding Your WXSITE values
--------------------------
-[wxsite]
+[nrcs]
station_triplet = <NRCS Station ID>
desired_data = <Comma-separated list of NRCS elementCd values>
-location_uuid = <InfoEx-supplied Location UUID>
-csv_filename = <Name of file to upload to InfoEx FTP>
-[ftp]
+[infoex]
host = <InfoEx FTP host address>
uuid = <InfoEx-supplied UUID>
api_key = <InfoEx-supplied API Key>
+csv_filename = <Name of file to upload to InfoEx FTP>
+location_uuid = <InfoEx-supplied Location UUID>
try:
infoex = {
- 'host': config['ftp']['host'],
- 'uuid': config['ftp']['uuid'],
- 'api_key': config['ftp']['api_key'],
- 'location_uuid': config['wxsite']['location_uuid'],
+ 'host': config['infoex']['host'],
+ 'uuid': config['infoex']['uuid'],
+ 'api_key': config['infoex']['api_key'],
+ 'location_uuid': config['infoex']['location_uuid'],
'wx_data': {}, # placeholder key, values to come later
- 'csv_filename': config['wxsite']['csv_filename']
+ 'csv_filename': config['infoex']['csv_filename']
}
- station_triplet = config['wxsite']['station_triplet']
+ station_triplet = config['nrcs']['station_triplet']
try:
- desired_data = config['wxsite']['desired_data'].split(',')
+ desired_data = config['nrcs']['desired_data'].split(',')
except:
# desired_data malformed or missing, setting default
desired_data = [