sebauer / if-this-then-node

An extendible NodeJS app to receive actions from IFTTT (If This Then That).
http://sebauer.github.io/if-this-then-node/
81 stars 12 forks source link

Cannot GET /xmlrpc.php after installation #3

Closed cayco closed 9 years ago

cayco commented 9 years ago

I followed instructions on how to install and tried to connect with IFTTT however it said it cannot activate my channel (port is open and I can access it manually). Opening 1337 in browser results:

Cannot GET /xmlrpc.php 

as a response. There is nothing interesting on the console either:

    pi@raspberrypi ~/ifttn/sebauer-if-this-then-node-c4d2d44 $ sudo node server | ./node_modules/bunyan/bin/bunyan

    =========================================================
    Starting "IFTTN - If This Then Node" Version 1.2.5
    =========================================================
    http://sebauer.github.io/if-this-then-node/
    ---------------------------------------------------------

    [2015-02-01T07:18:55.319Z]  INFO: IFTTN/16920 on raspberrypi: Searching for plugins...
    [2015-02-01T07:18:55.356Z]  INFO: IFTTN/16920 on raspberrypi: Loading limitless-onleave-autooff
    [2015-02-01T07:18:56.025Z]  INFO: IFTTN/16920 on raspberrypi:   >> IFTTN LimitlessLED Plugin - onLeave: auto-off
    [2015-02-01T07:18:56.031Z]  INFO: IFTTN/16920 on raspberrypi: Loading limitless-zone-onoff
    [2015-02-01T07:18:56.048Z]  INFO: IFTTN/16920 on raspberrypi:   >> IFTTN LimitlessLED Plugin - Zone x On/Off
    [2015-02-01T07:18:56.054Z]  INFO: IFTTN/16920 on raspberrypi: Loading sample-plugin
    [2015-02-01T07:18:56.068Z]  INFO: IFTTN/16920 on raspberrypi:   >> IFTTN Sample Plugin Version 1.0
    [2015-02-01T07:18:56.074Z]  INFO: IFTTN/16920 on raspberrypi: Loading wakeonlan-linux
    [2015-02-01T07:18:56.128Z]  INFO: IFTTN/16920 on raspberrypi:   >> IFTTN Wake-On-LAN Plugin (Linux) V0.1
    [2015-02-01T07:18:56.133Z]  INFO: IFTTN/16920 on raspberrypi: Loading win-shutdown-linux
    [2015-02-01T07:18:56.389Z]  INFO: IFTTN/16920 on raspberrypi:   >> IFTTN Shutdown Windows from Linux
    [2015-02-01T07:18:56.481Z]  INFO: IFTTN/16920 on raspberrypi: Listening on port 1337
sebauer commented 9 years ago

Hi @cayco,

that's correct. There's no "default action" implemented when calling the xmlrpc.php without any parameters. But I will take this as a suggestion for easier testing.

But as long as the "cannot get"-message appears, the server is running fine. So to me it looks like the port isn't really accessible from the outside, there has to be a port-forwarding configured in your router, which routes external port 80 to port 1337 of the system where NodeJS is running on, as IFTTT always tries to access port 80.

If you have all that set up, you should be able to use your mobile phone (without being connected to your Wifi) to access if-this-then-node using http://your-external-ip-or-hostname/xmlrpc.php and you should get the "cannot get" message. If that's the case, everything is set up correctly and IFTTT should be working as well