diff --git a/rattail_tempmon/emails.py b/rattail_tempmon/emails.py index 11256c8..6a18dca 100644 --- a/rattail_tempmon/emails.py +++ b/rattail_tempmon/emails.py @@ -40,17 +40,22 @@ class TempmonBase(object): def sample_data(self, request): now = localtime(self.config) - client = model.TempmonClient(config_key='testclient', hostname='testclient') - probe = model.TempmonProbe(config_key='testprobe', description="Test Probe") + client = tempmon.Client(config_key='testclient', hostname='testclient') + probe = tempmon.Probe(config_key='testprobe', description="Test Probe", + good_max_timeout=45) client.probes.append(probe) return { 'client': client, 'probe': probe, + 'probe_url': '#', 'status': self.enum.TEMPMON_PROBE_STATUS[self.enum.TEMPMON_PROBE_STATUS_ERROR], - 'reading': model.TempmonReading(), + 'reading': tempmon.Reading(), 'taken': now, 'now': now, - 'probe_url': '#', + 'status_since': now.strftime('%I:%M %p'), + 'status_since_delta': 'now', + 'recent_minutes': 90, + 'recent_readings': [], }