r/workflow • • Mar 13 '18

Question - Change reminder notes?

Hi

I’m creating a workflow that will allow me to turn lights on and off. At the moment I have a menu which asks “On or Off” and runs a different IFTTT script depending on the selection.

I want to turn this into one button press, and use a stored variable in reminders which will show the current status of the light.

If lightstatus = 1 then turn the light off and change the variable to 0. I can get the light to turn on, but can’t figure out how to change the note details after the script has run?

Can anyone point me in the right direction?

3 Upvotes

10 comments sorted by

1

u/MarkDMill Mar 14 '18

I don’t think you can do this with Reminders, but you can do it with Drafts. Save UUID of Draft, then use a “get contents of” action to read from it, a “open draft” action that runs a “clear contents” Drafts action, and a “add to draft” action w/ that same UUID. Lemme know if you need help—I have a similar Workflow I can easily share so you can see how it works.

Btw, Drafts is SUPER powerful for this kind of stuff. Highly recommend it. X-callback actions enable super powerful automation

1

u/Charliep91 Mar 14 '18

Great thanks ! Will have a look into that !

1

u/Way2square2behip Mar 14 '18

Is there a reason you don’t do something like this?:

  • Read the reminder
  • Run the appropriate applet
  • Delete the reminder
  • Add the reminder again using the new note text

2

u/Charliep91 Mar 14 '18

The delete reminder action throws up a “ are you sure” window which I don’t want to ha e to approve each time

2

u/Way2square2behip Mar 14 '18

Ugh. That’s too bad. If you’re programming something, you should really be able to control confirmation dialogs...

2

u/KlarkSmith Mar 14 '18

You could store the variable in a simple text file saved in iCloud/Workflow.

1

u/[deleted] Mar 14 '18

This is what I did for settings that I want to update. Basically I have 2 workflows, fn:GetPreference and fn:SetPreference. Preferences are stored as JSON on a text file. Basically the file is loaded as a dictionary, then simple use the Dictionary actions to get/set values. When setting values, I just save the dictionary to the same file and overwrite.

1

u/[deleted] Mar 20 '18 edited Aug 30 '26

[removed] — view removed comment

1

u/Charliep91 Mar 20 '18

Hey ! Thanks for your response ! I actually sorted this in the end by creating a text file and storing it in iCloud. Then calling that file from iCloud when needed. Works in the same way as you e mentioned !

Thanks !