Made changes to discard data from the solar power site that is too old. The date and time calculations work, but I have not yet tried with the REST API and the postgres database.