Your virtual pin handler would look like this:
BLYNK_WRITE(V0)
{
if (param.asInt() ==1)
{
// your code in here to store current XYZ value
}
else
{
// your code in here to clear XYZ value
}
}
and you’d use a BlynkTimer to call a function which reads your accelerometer on a regular basis, compares the current value to the stored value, and alerts you if there is a significant difference in the readings.
Presumably you also want to disable alerts when you’re riding the bike, so you could use a flag variable to achieve that…
Pete.