CriusDev
CriusDev copied to clipboard
Suggested enhancements: Timestamp + dump to CSV
Would be good to create a timestamp to each record to record data freshness. As for example systemcostindex is only cached hourly, to the hour is sufficient.
Along lines of:
var timestamp = ("" + Utilities.formatDate(new Date(), "GMT", "yyyy-MM-dd:hh:")+ "00Z");
Secondly, would also be good to have dump to CSV option on each update, will allow history to be captured for analytics. Naming could be "yyyy-mm-dd hh00 systemcostindex.csv" etc.
@K162space has been working on some cron utilities to save off CREST data to a database. The js utility isn't going to be well suited for that change. I will put it on the todo list