• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: xPL Perl on the plug?  (Read 2886 times)
superpat
Full Member
***

Karma: 15
Posts: 141


View Profile
« on: December 05, 2009, 03:01:58 PM »

Hi

The title says it all.  Has anyone installed / used xPL Perl on their Sheevaplug?

thanks

Patrick
Logged

jlpoole
Principal Software Engineer
Global Moderator
Jr. Member
*****

Karma: 2
Posts: 87

Principal Software Engineer -- Oracle Corporation


View Profile
« Reply #1 on: December 10, 2009, 08:43:23 PM »

from http://www.xpl-perl.org.uk/
Quote
The aim of this project is to provide a stable, Open Source, Perl API for the xPL Protocol.
Logged

The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation.

superpat
Full Member
***

Karma: 15
Posts: 141


View Profile
« Reply #2 on: December 11, 2009, 01:56:01 AM »

Hi

Thanks for the pointer, I have already been using that site as one of my references.

It is very slow going, I have been, and still am in Debian dependency hell! I was hoping someone had already sorted them out.

I want to use xpl perl  to collect, log and display data from  rf Oregon weather sensors, using a USB output Rxfcom receiver and the Sheevaplug. I know I could buy  Meteohub, but that comes as a complete sys and app image, which I do not like and it is expensive in UK with our pound/Euro rate.  I also want to run other server apps concurrently, and the Meteohub is too restrictive.
 
There is also an XPL perl interface for my Currentcost power monitor.

So far I have managed the first two, i.e. collect and log data using the Currrent cost as a data source.  I can check the data against another logger running on my desktop Linux box, easier than sitting here tipping the rain gauge bucket to create data!

I am struggling with the display part, using an XPL web app called ZENAH.  This uses a lot of perl modules, one in particular used in Catalyst (sp)  has been depreciated and removed from the perl package.  I am trying to contact the Zenah developers, to find a solution, but the bug reporting process and dev list is currently locked due to a spam attack!

I will post any progress later.

cheers

P
Logged

jlpoole
Principal Software Engineer
Global Moderator
Jr. Member
*****

Karma: 2
Posts: 87

Principal Software Engineer -- Oracle Corporation


View Profile
« Reply #3 on: December 11, 2009, 05:01:36 PM »

Hi

The title says it all.  Has anyone installed / used xPL Perl on their Sheevaplug?

thanks

Patrick

Perl is pretty generic and I'm guessing that you should have no problems with installing the Perl modules for xPL.  I'm thinking the only problem you will have will be in the hardware chain of which I know nothing about.  Hopefully, the perl modules have self-tests the verify that their install is working properly and possibly some tests for the hardware interface.
Logged

The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation.

superpat
Full Member
***

Karma: 15
Posts: 141


View Profile
« Reply #4 on: December 12, 2009, 05:36:17 AM »

@jlpoole

Hi,

Please re-read my last reply.  I had already  installed xpl-perl and got 2/3 of the chain working:-

Quote
There is also an XPL perl interface for my Currentcost power monitor.

So far I have managed the first two, i.e. collect and log data using the Currrent cost as a data source.  I can check the data against another logger running on my desktop Linux box, easier than sitting here tipping the rain gauge bucket to create data!

I am struggling with the display part, using an XPL web app called ZENAH.  This uses a lot of perl modules, one in particular used in Catalyst (sp)  has been depreciated and removed from the perl package.  I am trying to contact the Zenah developers, to find a solution, but the bug reporting process and dev list is currently locked due to a spam attack!


If you really want to add value,  can you advise me  how to find a particular Perl Plug-in,  Catalyst::Plugin::DefaultEnd. It is not called out in the Makefile.PL.   (It must be referenced somewhere else, but I am b******d  if I can find it). I need to find out how it was used and how the new module Catalyst::Action::RenderView 0.11 works in its place.

FYI Here are snips from the Deb  Perl change log:-

Quote
Please note, version 35 is incoming and has *lots* of changes. Here's
the changelog:

....
  * Remove modules considered dead upstream:
    - Catalyst::Plugin::Prototype
    - Catalyst::Plugin::HTML::Widget
    - Catalyst::Plugin::Dumper
    - Catalyst::Plugin::XMLRPC
    - Catalyst::Plugin::DefaultEnd
.....
  * Updated modules:
 
    + Catalyst::Plugin::StackTrace 0.11
    + Catalyst::Action::RenderView 0.13
  * Change to search.cpan.org/dist for watch entries
  * Add a Debian NEWS entry to note added/removed things
  * Remove libcatalyst-modules-perl.lintian-overrides as it is no longer
    needed (XMLRPC was removed; thus it has no manpages)

 

I have crashed my SD card, before backing it up, so I have lost the verbatum error message from the compile. I am presently attempting to rebuild the system, xpl-perl and Zenah on another card, and will try to record the error if it occurs again.

cheers

Patrick
Logged

jlpoole
Principal Software Engineer
Global Moderator
Jr. Member
*****

Karma: 2
Posts: 87

Principal Software Engineer -- Oracle Corporation


View Profile
« Reply #5 on: December 21, 2009, 05:07:50 PM »

@jlpoole

Hi,

...
If you really want to add value,  can you advise me  how to find a particular Perl Plug-in,  Catalyst::Plugin::DefaultEnd. It is not called out in the Makefile.PL.   (It must be referenced somewhere else, but I am b******d  if I can find it). I need to find out how it was used and how the new module Catalyst::Action::RenderView 0.11 works in its place.
...

Perl has a very convenient package manager that automatically installs packages you select. 

To find modules, use:
http://search.cpan.org/
Example:
http://search.cpan.org/search?query=Catalyst%3A%3AAction%3A%3ARenderView&mode=all

Once you found the module you want (note: some a wrappers that include a whole set, so you might something like that for Catalyst if such exists).

http://cpan.perl.org/misc/cpan-faq.html#How_install_Perl_modules
http://theoryx5.uwinnipeg.ca/CPAN/perl/lib/CPAN.html

For example:
Code:
plug ~ # perl -MCPAN -e shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.9402)
Enter 'h' for help.

cpan[1]> h

Display Information                                                (ver 1.9402)
 command  argument          description
 a,b,d,m  WORD or /REGEXP/  about authors, bundles, distributions, modules
 i        WORD or /REGEXP/  about any of the above
 ls       AUTHOR or GLOB    about files in the author's directory
    (with WORD being a module, bundle or author name or a distribution
    name of the form AUTHOR/DISTRIBUTION)

Download, Test, Make, Install...
 get      download                     clean    make clean
 make     make (implies get)           look     open subshell in dist directory
 test     make test (implies make)     readme   display these README files
 install  make install (implies test)  perldoc  display POD documentation

Upgrade
 r        WORDs or /REGEXP/ or NONE    report updates for some/matching/all modules
 upgrade  WORDs or /REGEXP/ or NONE    upgrade some/matching/all modules

Pragmas
 force  CMD    try hard to do command  fforce CMD    try harder
 notest CMD    skip testing

Other
 h,?           display this menu       ! perl-code   eval a perl command
 o conf [opt]  set and query options   q             quit the cpan shell
 reload cpan   load CPAN.pm again      reload index  load newer indices
 autobundle    Snapshot                recent        latest CPAN uploads
cpan[2]> i Catalyst
CPAN: Storable loaded ok (v2.20)
Going to read '/root/.cpan/Metadata'
  Database was generated on Mon, 21 Dec 2009 22:47:20 GMT
Module id = Catalyst
    DESCRIPTION  The Elegant MVC Web Application Framework
    CPAN_USERID  MRAMBERG (Marcus Ramberg <mramberg@cpan.org>)
    CPAN_VERSION 5.80016
    CPAN_FILE    B/BO/BOBTFISH/Catalyst-Runtime-5.80016.tar.gz
    DSLIP_STATUS MmpOp (mature,mailing-list,perl,object-oriented,Standard-Perl)
    INST_FILE    (not installed)


cpan[3]>
Logged

The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation.

Pages: [1]
Print
Jump to: