Raspberry Pi
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Raspberry Pi
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
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 277 times
-
- RaspberryPi.zip
- Version 0.5
- (604.53 KiB) Downloaded 195 times
-
- RaspberryPi.zip
- Version 0.3
- (731.99 KiB) Downloaded 369 times
You know flattr ? You can 

Re: Raspberry Pi
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
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
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Raspberry Pi
It is very simple.rdgerken wrote:Can you explain how the Send command action works?
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.
Of course - if it is possible with the terminal, it is also possible with EventGhost/RPi plugin.rdgerken wrote:Also, is it possible to control the GPIO from this plugin?
Please write here your experience with this plugin!
Pako
You know flattr ? You can 

Re: Raspberry Pi
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
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:
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?
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)
#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?
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Raspberry Pi
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
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
-
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Raspberry Pi
This command works fine in my setup:
I think you need to send the commands with root privilige using 'sudo' as keyword
Code: Select all
print eg.plugins.RaspberryPi.SendCommand(0, u'NameOfYourRPi', u'sudo reboot', 0)
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Raspberry Pi
No, the command works perfectly, but EG crashes!krambriw wrote:This command works fine in my setup:
I think you need to send the commands with root privilige using 'sudo' as keywordCode: Select all
print eg.plugins.RaspberryPi.SendCommand(0, u'NameOfYourRPi', u'sudo reboot', 0)

I tried it with openelec
-
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Raspberry Pi
I meant in my case, the command works fine and EG is NOT crashing...
BR
BR
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Raspberry Pi
You are right, I just tested it with raspbian - here it works.krambriw wrote:I meant in my case, the command works fine and EG is NOT crashing...
BR
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.
-
- Posts: 1
- Joined: Wed Jan 29, 2014 12:06 am
Re: Raspberry Pi
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.
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Raspberry Pi
And what you do not understand?tdecurtins wrote:But I dont really understand how to use it.
How far have you progressed?
From which place you're stuck?
Pako
You know flattr ? You can 

Re: Raspberry Pi
Hello,
I get the following error when trying to connect to the Raspberry Pi using this plugin. Does this plugin still work?
Thanks,
Kalia
I get the following error when trying to connect to the Raspberry Pi using this plugin. Does this plugin still work?
Thanks,
Kalia
- Luca Brasi
- Experienced User
- Posts: 262
- Joined: Sat Oct 11, 2008 12:39 pm
Re: Raspberry Pi
Same for me...
Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi