Code Monkey home page Code Monkey logo

Comments (4)

igoramadas avatar igoramadas commented on August 14, 2024

Could you please describe your use case? I checked the API and it's possible to change the activity type, but it would be great to have a concrete example before I start working on it.

from core.

IOneRu avatar IOneRu commented on August 14, 2024

I use the service to automate the description of the workout.
For example if I add "Long" in the title, servise change:

  • description to " training target: Long run, Running. Warmup: 10 minutes in zones 1-2. Work: * minutes in zone 2. Cooldown: 5 minutes in zones 1-2. by strautomator.com --- #timemap".
    the rule:
    Sport type is Run
    Name has Long
    Append to activity description: training target: Long run, Running. Warmup: 10 minutes in zones 1-2. Work: * minutes in zone 2. Cooldown: 5 minutes in zones 1-2. by strautomator.com --- #timemap

And I want to have options to change the Run Type to Long Run and shoes to my pair for long runs.
thanks.

from core.

igoramadas avatar igoramadas commented on August 14, 2024

There's no "Long Run" on the list of activity types. Only "Run".

Strautomator does not act on updated activities, only newly created ones. So if you manually change the title or description of an activity, your automations will not be triggered.

I suppose that if it's a long run, it's taking more than X hours to complete, right? So you can create the automation based on moving time. For instance, if it takes longer than 2 hours and 15 minutes:

--
If Activity type - is - Run
If Moving time - is more than - 02:15

Set Activity name:
Long Run

Set Activity description:
Training target: Long run, Running. Warmup: 10 minutes in zones 1-2. Work: * minutes in zone 2. Cooldown: 5 minutes in zones 1-2. #timemap

Please let me know if that works for you.

from core.

IOneRu avatar IOneRu commented on August 14, 2024

work's good, thanks.

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.