Hello,
I have a simple setup where a Google Apps script reads the data from the Weatherlink API to a Google Sheets spreadsheet using the IMPORTDATA function. I.e. the sheet looks like this:
A1
https://api.weatherlink.com/v1/NoaaExt.xml?user=DID&pass=ownerpass&apiToken=TokenA2 =importdata(A1)
This results in the WL XML "current conditions" data page being downloaded into the spreadsheet below the above mentioned rows. The data fields are then parsed to get nicely formatted data in a separate tab in the worksheet. The script for this repeats every 10 minutes.
At first sight this works OK, but I noticed a major problem: The XML page is sometimes randomly missing one or several text rows!
This results in erroneous data fields, as the data parsing functions copy the data from fixed row locations, and when there are rows missing in the XML they read the wrong data.
Anyone who has experienced this and can assist? I previously had the script simply read the old Weatherlink.com summary data page, but as the new page is password protected it's much more difficult, therefore the API route.