- Christophe Nowicki - http://www.csquad.org -
xPL Perl update script for Pachube
Posted By cscm On November 27, 2009 @ 23:29 In Home automation, Programming | Comments Disabled
I’ve wrote a small update script for Pachube [1] based on xPL-Perl [2].
This module is based on Beanz’s Net::Pachube [3] module.
I use this script, for my pachube feed [4].
The setup is very simple on Debian GNU/Linux, at first you need the Net::Pachube module :
$ wget http://search.cpan.org/CPAN/authors/id/B/BE/BEANZ/Net-Pachube-0.01.tar.gz
$ tar xzf Net-Pachube-0.01.tar.gz
$ cd Net-Pachube-0.01
$ perl Makefile.PL
$ make
...
# make install
Note: the dh-make-perl method does not work, with this package ;-(
Then you can grab, my xpl-pachube script :
$ svn co http://svn.csquad.org/xpl-pachube/
..
# chmod +x xpl-pachube/xpl-pachube
# mv xpl-pachube/xpl-pachube /usr/local/bin
You can start the xpl-pachube script in verbose this way :
$ xpl-pachube -key 52b37888404598851de -verbose -feed_id 1934 class=sensor device=cc128.01189.0.1
You need to change the -key and -feed_id arguments.
That’s all folks!
Article printed from Christophe Nowicki: http://www.csquad.org
URL to article: http://www.csquad.org/2009/11/27/xpl-perl-update-script-for-pachube/
URLs in this post:
[1] Pachube: http://www.pachube.com/
[2] xPL-Perl: http://www.xpl-perl.org.uk/
[3] Net::Pachube: http://search.cpan.org/dist/Net-Pachube/
[4] my pachube feed: http://www.pachube.com/feeds/1934
Click here to print.
Copyright © 2009 Christophe Nowicki. All rights reserved.