I currently have this python script running
# Setup Firebase Listner
# Retrieve the data from Firebase and do the analysis
# Append the data to Firebase
from firebase_streaming import Firebase
# Firebase object
fb = Firebase('https:***************.firebaseio.com/')
# Callback function to Analyze the data for a Faulty Motor
def performAnalysis_FaultyMotor(x):
print(x)
def performAnalysis_motor(x):
print(x)
# Declaring Custom callback definitions for the faulty and motor data
custom_callback_faultyMotor = fb.child("accelerometerData/faultyMotorData").listener(performAnalysis_FaultyMotor)
custom_callback_motor = fb.child("accelerometerData/motorData").listener(performAnalysis_motor)
# Start and stop the stream using the following
custom_callback_faultyMotor.start()
custom_callback_motor.start()
which is returning me the entire data under the respective node that I have my listener attached to.
But I require specifically only the newly added child under that node.
Any idea how could I achieve that???