Hello, and thank you for a wonderful package! I was wondering if you might have any thoughts about the best way to update an AWDevice with more recent data (i.e., refreshing itself from the API, perhaps based on a timer or in response to user input). I can see how to use the getLastMeasurement() method on WeatherPlatform for a given SWKDevice, but that will get me a SWKDeviceData object, and I'm less clear what to do with it from there. Looking at SWKDeviceData (or, rather, AWStationData, which is actually what comes back from the AW API) I don't see a lot of ways to access its data beyond the prettyprint statement, and I can't update my AWDevice object's lastData property.
So I feel like I'm missing something about how the API is intended to be used. Do you have any suggestions?
Hello, and thank you for a wonderful package! I was wondering if you might have any thoughts about the best way to update an
AWDevicewith more recent data (i.e., refreshing itself from the API, perhaps based on a timer or in response to user input). I can see how to use thegetLastMeasurement()method onWeatherPlatformfor a givenSWKDevice, but that will get me aSWKDeviceDataobject, and I'm less clear what to do with it from there. Looking atSWKDeviceData(or, rather,AWStationData, which is actually what comes back from the AW API) I don't see a lot of ways to access its data beyond the prettyprint statement, and I can't update myAWDeviceobject'slastDataproperty.So I feel like I'm missing something about how the API is intended to be used. Do you have any suggestions?