utilities/tp-link-to-influxdb#3: Timestamp isn't included in points



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: v0.23
Created: 06-Sep-22 13:46



Description

Commit e14c63e8 add the script's start time to the stats dict constructed for each smart plug.

This was passed through to sendToInflux() but never actually used - the points aren't giving an explicit timestamp, so the time that's applied will be the time it's written into the DB (which isn't great if there are delays).

Need to update the point creation to add the timestamp.



Toggle State Changes

Activity


assigned to @btasker

verified

mentioned in commit github-mirror/tplink_to_influxdb@e1273c6f8af728f2178b69e646c2a1f3fcc28a3b

Commit: github-mirror/tplink_to_influxdb@e1273c6f8af728f2178b69e646c2a1f3fcc28a3b 
Author: B Tasker                            
                            
Date: 2022-09-06T14:48:14.000+01:00 

Message

Pass timestamp through to InfluxDB (utilities/tp-link-to-influxdb#3)

+2 -2 (4 lines changed)