Unfortunately, the activity detection does not work The topic concerns the multimedia station in the car which is connected to a permanent power supply. Can you help me create such a macro? I've done some simple macros, but I can't handle it.I don't recommend trying to do this. It's possible to poll the current speed value using magic text set on a variable and then check the value, but this will cause considerable battery drain.
I would suggest using the activity recognition trigger to determine when you are in a vehicle. This won't match exactly what you are asking but may be adequate and much better for the battery life.
it's OK?Something like this:
T: Regular interval (5 seconds or whatever you want)
A: Set variable speed_string = {last_loc_speed_kmh}
A: Set variable speed_int = {strval=speed_string}
A: If (speed_int > 20)
DO WHATEVER YOU WANT
A: Endif
Unfortunately I just noticed that the speed magic text only appears for string variables, hence the shuffling from string to int variable above. I will fix in the next update to ensure they appear for numerical variables so they can be set directly.
Actually you should be able to set directly into the integer (It just doesn't appear in the list).
So just do the following:
Set variable speed_int = {last_loc_speed_kmh}
is there supposed to be zero here?Looks ok to me
I checked it in the car while driving and unfortunately it does not work.Well if you are not moving then it should be zero
Force location update action ?Sorry I overlooked the detail that you need to be using something which is constantly updating the devices location such as Google maps.
I just got to it . Google maps are too heavy on the device. Can't there be an easier way?Sorry I overlooked the detail that you need to be using something which is constantly updating the devices location such as Google maps.
I already have this app. Thank you. It seems to work now. But I don't know how to make the application run only once. And after restarting the device, the macro worked again.Try this, see attachment: you need this app as well: https://play.google.com/store/apps/details?id=ch.rmy.android.statusbar_tacho
I don't understand fully but there's a constraint you can add called invoked/not invoked.I already have this app. Thank you. It seems to work now. But I don't know how to make the application run only once. And after restarting the device, the macro worked again.
1. The device starts upI don't understand fully but there's a constraint you can add called invoked/not invoked.
Trigger: boot1. The device starts up
2. The macro is running and waiting for the speed to reach 20km/h
3. After reaching 20km/h, the application starts
4. Macro completed until device restarted