From tmurray at wumpus-cave.net Tue Jul 22 06:23:51 2014 From: tmurray at wumpus-cave.net (Timm Murray) Date: Tue, 22 Jul 2014 08:23:51 -0500 Subject: [Hardware-pm] Device::PCDuino Message-ID: I wrote a library for controlling the pcDuino's GPIO ports. Thought this would be of interest to people around here. https://www.wumpus-cave.net/2014/07/21/devicepcduino-perl-module-for-accessing-io-on-the-pcduino/ Thanks, Timm -------------- next part -------------- An HTML attachment was scrubbed... URL: From vikas at cpan.org Tue Jul 22 06:29:05 2014 From: vikas at cpan.org (Vikas N Kumar) Date: Tue, 22 Jul 2014 09:29:05 -0400 Subject: [Hardware-pm] Device::PCDuino In-Reply-To: References: Message-ID: <53CE6721.6030101@cpan.org> On 07/22/2014 09:23 AM, Timm Murray wrote: > I wrote a library for controlling the pcDuino's GPIO ports. Thought > this would be of interest to people around here. Hi Timm, Does this module run directly on the pcDuino running *buntu or is it running on the PC and controlling the ports via USB or something else ? Thanks Vikas From tmurray at wumpus-cave.net Tue Jul 22 06:34:41 2014 From: tmurray at wumpus-cave.net (Timm Murray) Date: Tue, 22 Jul 2014 08:34:41 -0500 Subject: [Hardware-pm] Perl WebIO Equivalent Message-ID: So I was thinking about doing a garage door opener with Raspberry Pi, and in Adafruit's tutorial, there was a link to WebIO: https://code.google.com/p/webiopi/ This provides a framework with a REST API for controlling the Pi's control pins from a browser. It's written in Python, and the REST API is documented in the tutorial sections for the devices: https://code.google.com/p/webiopi/wiki/Tutorial_Devices I'd like to see a Perl equivalent with some improvements: * Written with Mojo or Dancer (I'm partial to Mojo, but not strongly), plus Moose (Moo? Mo?) * Supports cameras with an HTML5 video stream * Plugable backends to support the Rpi, pcDuino, or any of the dozens of other single board computers that are coming out It'll be a fair-sized project. Is anybody else interested in working on this? Thanks, Timm -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmurray at wumpus-cave.net Tue Jul 22 07:09:37 2014 From: tmurray at wumpus-cave.net (Timm Murray) Date: Tue, 22 Jul 2014 09:09:37 -0500 Subject: [Hardware-pm] Device::PCDuino In-Reply-To: <53CE6721.6030101@cpan.org> References: <53CE6721.6030101@cpan.org> Message-ID: Right on *buntu. It accesses the virtual devices in /sys or /proc. I'm not sure if the Android builds do things the same way or not. On Tue, Jul 22, 2014 at 8:29 AM, Vikas N Kumar wrote: > On 07/22/2014 09:23 AM, Timm Murray wrote: > > I wrote a library for controlling the pcDuino's GPIO ports. Thought > > this would be of interest to people around here. > > Hi Timm, > > Does this module run directly on the pcDuino running *buntu or is it > running on the PC and controlling the ports via USB or something else ? > > Thanks > Vikas > _______________________________________________ > Hardware-pm mailing list > Hardware-pm at pm.org > http://mail.pm.org/mailman/listinfo/hardware-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zak.zebrowski at gmail.com Tue Jul 22 07:45:45 2014 From: zak.zebrowski at gmail.com (Zachary Zebrowski) Date: Tue, 22 Jul 2014 10:45:45 -0400 Subject: [Hardware-pm] Perl WebIO Equivalent In-Reply-To: References: Message-ID: Honestly, if there were a *simple* raspberry pi cpan module that would just let me do the equivalent python code of: 1) set pin i/o 2) flip pin hi / lo 3) Support for rasppbery pi b / b+ I would be happy. I know there are two modules out there, but they seem complicated compare to the way the python folks are doing it in there sample code... (Or, I haven't seen good examples yet that made me think "ah, that makes sense".) $0.02 On Tue, Jul 22, 2014 at 9:34 AM, Timm Murray wrote: > So I was thinking about doing a garage door opener with Raspberry Pi, and > in Adafruit's tutorial, there was a link to WebIO: > > https://code.google.com/p/webiopi/ > > This provides a framework with a REST API for controlling the Pi's control > pins from a browser. It's written in Python, and the REST API is > documented in the tutorial sections for the devices: > > https://code.google.com/p/webiopi/wiki/Tutorial_Devices > > I'd like to see a Perl equivalent with some improvements: > > * Written with Mojo or Dancer (I'm partial to Mojo, but not strongly), > plus Moose (Moo? Mo?) > * Supports cameras with an HTML5 video stream > * Plugable backends to support the Rpi, pcDuino, or any of the dozens of > other single board computers that are coming out > > It'll be a fair-sized project. Is anybody else interested in working on > this? > > Thanks, > Timm > > _______________________________________________ > Hardware-pm mailing list > Hardware-pm at pm.org > http://mail.pm.org/mailman/listinfo/hardware-pm > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmurray at wumpus-cave.net Tue Jul 22 08:40:30 2014 From: tmurray at wumpus-cave.net (Timm Murray) Date: Tue, 22 Jul 2014 10:40:30 -0500 Subject: [Hardware-pm] Perl WebIO Equivalent In-Reply-To: References: Message-ID: Have you tried HiPi::Wiring? I don't think it exports the functions by default, forcing you to qualify the namespace. Other than that, it gets close to what you want: https://github.com/frezik/rpi_perl_presentation/blob/master/switch_blink.pl The above is one of the examples from my Raspberry Pi presentation. All the slides and example code are up on github. Thanks, Timm On Tue, Jul 22, 2014 at 9:45 AM, Zachary Zebrowski wrote: > Honestly, if there were a *simple* raspberry pi cpan module that would > just let me do the equivalent python code of: > 1) set pin i/o > 2) flip pin hi / lo > 3) Support for rasppbery pi b / b+ > > I would be happy. > > I know there are two modules out there, but they seem complicated compare > to the way the python folks are doing it in there sample code... (Or, I > haven't seen good examples yet that made me think "ah, that makes sense".) > > $0.02 > > > > On Tue, Jul 22, 2014 at 9:34 AM, Timm Murray > wrote: > >> So I was thinking about doing a garage door opener with Raspberry Pi, and >> in Adafruit's tutorial, there was a link to WebIO: >> >> https://code.google.com/p/webiopi/ >> >> This provides a framework with a REST API for controlling the Pi's >> control pins from a browser. It's written in Python, and the REST API is >> documented in the tutorial sections for the devices: >> >> https://code.google.com/p/webiopi/wiki/Tutorial_Devices >> >> I'd like to see a Perl equivalent with some improvements: >> >> * Written with Mojo or Dancer (I'm partial to Mojo, but not strongly), >> plus Moose (Moo? Mo?) >> * Supports cameras with an HTML5 video stream >> * Plugable backends to support the Rpi, pcDuino, or any of the dozens of >> other single board computers that are coming out >> >> It'll be a fair-sized project. Is anybody else interested in working on >> this? >> >> Thanks, >> Timm >> >> _______________________________________________ >> Hardware-pm mailing list >> Hardware-pm at pm.org >> http://mail.pm.org/mailman/listinfo/hardware-pm >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zak.zebrowski at gmail.com Tue Jul 22 08:49:58 2014 From: zak.zebrowski at gmail.com (Zachary Zebrowski) Date: Tue, 22 Jul 2014 11:49:58 -0400 Subject: [Hardware-pm] Perl WebIO Equivalent In-Reply-To: References: Message-ID: I did not come across that one, I came across two others, that is exactly what I'm looking for, thanks! :-) Zak On Tue, Jul 22, 2014 at 11:40 AM, Timm Murray wrote: > Have you tried HiPi::Wiring? I don't think it exports the functions by > default, forcing you to qualify the namespace. Other than that, it gets > close to what you want: > > https://github.com/frezik/rpi_perl_presentation/blob/master/switch_blink.pl > > The above is one of the examples from my Raspberry Pi presentation. All > the slides and example code are up on github. > > Thanks, > Timm > > > On Tue, Jul 22, 2014 at 9:45 AM, Zachary Zebrowski < > zak.zebrowski at gmail.com> wrote: > >> Honestly, if there were a *simple* raspberry pi cpan module that would >> just let me do the equivalent python code of: >> 1) set pin i/o >> 2) flip pin hi / lo >> 3) Support for rasppbery pi b / b+ >> >> I would be happy. >> >> I know there are two modules out there, but they seem complicated compare >> to the way the python folks are doing it in there sample code... (Or, I >> haven't seen good examples yet that made me think "ah, that makes sense".) >> >> $0.02 >> >> >> >> On Tue, Jul 22, 2014 at 9:34 AM, Timm Murray >> wrote: >> >>> So I was thinking about doing a garage door opener with Raspberry Pi, >>> and in Adafruit's tutorial, there was a link to WebIO: >>> >>> https://code.google.com/p/webiopi/ >>> >>> This provides a framework with a REST API for controlling the Pi's >>> control pins from a browser. It's written in Python, and the REST API is >>> documented in the tutorial sections for the devices: >>> >>> https://code.google.com/p/webiopi/wiki/Tutorial_Devices >>> >>> I'd like to see a Perl equivalent with some improvements: >>> >>> * Written with Mojo or Dancer (I'm partial to Mojo, but not strongly), >>> plus Moose (Moo? Mo?) >>> * Supports cameras with an HTML5 video stream >>> * Plugable backends to support the Rpi, pcDuino, or any of the dozens of >>> other single board computers that are coming out >>> >>> It'll be a fair-sized project. Is anybody else interested in working on >>> this? >>> >>> Thanks, >>> Timm >>> >>> _______________________________________________ >>> Hardware-pm mailing list >>> Hardware-pm at pm.org >>> http://mail.pm.org/mailman/listinfo/hardware-pm >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: