xPL Perl update script for Pachube
I’ve wrote a small update script for Pachube based on xPL-Perl.
This module is based on Beanz’s Net::Pachube module.
I use this script, for my pachube feed.
Setup
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
Run
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!
I’ve fixed the dh-make-perl problem in git repository. I’ll try to create a new release in the next week or so.