Skip to content

Commit

Permalink
fixed bug - was supposed to be _
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Edgett committed Feb 16, 2017
1 parent 2e950e2 commit 3248823
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions octoprint_IFTTTmaker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ def _send_ifttt(self, trigger, makerkey, value1=None, value2=None, value3=None):

def get_update_information(self):
return dict(
iftttmaker=dict(
IFTTTmaker=dict(
displayName=self._plugin_name,
displayVersion=self._plugin_version,

type="github_release",
current=self._plugin_version,
user="sedgett",
repo="OctoPrint-IFTTTmaker",

repo="OctoPrint_IFTTTmaker",
stable_branch=dict(branch="master", name="Stable"),
pip="https://github.com/sedgett/OctoPrint-IFTTTmaker/archive/{target_version}.zip"
)
)
Expand Down
5 changes: 3 additions & 2 deletions octoprint_IFTTTmaker/templates/IFTTTmaker_settings.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,20 @@

<div class="control-group">
<label class="control-label">{{ _('Select Events') }}</label>

{% set events = ["PrintStarted", "PrintFailed", "PrintDone", "PrintCancelled", "MovieDone", "ClientOpened"] %}
{% for event in events %}


<div class="controls">
<label class="checkbox">
<input type="checkbox" data-bind="checked: settings.plugins.IFTTTmaker.events.{{ event }}" title="Check to enable {{ event }}" /> <span>IFTTT trigger op-{{ event }}</span>
</label>
</div>

{% endfor %}

<div style="float:left;">
<span class="help-block"><small>Select the Events to enable for IFTTT triggers. Note: op- is pre-pended the the OctoPrint event name.<br>
<span class="help-block"><small>Select the Events to enable for IFTTT triggers. <br>Note: op- is pre-pended the the OctoPrint event name.<p>
e.g. Create a IFTTT action using the trigger op-MovieDone and the action to power off your printer via Wemo or another IFTTT controlled electrical device.<br>
(Using MovieDone allows the printer time to cooldown before being powered off)
</span>
Expand Down

0 comments on commit 3248823

Please sign in to comment.