Hi there!
I’m using influxdb since forever at home and I’m running into an issue for the first time now.
My phone is sending it’s location via tasker to my influxdb based on my location and activity.
The format looks like this:
time acc activity altitude bat bearing device latitude longitude speed
---- --- -------- -------- --- ------- ------ -------- --------- -----
1724406917064864677 5.28 1 125.5 61 353.8 bv9300 61.xxxxxxx 24.xxxxxxx 0.13
1724406923162652605 2.4 1 123.9 61 136.7 bv9300 61.xxxxxxx 24.xxxxxxx 0
1724406928419869161 2.4 1 112.06 61 bv9300 61.xxxxxxx 24.xxxxxxx 0
1724406934076331795 2.2 1 111.94 61 bv9300 61.xxxxxxx 24.xxxxxxx 0
1724406939315877567 2.2 1 111.94 61 bv9300 61.xxxxxxx 24.xxxxxxx 0
1724406944934750806 2.6 1 112.05 61 bv9300 61.xxxxxxx 24.xxxxxxx 0.02
1724406950150411841 2.5 1 123.9 61 342.1 bv9300 61.xxxxxxx 24.xxxxxxx 0
1724406955755602850 2.5 1 112.06 61 bv9300 61.xxxxxxx 24.xxxxxxx 0.01
1724406965616635671 2.98 1 112.14 61 27.4 bv9300 61.xxxxxxx 24.xxxxxxx 0.11
1724406972585129537 3.58 0 112.05 61 182.5 bv9300 61.xxxxxxx 24.xxxxxxx 0.16
1724406973121168124 3.32 0 112.05 61 174.2 bv9300 61.xxxxxxx 24.xxxxxxx 0.16
I know I can select all rows where activity = 1. What I would like to do is to select all rows where activity = 1 since the moment it changed to 1. Is that possible in one query?