ShareShortcuts

Caffeine

First try a complicated shortcut here

Создать форк «Caffeine»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы автор оригинала получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
75K
Сохранено
1
Действия
30
Категория
Reference
Версия
1.0
Язык
EN

First try a complicated shortcut here. Basically I pulled all the caffeine information from here: https://www.caffeineinformer.com/the-caffeine-database I copied everything into a google sheets file and cleared out the columns I didn't want. After that that I published publicly as a .csv file. This list contains over 800 items and their respective caffeine in mg. Originally I was looking for an easier way to log caffeine through the shortcut app without having to remember all the amounts for the hundreds of drinks out there, so I figured I'd make a google sheet but it ended up turning out to be harder than I expected lol So basically: * Prompts a search through the database * creates a dictionary from the search * additional choice of custom amount * you can choose an item or custom amount and it logs a health sample for caffeine * gives you a notification that a sample has been logged Any feedback would be greatly appreciated!

Что нового

Версия 1.0

First release

История версий
1.0 6 окт 2018 г.

First release

Что делает

Действий: 30
  1. Date
  2. Ask for Input
    Search for drink
  3. Set Variable
    Answer
  4. Text
  5. Set Variable
    Url
  6. URL
    …
  7. Get Contents of URL
  8. Match Text
  9. Combine Text
  10. Repeat with Each
  11. Replace Text
  12. Replace Text
  13. Get Dictionary from Input
  14. Set Variable
    Dictionary
  15. List
  16. Choose from List
  17. Get Text from Input
  18. Set Variable
    Item
  19. Get Variable
  20. If
  21. Ask for Input
    Please enter custom amount in mg
  22. If
  23. Get Variable
  24. Get Dictionary from Input
  25. Get Dictionary Value
  26. Get Variable
  27. Set Variable
    Caffeine
  28. Log Health Sample
  29. Show Notification
    Sample has been logged!
  30. Stop This Shortcut

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
10 окт 2018 г.
danielbahl

This is pretty awesome, thank you for sharing 😎

Реклама

Из блога

Обзоры и руководства о Caffeine

Вам также может понравиться

См. все
Реклама