Open Join & EventGhost

Discussion in 'Join' started by bmello777, May 15, 2017.

  1. bmello777

    bmello777 Member

    Joined:
    Oct 19, 2016
    Messages:
    39
    Likes Received:
    0
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Yes, it's still possible. What trouble are you having exactly?
     
  3. J.R.

    J.R. New Member

    Joined:
    May 20, 2017
    Messages:
    1
    Likes Received:
    0
    I'm having an issue getting Join to work with EventGhost. When I paste the Join API URL of one of my devices into the Event Ghost AutoRemote plugin "Device Personal URL" and hit tab, I get a Invalid URL.
    I got the Join's device URL at: https://joinjoaomgcd.appspot.com/
    I also downloaded the latest AutoRemote Ghost plugin.
     
  4. bmello777

    bmello777 Member

    Joined:
    Oct 19, 2016
    Messages:
    39
    Likes Received:
    0
    I am getting the same error as j.r. Srry for late reply
     
  5. XellossMetallium

    XellossMetallium New Member

    Joined:
    May 12, 2015
    Messages:
    1
    Likes Received:
    0
    Same here. To recap: once selected the device in the appspot.com site I go in the API tab, I have the API Key uncovered (mandatory to show the url) and copy the url (" https://joinjoaomgcd.appspot.com/_ah/api/messaging/v1/sendPush?deviceId=******&apikey=****** ") in the eventghost autoremote plugin. The third field, Device Key, is "invalid".
    I was sure I had an account here on the forum, but I just realized I always asked for support directly. Thank you very much! :)
     
    Last edited: Jun 12, 2017
  6. Lawrence Gardiner

    Lawrence Gardiner New Member

    Joined:
    Sep 5, 2017
    Messages:
    2
    Likes Received:
    0
    Did anybody ever get this to work?
     
  7. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Sorry for the very late reply, I somehow missed this.
    You can't use the AutoRemote plugin to send messages to Join, but you can use a simply python script :)

    Add a Python Command action in EventGhost and then use this code:

    Code (Text):
    import urllib2;urllib2.urlopen("https://joinjoaomgcd.appspot.com/_ah/api/messaging/v1/sendPush?text=Hello&title=Title%20cool&deviceId=YOUR_DEVICE_ID&apikey=YOUR_API_KEY").read()
    You can generate your own Join URLs here: https://joinjoaomgcd.appspot.com/

    Hope this helps!
     
    Lawrence Gardiner likes this.
  8. Lawrence Gardiner

    Lawrence Gardiner New Member

    Joined:
    Sep 5, 2017
    Messages:
    2
    Likes Received:
    0
    Do you have any advice on getting EventGhost to accept the API and Device keys? I'm doing the same as Xellos:
    >To recap: once selected the device in the appspot.com site I go in the API tab, I have the API Key uncovered (mandatory to show the url) and copy the url (" https://joinjoaomgcd.appspot.com/_ah/api/messaging/v1/sendPush?deviceId=******&apikey=******") in the eventghost autoremote plugin. The third field, Device Key, is "invalid".<

    I've also swapped positions of the API key and Device Key in the URL, still no luck. TIA
     
  9. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Please check my post above. You won't be able to send messages to Join with the AutoRemote Send Message action. Sorry!
     
    Lawrence Gardiner likes this.
  10. Stupifier

    Stupifier Member

    Joined:
    Mar 10, 2015
    Messages:
    147
    Likes Received:
    6
    Just wanted to add more up to date info......Since Device ID is basically deprecated and Joao doesn't even recommend it to anyone anymore.....here is the correct python code for use with Device Name instead.


    Code (Text):
    import urllib2;urllib2.urlopen("https://joinjoaomgcd.appspot.com/_ah/api/messaging/v1/sendPush?deviceNames=YOUR_DEVICE_NAME&text=hello&title=Title%20cool&apikey=YOUR_API_KEY").read()
     
    skribb and Ölcreme Drehcrahn like this.
  11. skribb

    skribb Member

    Joined:
    Mar 5, 2015
    Messages:
    44
    Likes Received:
    1
    thanks A LOT Stupifier!!!!
     
  12. Pedro Domingues

    Pedro Domingues New Member

    Joined:
    Oct 19, 2017
    Messages:
    3
    Likes Received:
    0
    I think I have the same problem OP had. I'm not trying to send a message to my smartphone, I just can't connect Join to Eventghost correctly.

    This is the log error:

    And when I send a message to Join in the PC using Chrome extension:
    • Traceback (most recent call last):
    • File "SocketServer.pyc", line 558, in process_request_thread
    • File "SocketServer.pyc", line 320, in finish_request
    • File "SocketServer.pyc", line 615, in __init__
    • File "BaseHTTPServer.pyc", line 329, in handle
    • File "BaseHTTPServer.pyc", line 323, in handle_one_request
    • File "C:\Program Files (x86)\EventGhost\plugins\AutoRemote\__init__.py", line 446, in do_POST
    • communication = getCommunicationFromContent(content,self)
    • File "C:\Program Files (x86)\EventGhost\plugins\AutoRemote\__init__.py", line 355, in getCommunicationFromContent
    • type = requestJson.get("communication_base_params").get("type")
    • AttributeError: 'NoneType' object has no attribute 'get'
    So it seems like EG can sense the message, but can't recongnize it.
     
  13. Pedro Domingues

    Pedro Domingues New Member

    Joined:
    Oct 19, 2017
    Messages:
    3
    Likes Received:
    0
    Ok guys, problem fixed. Somehow the option "Send Full Push (enable if you use Node-RED)" was enabled, I turned it off and everything is ok now.
     
  14. Guilherme Eduardo

    Guilherme Eduardo New Member

    Joined:
    Oct 19, 2016
    Messages:
    3
    Likes Received:
    0
    Hi, I know this is a old post but I need some help... Using this method I can send normal text from Eventghost to my Join App with no problems.. My problem is that I can't send variables values with it. in my case I want to send the value of eg.result variable, but join only receives exactly "eg.result" and not the content of the variable.

    I'am using: import urllib2;urllib2.urlopen("https://joinjoaomgcd.appspot.com/_a...h?deviceNames=YOUR_DEVICE_NAME&text=eg.result...

    Thanks in advance
     
  15. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806

Share This Page