Hi guys,
----- Original Message -----
> Hello all,
>
> Just a heads up to any and all people interested in the pmwebapi
> feature [1]. I am currently developing a small demo to use the data
> exposed by the API to track the state of a set of pcp metrics, and
> show a "blinkenlights"-style status dashboard, with a row of
> indicators that each light up whenever the corresponding metric
> exceeds a certain threshold; this may be interesting to look at for
> anyone who is considering using pmwebapi in their own project, or
> contributing to pmwebapi development.
>
> The current version of the demo can be found in branch fche/pmwebapi
> of the sourceware pcpfans repository:
>
> $ git clone git://sourceware.org/git/pcpfans.git
> $ git checkout fche/pmwebapi
> $ cd src/pmwebapi/jsdemos/blinkenlights
> $ ...
>
> You can run the demo by launching pmwebapi as something like:
> $ pmwebapi -v -r src/pmwebapi/jsdemos/
> ...
>
> then browsing to http://localhost:44323/blinkenlights/index.html
While this all appears to start and run nicely, the blinken' doesn't
seem to happen - tried simply setting the threshold to zero, but no
change to the (X) status - always shows as "good" (AIUI). Anything
spring immediately to mind? I've not tried diagnosing further as yet,
will try catch you on IRC tomorrow for pointers.
Also, some nice CC-licensed SVG LEDs can be found here:
http://www.clker.com/clipart-6518.html
http://www.clker.com/clipart-6514.html
... can we use these different coloured SVGs for the demo?
Have started looking over the pmwebapi code - I have a few review
comments & suggestions, but will send those out separately later.
cheers.
--
Nathan
|