Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for ohmlet- / project-configured reminders #20

Open
jshslsky opened this issue Jul 16, 2014 · 0 comments
Open

add support for ohmlet- / project-configured reminders #20

jshslsky opened this issue Jul 16, 2014 · 0 comments
Labels
Milestone

Comments

@jshslsky
Copy link

One of the most recent features we added to the Android app was support for reminders that are configured within ohmlets.

Reminders are a top-level key in the ohmlet JSON object. Here is an example configuration for both time and location reminders.

"reminders" : [
    {
        "surveys" : [
            "17e691d9-204a-4a44-9786-dbd3fbc34dec"
        ],
        "reminder_id" : "e9ff9350-01fa-11e4-9191-0800200c9a66",
        "type" : "TimeTrigger",
        "description" : {
            "time" : "11:11",
            "repeat" : [
                "Sunday",
                "Monday",
                "Tuesday",
                "Wednesday",
                "Thursday",
                "Friday",
                "Saturday"
            ]
        }
    },
    {
        "surveys" : [
            "17e691d9-204a-4a44-9786-dbd3fbc34dec"
        ],
        "reminder_id" : "1a0d091a-1274-4dad-ae0e-cb0989bc1a33",
        "type" : "TimeTrigger",
        "description" : {
            "time" : "14:26",
            "repeat" : [
                "Sunday",
                "Monday",
                "Tuesday",
                "Wednesday",
                "Thursday",
                "Friday",
                "Saturday"
            ]
        }
    },
    {
        "surveys" : [
            "2dc79cd7-42fe-4b2b-8096-a60624fa9b28",
            "edef8ce2-e8cd-48f6-9142-5af675fee299"
        ],
        "reminder_id" : "63c2fd60-0167-11e4-9191-0800200c9a66",
        "type" : "TimeTrigger",
        "description" : {
            "time" : "15:00",
            "repeat" : [
                "Sunday",
                "Monday",
                "Tuesday",
                "Wednesday",
                "Thursday",
                "Friday",
                "Saturday"
            ]
        }
    },
    {
        "surveys" : [
            "b68d211b-436a-4daa-a0cb-c26f51b9b2ae"
        ],
        "reminder_id" : "8b741f60-0167-11e4-9191-0800200c9a66",
        "type" : "TimeTrigger",
        "description" : {
            "time" : "15:30",
            "repeat" : [
                "Sunday",
                "Monday",
                "Tuesday",
                "Wednesday",
                "Thursday",
                "Friday",
                "Saturday"
            ]
        }
    },
    {
        "surveys" : [
            "986d601b-7dd4-4216-8797-a9e5ed8f07c1"
        ],
        "reminder_id" : "e47af480-0167-11e4-9191-0800200c9a66",
        "type" : "TimeTrigger",
        "description" : {
            "time" : "15:30",
            "repeat" : [
                "Sunday",
                "Monday",
                "Tuesday",
                "Wednesday",
                "Thursday",
                "Friday",
                "Saturday"
            ]
        }
    },
    {
        "surveys" : [
            "78bb00ab-a27b-405b-80d0-a101876284ef"
        ],
        "reminder_id" : "b09b1410-0167-11e4-9191-0800200c9a66",
        "type" : "TimeTrigger",
        "description" : {
            "time" : "16:00",
            "repeat" : [
                "Wednesday",
                "Thursday"
            ]
        }
    },
    {
        "surveys" : [
            "17e691d9-204a-4a44-9786-dbd3fbc34dec"
        ],
        "reminder_id" : "cf75b741-771d-4015-b6de-1a6f0f9b0854",
        "type" : "TimeTrigger",
        "description" : {
            "start" : "15:00",
            "end" : "16:00",
            "time" : "15:30",
            "repeat" : [
                "Sunday",
                "Monday",
                "Tuesday",
                "Wednesday",
                "Thursday",
                "Friday",
                "Saturday"
            ]
        }
    },
    {
        "surveys" : [
            "17e691d9-204a-4a44-9786-dbd3fbc34dec"
        ],
        "reminder_id" : "957ce42c-ce5e-4992-ad2c-5503b935a91d",
        "type" : "LocationTrigger",
        "description" : {
            "location" : "Home",
            "min_reentry_interval" : 120
        }
    },
    {
        "surveys" : [
            "17e691d9-204a-4a44-9786-dbd3fbc34dec"
        ],
        "reminder_id" : "fd523b6c-78f5-450f-a757-39770cc5638e",
        "type" : "LocationTrigger",
        "description" : {
            "time_range" : {
                "trigger_always" : false,
                "start" : "15:00",
                "end" : "16:00"
            },
            "location" : "Work",
            "min_reentry_interval" : 120
        }
    },
    {
        "surveys" : [
            "17e691d9-204a-4a44-9786-dbd3fbc34dec"
        ],
        "reminder_id" : "4ec2a0a5-f5b6-4e1a-9f19-66d51d55cf44",
        "type" : "LocationTrigger",
        "description" : {
            "time_range" : {
                "trigger_always" : true,
                "start" : "15:00",
                "end" : "16:00"
            },
            "location" : "Work",
            "min_reentry_interval" : 120
        }
    }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants