-
Notifications
You must be signed in to change notification settings - Fork 158
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
Simplify API #21
Labels
Comments
👍 |
Saw you had this issue open, I just patched tipboard to use a single JSON object for retrieving the tile, key and data. Want me to submit a pull request so you can look it over? |
Sure, I'd like to take a look :) |
On my PR #70 i resolved this issue with a /update For example, before, your data for the request was: var = {"tile": "big_value",
"key": "mybigvalue",
"data": {"title": "% of something",
"description": "% of subtitle",
"big-value": "50%",
"lower-left-label": "title_value1:",
"upper-left-label": "title_value2:",
"upper-right-label": "value1",
"lower-right-label": "value2"}
} It's now: var = {"tile": "big_value",
"key": "mybigvalue",
"value": {"big_value_color": "green", "fading_background": "true"},
"data": {"title": "% of something",
"description": "% of subtitle",
"big-value": "50%",
"lower-left-label": "title_value1:",
"upper-left-label": "title_value2:",
"upper-right-label": "value1",
"lower-right-label": "value2"}
} But you can still use the old way of course |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: