GithubHelp home page GithubHelp logo

sedgett / octoprint_iftttmaker Goto Github PK

View Code? Open in Web Editor NEW
13.0 5.0 6.0 16 KB

Octoprint plugin for the IFTTT Maker channel.

Python 100.00%
ifttt-webhooks webhook octoprint-plugin octoprintplugin octoprint ifttt-maker-channel octopi ifttt

octoprint_iftttmaker's Introduction

OctoPrint_IFTTTmaker

Connect Octoprint to the IFTTT maker channel.

Setup

Install via the bundled Plugin Manager via this URL:

https://github.com/sedgett/OctoPrint_IFTTTmaker/archive/master.zip

Configuration

  1. Setup the IFTTT maker channel at https://ifttt.com/maker_webhooks
  2. Get your Maker key from https://ifttt.com/services/maker_webhooks/settings (it's the bit at the end, after /use/)
  3. Login to your Octopi, goto Settings, then click on IFTTTmaker
  4. Enter your key in the settings screen for the plugin in Octopi
  5. Select the events to send to IFTTT via settings.
  6. Create recipies on IFTTT for your new events. (See https://github.com/sedgett/OctoPrint_IFTTTmaker/wiki for more)
    • Use op-EventName as the trigger
    • value1 is filename (where applicable)
    • value2 is elapsed time (where applicable)
    • value3 is remote IP (where applicable)

octoprint_iftttmaker's People

Contributors

sedgett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

octoprint_iftttmaker's Issues

plugin manager problems

Currently I can't find it in the plug in manager at all and when I have it installed
via url on my octopi it tells me there is a update to version 1.1.1 but can not find the zip file

Send url to image when print finishes

It would be really useful to have an option take a picture and upload it to some free external service (imgur?), and then as one of the 3 values given to IFTTT, supply the image URL.

This would be really useful for rich notification actions that allows images to be displayed as a part of the notification.

Selectable values

I would love to be able to specify what is sent for each of the 3 values. I have 3 OctoPrints running so would like to be able to put in the name of the OP so I know which is done. So if there was a dropdown of potential values (filename, print time, start time, etc) that would be spiffy.

But I guess that wouldn't let me put in the OP name since that wouldn't be in your dropdown. Maybe some kind of input field with string replacement so I could say that value1 was {{fileName}} or My OP Name.

A long term nice to have would be setting the values per event so I could say {{fileName}} started or {{fileName}} complete.

Only op-PrintStarted works.

Hello! I was happy to find out about this plugin, but I can't seem to get it working besides notifying me when starting the print. So it is not very useful in this state.

I set everything up with Webhooks and IFTTT as instructed in the readme, and in Octoprint (version 1.3.6) I put in my webhooks key and enabled op-PrintStarted, op-PrintCancelled, op-PrintFailed, and op-PrintDone. I have each of these triggers set up in IFTTT to send me an SMS text message, however only the op-PrintStarted event works. Otherwise I do not get a text message. I have typed everything correctly in Webhooks.

Could you help me resolve this issue? Much appreciated!

ifttt_octoprint_plugin_issue
octoprint_ifttt_settings

Bad pip update URL

Hi! In this line:

pip="https://github.com/sedgett/OctoPrint-IFTTTmaker/archive/{target_version}.zip"

...you define https://github.com/sedgett/OctoPrint-IFTTTmaker/archive/{target_version}.zip
but it should be: https://github.com/sedgett/OctoPrint_IFTTTmaker/archive/{target_version}.zip

Looks like at some point you renamed the repo from OctoPrint-IFTTTmaker to OctoPrint_IFTTTmaker but forgot to update this line.

Can you fix it? Updating is broken in the plugin manager...


Updating, please wait.
Collecting https://github.com/sedgett/OctoPrint-IFTTTmaker/archive/1.1.1.zip
HTTP error 404 while getting https://github.com/sedgett/OctoPrint-IFTTTmaker/archive/1.1.1.zip
Could not install requirement https://github.com/sedgett/OctoPrint-IFTTTmaker/archive/1.1.1.zip because of error 404 Client Error: Not Found for url: https://github.com/sedgett/OctoPrint-IFTTTmaker/archive/1.1.1.zip
Could not install requirement https://github.com/sedgett/OctoPrint-IFTTTmaker/archive/1.1.1.zip because of HTTP error 404 Client Error: Not Found for url: https://github.com/sedgett/OctoPrint-IFTTTmaker/archive/1.1.1.zip for URL https://github.com/sedgett/OctoPrint-IFTTTmaker/archive/1.1.1.zip

Not in plugin repository

I'm not sure if you're aware of it and working on it - but
Octoprint_IFTTTMaker doesn't appear in the plug in manager in the plugin repository.

Nothing displays in settings

Maybe the project is dead, but I installed this and when I go into the settings it is blank. Any suggestions?

Finished project returning error & not firing IFTTT trigger

It looks like it's not firing the IFTTT command when octoprint is done printing. I've got this error from the log. Any help would be appreciated!
INFO - Finished in 17155.989 s. 2017-10-01 08:19:37,916 - octoprint.plugin - ERROR - Error while calling plugin IFTTTmaker Traceback (most recent call last): File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.4-py2.7.egg/octoprint/plugin/__init__.py", line 229, in call_plugin result = getattr(plugin, method)(*args, **kwargs) File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_IFTTTmaker/__init__.py", line 63, in on_event self._send_ifttt("op-"+event, makerkey, v1, v2, v3) File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_IFTTTmaker/__init__.py", line 80, in _send_ifttt payload = "{ 'value1' : " + value1 + ", 'value2' : " + value2 + ", 'value3' : " + value3 + "}" TypeError: coercing to Unicode: need string or buffer, float found

trigger: temperature

the plugin works great!!

i miss more trigger actions, e.g. temperature of hotbed/nozzle:

temp of hotbed over/under xx°
temp of nozzle over/under than xx°
etc.

Events with Multiple Octopi printers

Hello, it would be useful to have customizable event names, so that multiple printers can be used.

Currently printer 1's event will fire and turn off printer 2.

Editable event names would fix this. can you do this?

print done event not sent

I have tried every which way
to configure it I can' get the print done to send the event

I wish there was better loging on ifttt
I will be looking further into this

i'm getting tons of op-ClientOpened in a loop

I am sure this is nothing to do with this plugin but maybe you know how to work around it

I'm getting tons of Open messages to my IFTTT and i don't know why.
seems like Octoprint closes and opens the client connection repeatedly, this makes this event unusable in the IFTTT plugin.
not sure why this happens or where to ask for help.
if this a bug in the main octoprint? or something to do with the various plugins i have? i donno yet.

but thought i should let you know and maybe brainstorm if there is a workaround for this other than disable this event

Logs:
2018-06-01 16:13:38,633 - octoprint.plugins.IFTTTmaker - INFO - Event skipped: CaptureDone
2018-06-01 16:13:43,866 - octoprint.server.util.sockjs - WARNING - Could not send message to client 192.168.1.108: object of type 'NoneType' has no len()
2018-06-01 16:13:43,918 - octoprint.server.util.sockjs - INFO - Client connection closed: 192.168.1.108
2018-06-01 16:13:43,952 - octoprint.plugins.IFTTTmaker - INFO - Event skipped: ClientClosed
2018-06-01 16:13:49,377 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.1.108
2018-06-01 16:13:52,424 - octoprint.plugins.IFTTTmaker - INFO - Event skipped: ZChange
2018-06-01 16:13:52,696 - octoprint.plugins.IFTTTmaker - INFO - Event skipped: CaptureStart
2018-06-01 16:13:57,400 - octoprint.server.util.sockjs - WARNING - Could not send message to client 192.168.1.108: object of type 'NoneType' has no len()
2018-06-01 16:13:57,484 - octoprint.server.util.sockjs - INFO - Client connection closed: 192.168.1.108
2018-06-01 16:13:58,741 - octoprint.plugins.IFTTTmaker - INFO - URL: https://maker.ifttt.com/trigger/op-ClientOpened/with/key/dUWVcmGy4B_FUwT8D0Zgit
2018-06-01 16:13:58,773 - octoprint.plugins.IFTTTmaker - INFO - Trigger: op-ClientOpened Response: Congratulations! You've fired the op-ClientOpened event Payload: {'value3': '192.168.1.108', 'value2': '', 'value1': ''}
2018-06-01 16:13:58,894 - octoprint.plugins.IFTTTmaker - INFO - Event skipped: CaptureDone
2018-06-01 16:13:59,043 - octoprint.plugins.IFTTTmaker - INFO - Event skipped: ClientClosed
2018-06-01 16:14:02,600 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.1.108
2018-06-01 16:14:06,698 - octoprint.server.util.sockjs - WARNING - Could not send message to client 192.168.1.108: object of type 'NoneType' has no len()
2018-06-01 16:14:06,741 - octoprint.server.util.sockjs - INFO - Client connection closed: 192.168.1.108
2018-06-01 16:14:09,718 - octoprint.plugins.IFTTTmaker - INFO - URL: https://maker.ifttt.com/trigger/op-ClientOpened/with/key/dUWVcmGy4B_FUwT8D0Zgit
2018-06-01 16:14:09,735 - octoprint.plugins.IFTTTmaker - INFO - Trigger: op-ClientOpened Response: Congratulations! You've fired the op-ClientOpened event Payload: {'value3': '192.168.1.108', 'value2': '', 'value1': ''}
2018-06-01 16:14:09,908 - octoprint.plugins.IFTTTmaker - INFO - Event skipped: ClientClosed
2018-06-01 16:14:10,162 - octoprint.plugins.IFTTTmaker - INFO - Event skipped: ZChange
2018-06-01 16:14:10,710 - octoprint.plugins.IFTTTmaker - INFO - Event skipped: CaptureStart
2018-06-01 16:14:11,057 - octoprint.plugins.IFTTTmaker - INFO - Event skipped: CaptureDone
2018-06-01 16:14:13,317 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.1.108
2018-06-01 16:14:21,330 - octoprint.server.util.sockjs - WARNING - Could not send message to client 192.168.1.108: object of type 'NoneType' has no len()
2018-06-01 16:14:21,453 - octoprint.server.util.sockjs - INFO - Client connection closed: 192.168.1.108
2018-06-01 16:14:21,727 - octoprint.plugins.IFTTTmaker - INFO - URL: https://maker.ifttt.com/trigger/op-ClientOpened/with/key/dUWVcmGy4B_FUwT8D0Zgit
2018-06-01 16:14:21,734 - octoprint.plugins.IFTTTmaker - INFO - Trigger: op-ClientOpened Response: Congratulations! You've fired the op-ClientOpened event Payload: {'value3': '192.168.1.108', 'value2': '', 'value1': ''}
2018-06-01 16:14:21,882 - octoprint.plugins.IFTTTmaker - INFO - Event skipped: ZChange
2018-06-01 16:14:22,590 - octoprint.plugins.IFTTTmaker - INFO - Event skipped: ClientClosed
2018-06-01 16:14:22,879 - octoprint.plugins.IFTTTmaker - INFO - Event skipped: CaptureStart
2018-06-01 16:14:23,058 - octoprint.plugins.IFTTTmaker - INFO - Event skipped: CaptureDone
2018-06-01 16:14:25,727 - octoprint.server.util.sockjs - WARNING - Could not send message to client 192.168.1.108: object of type 'NoneType' has no len()
2018-06-01 16:14:25,791 - octoprint.server.util.sockjs - INFO - Client connection closed: 192.168.1.108
2018-06-01 16:14:25,828 - octoprint.plugins.IFTTTmaker - INFO - Event skipped: ClientClosed
2018-06-01 16:14:27,927 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.1.108
2018-06-01 16:14:33,417 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.1.108
2018-06-01 16:14:36,607 - octoprint.plugins.IFTTTmaker - INFO - URL: https://maker.ifttt.com/trigger/op-ClientOpened/with/key/dUWVcmGy4B_FUwT8D0Zgit
2018-06-01 16:14:36,631 - octoprint.plugins.IFTTTmaker - INFO - Trigger: op-ClientOpened Response: Congratulations! You've fired the op-ClientOpened event Payload: {'value3': '192.168.1.108', 'value2': '', 'value1': ''}
2018-06-01 16:14:36,951 - octoprint.plugins.IFTTTmaker - INFO - Event skipped: ZChange

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.