15352Re: How can I test the current speed in a script?
- Mar 14, 2013Thank you Scott, this would be nice to have.
As a workaround, I wrote a script to override the parameters set by the
profile, for the first n minutes after the transition, then revert to
the same parameters as the profile has.
This seems to work.
--- In firstname.lastname@example.org, Scott Miller <scott@...> wrote:
> Speed isn't presently one of the things you can check from a script.
> can add that to my to-do list for the next release.
> On 3/14/2013 10:52 AM, francois.rogez wrote:
> > I am looking for advice/examples on detecting condition based on a
> > threshold in a script.
> > My current setup uses a speed threshold to transition between the 2
> > profiles, but I would like this transition to only happen if the
> > is below the threshold for a given number of minutes. I think a
> > is needed.
> > The wiki has some script examples, and the "Comparing Analog
> > is close to what is needed; I just need to replace the 'Exec "analog
> > in"' statement with something that will return the current speed.
> > Any ideas?
> > Thanks
> > Francois
- << Previous post in topic Next post in topic >>