Skip to content
This repository has been archived by the owner on Jan 17, 2020. It is now read-only.

Commit

Permalink
FOGL-3612- 'key' KV pair removed from readings payload (#35)
Browse files Browse the repository at this point in the history
Signed-off-by: ashish-jabble <[email protected]>
  • Loading branch information
ashish-jabble authored Jan 14, 2020
1 parent 496f1c0 commit 421ee92
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions python/foglamp/plugins/south/envirophat/envirophat.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
""" Module for Enviro pHAT 'poll' type plugin """

import copy
import uuid
import logging

from foglamp.common import logger
Expand Down Expand Up @@ -155,7 +154,6 @@ def plugin_poll(handle):
data.append({
'asset': '{}{}'.format(asset_prefix, handle['rgbSensorName']['value']),
'timestamp': time_stamp,
'key': str(uuid.uuid4()),
'readings': {
"r": rgb[0],
"g": rgb[1],
Expand All @@ -167,7 +165,6 @@ def plugin_poll(handle):
data.append({
'asset': '{}{}'.format(asset_prefix, handle['magnetometerSensorName']['value']),
'timestamp': time_stamp,
'key': str(uuid.uuid4()),
'readings': {
"x": magnetometer[0],
"y": magnetometer[1],
Expand All @@ -179,7 +176,6 @@ def plugin_poll(handle):
data.append({
'asset': '{}{}'.format(asset_prefix, handle['accelerometerSensorName']['value']),
'timestamp': time_stamp,
'key': str(uuid.uuid4()),
'readings': {
"x": accelerometer[0],
"y": accelerometer[1],
Expand All @@ -193,7 +189,6 @@ def plugin_poll(handle):
data.append({
'asset': '{}{}'.format(asset_prefix, handle['weatherSensorName']['value']),
'timestamp': time_stamp,
'key': str(uuid.uuid4()),
'readings': {
"altitude": altitude,
"temperature": temperature,
Expand Down

0 comments on commit 421ee92

Please sign in to comment.