Page 1 of 3

Raspberry Pi

Posted: Mon Sep 30, 2013 6:31 pm
by Pako
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

Re: Raspberry Pi

Posted: Thu Dec 26, 2013 12:51 am
by rdgerken
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

Re: Raspberry Pi

Posted: Thu Dec 26, 2013 8:23 am
by Pako
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

Re: Raspberry Pi

Posted: Thu Dec 26, 2013 8:43 pm
by bskchaos
I will try to play with this during holidays, but honestly I wish the whole EventGhost pack would be available for the Pi.

Re: Raspberry Pi

Posted: Fri Jan 10, 2014 10:33 pm
by Sem;colon
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?

Re: Raspberry Pi

Posted: Sun Jan 12, 2014 9:29 am
by Pako
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

Re: Raspberry Pi

Posted: Sun Jan 12, 2014 12:27 pm
by Sem;colon
Awesome!
I'm awaiting your improvements :)

Re: Raspberry Pi

Posted: Fri Jan 17, 2014 7:23 am
by krambriw
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

Re: Raspberry Pi

Posted: Fri Jan 17, 2014 10:04 am
by Sem;colon
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

Re: Raspberry Pi

Posted: Fri Jan 17, 2014 11:17 am
by krambriw
I meant in my case, the command works fine and EG is NOT crashing...

BR

Re: Raspberry Pi

Posted: Tue Jan 21, 2014 10:34 pm
by Sem;colon
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..

Re: Raspberry Pi

Posted: Wed Jan 29, 2014 12:11 am
by tdecurtins
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.

Re: Raspberry Pi

Posted: Sat Feb 08, 2014 9:45 am
by Pako
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

Re: Raspberry Pi

Posted: Thu Apr 16, 2015 4:20 pm
by kalia
Hello,

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

Thanks,

Kalia

Re: Raspberry Pi

Posted: Fri Apr 17, 2015 7:13 am
by Luca Brasi
Same for me...