For the curious/interested, I created a tampermonkey/greasemonkey script to add a “Publish Event” link to the Particle Console. This allows you to easily send events from your browser while viewing your logs in the Particle Console.
Go here and click “Raw” to import the script into Tampermonkey. Install the script.
Go to the Particle Console. A little airplane icon and “Publish Event” link should appear near the “Docs” link. Press it and then follow the prompts to emit an event. Click the “Publish Event” link to launch the process. Follow the prompts.
Provide feedback to me
How It Works
When you press “Publish Event” you get two prompts (standard javascript prompt(...) prompts) asking for the eventName and eventData. Once you submit those it grabs the access token and then calls the event publish API using $.post
EDIT: Please reinstall/update the script. The bug has been fixed so the “Publish Event” appears on every page
Please try navigating to https://console.particle.io/logs directly. It seems it doesn’t work if you go to the log page from any other page. I’ll work on fixing that. Also, please re-import/update the script since I found another bug that’s now fixed.
What are your thoughts on a native Chrome/Firefox extension versus a greasemonkey script? I was able to put together a Chrome extension in ~15 minutes and it seems to work well.
I’m with @nrobinson2000 on this one. This shouldn’t be some external ‘thing’ for specific browsers, this should be built-in. Considering it does nothing more than calling an API when you press a button, it really shouldn’t take long to add, in my opinion.
Alright. Do you have any interested in collaborating? I will setup a GitHub repo for the extension. Still thinking on a name: Particle Console - Community Additions?