Open majesticio opened 7 months ago
I got it working and did some cleanup but there is still work to do on the parameters + units.
A few notes that I wanted to share
You were catching errors in both the fetchStations
and the fetchMeasurements
methods and then not rethrowing them. Each of those methods must run successfully in order for the how adapter to work. Given that and based how you designed this I would have expected either
Also the repetitive use of find
can be fixed by objectifying the array and keying it on Site_Id.
Make sure that all the units are units we allow and if they are not we will need to fix them.
This needs quite a bit more work in the documentation doc before proceeding with development. Once documentation is more thorough we can proceed
I corrected the use of the timezone ('Australia/Sydney'
). The source data date times are all in local time. I made note of it in our documents for future reference
This is a draft. it appears to be returning valid measurements but is not finishing: