Script that writes device data to a textfile for POST to ping server