I want to share this awesome free service I found recently called hook.io
It’s a really simple way to create web scripts/HTTP microservices. You pick a name, paste your code and you’ve got an HTTP endpoint. No need to set up servers or install a web framework to get started.
You code runs on demand when the HTTP endpoint is requested. There’s even a way to schedule your code to run on a timer (cron job).
Since a hook can run any code you want, you use hooks to communicate with Particle devices in both directions: triggered from a Particle webhook to run code on a device event, or talk to a device through the Particle API when you access the hook through a browser.
I made a little guide to show how to create a hook and have it run when a Photon publishes an event.
For those interested, I recently found https://taskmill.io/ which is similar (I found it via HackerNews). I had issues importing my code from Github and emailed the TaskMill admins. They replied super quick and fixed the problem in no time. I haven’t had time to really play around with it but, at the very least, they CS is awesome
@jvanier I’m trying to build a logging portal to track key metrics for a smart product based on the Photon.
I was trying to find a service where I could run some JS to subscribe to the event stream of my devices. But it seems that I might be over-complicating this. Now I’m trying sites like logentries.com and thingspeak.com to do the heavy lifting for me.
We are continuously improving scriptr.io and adding new features to it. Don’t hesitate to contact us (email@example.com) to check for the availability of a feature or ask for assistance. We’re here to help.