Skip to content
Browse files

Testing command to refresh google calendar token

  • Loading branch information
thejeffreystone committed Nov 28, 2020
1 parent c4b5d6c commit 70d1061cd005f60277412bae8e5b188dc530dfec
Showing with 1 addition and 0 deletions.
  1. +1 −0 config/configuration.yaml
@@ -294,3 +294,4 @@ shell_command:
grocy_consume_item: "curl -k -X POST https://{{server_ip}}:9192/api/stock/products/{{product_id}}/consume -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'GROCY-API-KEY: {{grocy_key}}' -H 'cache-control: no-cache' -d '{ \"amount\": {{amount}}, \"transaction_type\": \"consume\", \"spoiled\": false }'"
grocy_chore_complete: "curl -k -X POST https://{{server_ip}}:9192/api/chores/{{chore_id}}/execute -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'GROCY-API-KEY: {{grocy_key}}' -H 'cache-control: no-cache' -d '{ \"tracked_time\": {{timestamp}}, \"done_by\": {{user}} }'"
grocy_add_item: "curl -k -X POST https://{{server_ip}}:9192/api/stock/products/{{product_id}}/add -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'GROCY-API-KEY: {{grocy_key}}' -H 'cache-control: no-cache' -d '{ \"amount\": {{amount}}, \"best_before_date\": {{best_before_date}}, \"transaction_type\": \"purchase\", \"price\": {{price}} }'"
google_token: sed -i -e 's/2client.client"}2client.client"}/2client.client"}/g' /config/.google.token

0 comments on commit 70d1061

Please sign in to comment.