code

Pachulib: Pachube C Library Documentation

Pachulib is an open-source C library that implements some Pachube's basic functions as: Create, delete, retrieve, update datastreams, feeds and triggers, or retrieve historical data and save it into local files. This library can be easily used by existing software (datalogging systems, system services,..) It can be compiled to many different architectures. GCC compiler is recomended to do it. At this moment pachulib is a beta, it hasn't been enough tested, and lacks of some interesting functionality as: XML support, SSL, "Automatic feeds". Coding and debugging continues, and future versions will include more features. This document will be updated with the latest information.

All the feedback is allways welcome (bugs, changes, new features requests, funny ideas, ...) feel free to post in this forum http://community.pachube.com/node/337, use sourceforge tools, or visit the development crew's blog at http://www.babuino.org.
Indeed, if you want to contribute with some code, feel free to do it, there is a subversion repository with the latest code:

svn co https://pachulib.svn.sourceforge.net/svnroot/pachulib pachulib

23-dic-2009: added to svn some c code that uses libcurl to manage http comunications.
27-dic-2009: added to svn cachuli: command line pachube client based on pachulib.

In order to download a zip file with the code, binaries, makefile, and some examples:
http://sourceforge.net/projects/pachulib/files/

Thanks to all the commuitity!

... read more »

Pachube PHP Library documentation

This is a simple PHP (v5) library for accessing Pachube's create/retrieve/update/delete functions, returning feed information and realtime datastream values, easily creating configurable graphs in your webpages and Google maps of individual feeds, text-based searching for feeds, etc.

Available here: http://community.pachube.com/files/Pachube_PHP_library.zip - contains "pachube_functions.php" for all feed functions and "example.php" which demonstrates the functions (and generates the documentation found below).

Error reporting is pretty basic at the moment - in most cases functions return blank rather than bad values in the event that something goes wrong - but should be improved over time. If you would be interested to contribute to the library the code is hosted here for community-based collaborative development: http://github.com/uh/pachube_php/

... read more »