Start a new topic

Pomodoro app settings

Hi


I am doing some experimenting with the API to control the Pomodoro timer via Alfred on the mac, I called the endpoint to get the information about the app


curl "http://192.168.115.96:8080/api/v2/device/apps/com.lametric.pomodoro" -u 'dev:api_key'

it returns 

{
  "actions": {
    "pomodoro.pause": {},
    "pomodoro.reset": {},
    "pomodoro.start": {}
  },
  "package": "com.lametric.pomodoro",
  "title": "Pomodoro Timer",
  "triggers": {},
  "vendor": "LaMetric",
  "version": "1.0.2",
  "version_code": "3",
  "widgets": {
    "0a1f3824ad5d436fa7bee2b02397bdc7": {
      "index": 6,
      "package": "com.lametric.pomodoro",
      "settings": {
        "_title": "Pomodoro Timer"
      }
    }
  }
}

But I can't find anywhere the duration, short break, long break, internal, or show seconds settings are specified. Is there another endpoint I am missing?


Thanks

1 Comment

Hi!


Thanks for contacting us. Unfortunately, there is no way to get app settings at this time. It is only possible to interact with app via actions in order to start the timer, pause it or reset it.Please refer to the documentation to learn more at https://lametric-documentation.readthedocs.io/en/latest/reference-docs/device-apps.html#api-v2-device-apps-package-widgets-id-actions.


Let us know if you have any further questions.


Best, 

LaMetric Support Team

  

Login or Signup to post a comment