misc/watchy-experimentation#6: Add a device specific tag to InfluxDB output



Issue Information

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

Created: 16-Jun-23 08:10



Description

I currently have 2 Watchy's writing stats in - the one that turned up broken (now being used as a dev environment) and my actual watch.

I did previously add a device tag, but the value was hardcoded - so one mistake and one watch overwrites the data of another.

If we can, it'd be better to grab the ESP32's serial number or MAC and push that into a tag to differentiate between the two sources.



Toggle State Changes

Activity


assigned to @btasker

This Stack exchange post seems to imply that the MAC can be retrieved with ESP.getEfuseMac().

Will give that a spin

verified

mentioned in commit sysconfigs/watchy-code@8011c134e8124011aec5c21c2b1c766d17ca047d

Commit: sysconfigs/watchy-code@8011c134e8124011aec5c21c2b1c766d17ca047d 
Author: B Tasker                            
                            
Date: 2023-06-16T12:46:04.000+01:00 

Message

Add a device identifier based on the ESP32's MAC (misc/watchy-experimentation#6)

+6 -0 (6 lines changed)

This has worked:

Screenshot_20230616_124533