cagos

Untitled

Jan 18th, 2023
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. ### Mealie ###
  2. # Today
  3. - platform: rest
  4. resource: http://192.168.1.142:9090/api/groups/mealplans
  5. name: mealie_mealplan_day0
  6. scan_interval: 100
  7. headers:
  8. Authorization: !secret mealie_api_token
  9. params:
  10. start: >
  11. {{ now().strftime('%Y-%m-%d') }}
  12. limit: >
  13. {{ now().strftime('%Y-%m-%d') }}
  14. json_attributes_path: "$.[0].recipe"
  15. json_attributes:
  16. - id
  17. - name
  18. - slug
  19. - image
  20. value_template: "{{ value_json.date }}"
  21.  
  22. # Tomorrow
  23. - platform: rest
  24. resource: http://192.168.1.142:9090/api/groups/mealplans
  25. name: mealie_mealplan_day1
  26. scan_interval: 100
  27. headers:
  28. Authorization: !secret mealie_api_token
  29. params:
  30. start: >
  31. {{ (now() + timedelta(days = 1)).strftime('%Y-%m-%d') }}
  32. limit: >
  33. {{ (now() + timedelta(days = 1)).strftime('%Y-%m-%d') }}
  34. json_attributes_path: "$.[0].recipe"
  35. json_attributes:
  36. - id
  37. - name
  38. - slug
  39. - image
  40. value_template: "{{ value_json.date }}"
  41.  
  42.  
Tags: Mealie
Advertisement
Add Comment
Please, Sign In to add comment