Serverless for Vampires

Ok, as a quick warning, this is a pretty stupid demo. I mean, I know that’s my thing - I’m the person who makes demos with cats. But this really pushes it a bit too far. I was bored a week or so ago and found an interesting API, the Sunrise Sunset API. This is a free API that returns sunrise and sunset times for a specific location. So obviously I saw that and thought it would be the perfect kind of service for vampires.

Read more

Using Postman with OpenWhisk

For a while now I’ve been a huge fan of Postman. If you’ve never heard of it, it’s an incredibly powerful tool for working with APIs. I know a lot of folks like to use Curl at the command line for doing HTTP calls, but I much prefer a visual tool instead. Plus, Postman makes it much easier to save and organize API tests for use later. It’s free, supported everywhere, and I strongly recommend it.

Read more

Great Reminder of Persistence in Serverless

Today I ran into a great bug. By “great” I mean it totally confused me but as soon as I realized what I was doing wrong, I knew it would be a great thing to blog about as a reminder to others. I don’t think this applies just to OpenWhisk, but to serverless in general. Ok, so what did I do? I was working on a sample action that simply returned an array of cats.

Read more

Creating a Serverless Meetup API Wrapper

Yesterday I was doing some research into serverless meetups when I encountered something that bugged me about the Meetup.com web site. Specifically, this: I couldn’t search for meetups until I logged in. Now, don’t get me wrong, I’ve got a Meetup.com login, and I could have logged in in about 2 seconds, but this really bugged me. (As an aside, you can just go to https://www.meetup.com/find/events/ to skip being forced to log in.

Read more

Handling SMS with OpenWhisk, IBM Watson and Twilio - an Update

Last week I blogged about a sample application I built using OpenWhisk, Twilio, and IBM Watson. The idea was - I could send a picture to a SMS number set up with Twilio, Twilio would send the data to OpenWhisk, OpenWhisk would get the picture and send it to Watson for identification, and finally the result would be sent back to the user. This morning a coworker pointed out a few issues and I found a way for the code to be much simpler.

Read more

Google Analytics and RSS Report - Version 2

Over two years ago I blogged about a demo I had built involving RSS and Google Analytics. The reason for that demo was simple. As an active blogger, I want to have an idea about how my recent content is doing. Google Analytics, however, doesn’t have a way to recognize what my most recent content is. By combining a RSS feed and a Google Analytics API, I could create a mashup that reported exactly what I wanted - how my latest entries were doing.

Read more

Important Note for OpenWhisk Developers

Yesterday while working on a new book (yep - I’m writing a book for OpenWhisk!) I discovered something pretty important. I generally use the OpenWhisk docs on IBM Bluemix as my reference: https://console.bluemix.net/docs/openwhisk/index.html. I knew that the docs were sourced from the GitHub repo, but what I did not know is how far behind the Bluemix docs were. This is probably just a random fluke, but it bit me in the rear (and I’ll explain why next) so I’m now updating my own bookmarks to the GitHub docs: https://github.

Read more

Designing an OpenWhisk Action for Web Action Support - Take Two

Back a few months ago I wrote up a quick blog post on how an OpenWhisk action could support running in both “regular” mode and “Web Action” mode: Designing an OpenWhisk Action for Web Action Support. I started off that blog post with a warning stating that what I was covering was bleeding edge and likely to break. Turns out I was right - it did. I want to share a quick update to that blog post and demonstrate how it can be done now.

Read more

Handling SMS with OpenWhisk, IBM Watson, and Twilio

I have made some important corrections to this guide - please see my followup here: https://www.raymondcamden.com/2017/07/07/handling-sms-with-openwhisk-ibm-watson-and-twilio-an-update Earlier this week I got a chance to play a bit with Twilio’s API (An OpenWhisk Monitor/Alert POC) and I have to admit I was shocked at how easy it was to use. It got me thinking about what else I could do with it (as an excuse to learn of course) and I whipped up a pretty cool demo I’d like to share.

Read more

An OpenWhisk Monitor/Alert POC

A few weeks back I posted (Monitoring OpenWhisk Activity) about how you can monitor your OpenWhisk activity. One of the things I made note of is that it would be nice to have an “alert” system such that I could specify that if a certain action began performing poorly, I could get an alert. Now “poor” is a fairly nebulous term, but today I worked on a little demo that I’d like to share.

Read more