Another amazingly useful web site: http://ismycomputeron.com

Sometimes you come across web services that are so amazingly useful, you wonder why nobody has done it before. One of those is “Is my computer on?”:http://ismycomputeron.com sent to me this morning by “Tomas Caspers”:http://tomascaspers.de/.

While the usefulness of the service is indisputable the lack of RSS feed or API is actually annoying (let’s not discuss the HTML quality of the site, I am sure this is because of performance reasons as it is the case with other big players). Likeminded web dwellers like Dion Almaer “bemoaned the same fact”:http://twitter.com/dalmaer/statuses/1106428950 which is why I’ve taken matters into my own hand and used “YQL”:http://developer.yahoo.com/yql to turn this service into a JSON API:



http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D%22http%3A%2F%2Fismycomputeron.com%22%20and%20xpath%3D'%2F%2Fcenter%2Ffont%2Ftext()'&format=json&callback=isiton

This version wraps the resulting data (in my case “yes”) in a JSON object and calls the isiton() method. You can try it out for yourself.

If you want to change this simply rename isiton at the end of the url to your function name of choice. If you use alert() as the function name you could even turn this into a useful bookmarklet.

Of course you should never forget to support the library followers if you have a system like that and “Mattias Hising”:http://frontendbook.com came quickly to the rescue and built the system “as a jQuery plugin”:http://jsbin.com/ofiwi.

Tags: , , , , , , , , , ,

5 Responses to “Another amazingly useful web site: http://ismycomputeron.com”

  1. Jared Smith Says:

    Brilliant! I didn’t think it was possible for such a useful site to be made even usefuller. Now I can program all sorts of things to check the status of my computer. The last thing you want is to attempt some complex ‘puter stuff and suddenly realize a bit to late that your computer was actually off the entire time. You’re a lifesaver!

  2. Claude Says:

    I love your YQL screen scraping implementation. Brilliant!

  3. Miguel Benevides Says:

    Amazing how Google missed that one…
    http://ismycomputeroff.com/ is bit more useful ;)

  4. coxy Says:

    I visited the aforementioned site on my mobile phone and it told me my computer was on. I returned home later that day to find out that my computer was actually switched off. This site blatantly lied to me and therefore I shall not be bookmarking it.

  5. Florent V. Says:

    Now to make it even more useful: multilingual (question and answer), with automatic Accept-Language detection!

Wait till I come! is the blog of Christian Heilmann , a developer evangelist living and working in London, England. Download vcard.

Feed me, Seymour: Entries (RSS) and Comments (RSS).