Collecting data from devices via web API

Yes… Those are both good examples of logging to an external web service and the code of those SmartApps would be educational.

Makes me think, though, that external logging would be a useful overall service to abstract and encapsulate some day, probably as “service” Device instances of various types.