Raspberry Pi

Questions and comments specific to a particular plugin should go here.
User avatar
Pako
Plugin Developer
Posts: 2290
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Raspberry Pi

Post by Pako » Mon Sep 30, 2013 6:31 pm

I found that even among members of this forum are some users Raspberry Pi.
This is no surprise, because RPi is the amazing little device with huge potential.
So I think it would be helpful if the RPi will also have a plugin.
So I wrote one, and today I'm releasing it for you.
Very helped me krambriw, especially with testing and proofreading.
Thank you Walter !!!

Now you can automatically monitors the status of your RPi and remotely control it.
Remember that action Send command can return a result. You get it as eg.result.

I beg you: please send your comments (positive and negative) and also your requirements and suggestions.

Thanks, Pako
Attachments
RaspberryPi.zip
Version 0.6
(604.6 KiB) Downloaded 185 times
RaspberryPi.zip
Version 0.5
(604.53 KiB) Downloaded 111 times
RaspberryPi.zip
Version 0.3
(731.99 KiB) Downloaded 283 times
You know flattr ? You can Image

rdgerken
Experienced User
Posts: 86
Joined: Fri Sep 21, 2012 7:41 pm

Re: Raspberry Pi

Post by rdgerken » Thu Dec 26, 2013 12:51 am

Pako,

Just got a Pi and was playing around with your plugin. Can you explain how the Send command action works? I'm not quite sure how to use that. Also, is it possible to control the GPIO from this plugin?

Thanks!

Ryan

User avatar
Pako
Plugin Developer
Posts: 2290
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Raspberry Pi

Post by Pako » Thu Dec 26, 2013 8:23 am

rdgerken wrote:Can you explain how the Send command action works?
It is very simple.
You know how to use a telnet/ssh terminal (mostly putty) while working with RPi?
I suppose so.
So the "Send command" action - it's like just one command in a terminal window.
rdgerken wrote:Also, is it possible to control the GPIO from this plugin?
Of course - if it is possible with the terminal, it is also possible with EventGhost/RPi plugin.

Please write here your experience with this plugin!

Pako
You know flattr ? You can Image

bskchaos
Experienced User
Posts: 55
Joined: Tue Mar 25, 2008 3:04 pm

Re: Raspberry Pi

Post by bskchaos » Thu Dec 26, 2013 8:43 pm

I will try to play with this during holidays, but honestly I wish the whole EventGhost pack would be available for the Pi.

Sem;colon
Experienced User
Posts: 589
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Raspberry Pi

Post by Sem;colon » Fri Jan 10, 2014 10:33 pm

Hi Pako,

I've got my RPi 3 days ago and just tested your plugin and like to give you some feedback.

First of all thank you for the plugin, it's a very cool thing to have a EG plugin to control the Raspberry Pi!

Anyway, a few things confused me (at first):
#1. It would have been nice to mention that the plugin communicates over ssh and that ssh therefore needs to be enabled on the Raspberry Pi... The only thing I found that leads to ssh is the predefined port 22 - which I don't think everyone knows that it is ssh.
#2. The Two fields RPi name and Event name - why did you choose to make two different fields? This could easily handled with just one "Name" or "Name in EventGhost" - the two fields at confusing if configuring a RPi for the first time..
#3. The following command kills EG:

Code: Select all

print eg.plugins.RaspberryPi.SendCommand(0, u'NameOfYourRPi', u'reboot', 0)
I could imagine that a time-out is missing somewhere.
#4. It's taking quite some time till the command is processed by the RPi (2 sec or something) - that's not a general behaviour, if I connect to the RPi by putty and setup the same command it is processed immediately. Without looking at the code I could imagine that every time a command is sent, a new ssh connection will be established - if so, isn't it possible to leave it just open and send the commands over the open connection?

User avatar
Pako
Plugin Developer
Posts: 2290
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Raspberry Pi

Post by Pako » Sun Jan 12, 2014 9:29 am

Hi Sem;colon,
I thank you very much for your inspiring feedback.
It would be nice if other users would behave the same way...
I (now) do not have the opportunity to deal with it, but I will definitely come back to it.

Pako

Sem;colon
Experienced User
Posts: 589
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Raspberry Pi

Post by Sem;colon » Sun Jan 12, 2014 12:27 pm

Awesome!
I'm awaiting your improvements :)

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Raspberry Pi

Post by krambriw » Fri Jan 17, 2014 7:23 am

This command works fine in my setup:

Code: Select all

print eg.plugins.RaspberryPi.SendCommand(0, u'NameOfYourRPi', u'sudo reboot', 0)
I think you need to send the commands with root privilige using 'sudo' as keyword

Sem;colon
Experienced User
Posts: 589
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Raspberry Pi

Post by Sem;colon » Fri Jan 17, 2014 10:04 am

krambriw wrote:This command works fine in my setup:

Code: Select all

print eg.plugins.RaspberryPi.SendCommand(0, u'NameOfYourRPi', u'sudo reboot', 0)
I think you need to send the commands with root privilige using 'sudo' as keyword
No, the command works perfectly, but EG crashes!
:wink:

I tried it with openelec

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Raspberry Pi

Post by krambriw » Fri Jan 17, 2014 11:17 am

I meant in my case, the command works fine and EG is NOT crashing...

BR

Sem;colon
Experienced User
Posts: 589
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Raspberry Pi

Post by Sem;colon » Tue Jan 21, 2014 10:34 pm

krambriw wrote:I meant in my case, the command works fine and EG is NOT crashing...

BR
You are right, I just tested it with raspbian - here it works.

Anyway, setting up the command with openELEC causes EG to crash.

And another thing: I can't get any "sudo" command to work with raspbmc...(for exaple when I try "sudo ifconfig" I always get an error "command not found")... commands that don't need to be executed as root are working... strange..
Last edited by Sem;colon on Mon Feb 24, 2014 9:34 pm, edited 1 time in total.

tdecurtins
Posts: 1
Joined: Wed Jan 29, 2014 12:06 am

Re: Raspberry Pi

Post by tdecurtins » Wed Jan 29, 2014 12:11 am

I see this plugin has great potential for me. But I dont really understand how to use it. What I want to do is check the status of tvservice on my pi from eventghost. tvservice --status is the command. It outputs a static response for on or off.

User avatar
Pako
Plugin Developer
Posts: 2290
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Raspberry Pi

Post by Pako » Sat Feb 08, 2014 9:45 am

tdecurtins wrote:But I dont really understand how to use it.
And what you do not understand?
How far have you progressed?
From which place you're stuck?

Pako
You know flattr ? You can Image

kalia
Experienced User
Posts: 109
Joined: Wed Aug 12, 2009 1:10 am

Re: Raspberry Pi

Post by kalia » Thu Apr 16, 2015 4:20 pm

Hello,

I get the following error when trying to connect to the Raspberry Pi using this plugin. Does this plugin still work?

Thanks,

Kalia
Attachments
Capture.PNG
pi error

User avatar
Luca Brasi
Experienced User
Posts: 262
Joined: Sat Oct 11, 2008 12:39 pm

Re: Raspberry Pi

Post by Luca Brasi » Fri Apr 17, 2015 7:13 am

Same for me...
Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi

Post Reply