oarevalo / BugLogHQ

BugLogHQ is a tool to centralize the handling of automated bug reports from multiple applications. BugLogHQ provides a unified view of error messages sent from any number of applications, allowing the developer to search, graph, forward, and explore the bug reports submitted by the applications.
http://www.bugloghq.com
155 stars 67 forks source link

Growl Notifications #116

Closed KrunchMuffin closed 9 years ago

KrunchMuffin commented 9 years ago

This might be cool to add as a rule option.

https://github.com/fraxen/cfcgntp/

oarevalo commented 9 years ago

Nice! I like the idea. Have you tried it yet?

KrunchMuffin commented 9 years ago

No, I haven't tried it. I will if I get some time.

KrunchMuffin commented 9 years ago

Actually, this might be a better solution

https://docs.pushbullet.com/

oarevalo commented 9 years ago

Here is something... https://github.com/oarevalo/BugLogHQ-utils/blob/master/extensions/rules/pushBulletAlert.cfc

Give it a try, let me know what you think.

KrunchMuffin commented 9 years ago

Tried it, but not getting the alert. Says it fired and I have put my token in.

KrunchMuffin commented 9 years ago

This is what I got in return. Not sure why it's not picking up my token?

{"error": {"type":"invalid_request","message":"Access token is missing or invalid.","cat":"(=^・ω・^)y="}} 
oarevalo commented 9 years ago

weird, it's been working for me. Have you tried logging out and clicking the "reset buglog" link on the login page?

KrunchMuffin commented 9 years ago

yes. will try again tho.

KrunchMuffin commented 9 years ago

Same, here is a dump of config and payload

12-17-2014 10-44-20 am

oarevalo commented 9 years ago

can you try posting the message via the command line via curl?

 curl -u <your_access_token_here>: -X POST https://api.pushbullet.com/v2/pushes --header 'Content-    Type: application/json' --data-binary '{"type": "note", "title": "Note Title", "body": "Note Body"}'
KrunchMuffin commented 9 years ago

From the docs

To authenticate for the API, use your access token as the username in the HTTP Basic Auth header, along with an empty password.

so I added password="" and it worked.

KrunchMuffin commented 9 years ago

Only thing is, I am only getting it on my phone and not all my devices. Thought I read it would do that by default. Have to check again.

oarevalo commented 9 years ago

So you added password="" to the cfhttp call? huh, it must be a Railo default then. (I was using Railo when coding this). On my tests I got the alert on both my computer and phone.

KrunchMuffin commented 9 years ago

ya, thats all I did. I sent them an email to ask why it wouldn't broadcast to all devices. Will let you know. Thanks for this!

oarevalo commented 9 years ago

cool