Home › Forums › Mayfly Data Logger › Parameter Threshold Notifications › Reply To: Parameter Threshold Notifications
Thanks for ulmo reference – I can sort of see something there, but its got a lot of layers and I can see it understands the response from a http://data.wikiwatershed.org/wofpy/rest/1_1/GetValues?
of the form
<timeSeriesResponse xmlns=”http://www.cuahsi.org/waterML/1.1/” xmlns:ns0=”http://www.cuahsi.org/his/1.1/ws/”>
Well in the spirit of try many things, be prepared to fail, I’m putting aside trying to understand the namespaces built in here defined by
xmlns=”http://www.cuahsi.org/waterML/1.1/” xmlns:ns0=”http://www.cuahsi.org/his/1.1/ws/”
So just an FYI if there are an XML gurus, I’m trying to retrieve the simple value, and whenever I try to search down using xml.etree.ElementTree I can’t null out the effects of xmlns and xmlns:ns0.
A sensor value is encoded as “timeSeries” and shows
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
--->dump node <ns0:timeSeries xmlns:ns0="http://www.cuahsi.org/waterML/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ns0:sourceInfo xsi:type="SiteInfoType"> <ns0:siteName>TU-RC-01 LDSR PitTag Monitor</ns0:siteName> <ns0:siteCode network="envirodiy" siteID="558">TU-RC-01</ns0:siteCode> <ns0:geoLocation> <ns0:geogLocation srs="EPSG:4236" xsi:type="LatLonPointType"> <ns0:latitude>38.40731</ns0:latitude> <ns0:longitude>-122.81813</ns0:longitude> </ns0:geogLocation> </ns0:geoLocation> </ns0:sourceInfo> <ns0:variable> <ns0:variableCode default="true" variableID="250" vocabulary="envirodiy">EnviroDIY_Mayfly_SampleNum</ns0:variableCode> <ns0:variableName>Sequence number</ns0:variableName> <ns0:variableDescription>The sample number returned by ModularSensors</ns0:variableDescription> <ns0:valueType>Instrument deployment</ns0:valueType> <ns0:dataType>Average</ns0:dataType> <ns0:generalCategory>Instrumentation</ns0:generalCategory> <ns0:sampleMedium>Surface water</ns0:sampleMedium> <ns0:unit unitID="409"> <ns0:unitName>Count</ns0:unitName> <ns0:unitType>Count</ns0:unitType> <ns0:unitAbbreviation>Count</ns0:unitAbbreviation> <ns0:unitCode>409</ns0:unitCode> </ns0:unit> <ns0:noDataValue>-9999.0000000000</ns0:noDataValue> <ns0:timeScale /> </ns0:variable> <ns0:values> <ns0:value censorCode="nc" dateTime="2019-11-21T15:44:02" dateTimeUTC="2019-11-21T23:44:02" methodCode="2" qualityControlLevelCode="1" timeOffset="-08:00">173.0</ns0:value> <ns0:qualityControlLevel qualityControlLevelID="1"> <ns0:qualityControlLevelCode>1</ns0:qualityControlLevelCode> <ns0:definition>Raw Data</ns0:definition> </ns0:qualityControlLevel> <ns0:method methodID="2"> <ns0:methodCode>2</ns0:methodCode> <ns0:methodLink /> </ns0:method> <ns0:censorCode> <ns0:censorCode>nc</ns0:censorCode> <ns0:censorCodeDescription>nc</ns0:censorCodeDescription> </ns0:censorCode> </ns0:values> </ns0:timeSeries> |