Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Raspberry Pi
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Raspberry Pi
I do not own Raspberry Pi and now I have no opportunity to work with RPi.
As soon as possible, I will deal with it.
Pako
As soon as possible, I will deal with it.
Pako
You know flattr ? You can 

- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Raspberry Pi
Finally, I had the opportunity a few hours to play with RPi.
I think that most bugs are fixed.
You can download the new version (0.4).
Paramiko subfolder inside the folder RaspberryPi (meaning, of course, including content) is already worthless and you can delete it.
The buttons "Reboot" and "Power off" should work even if the RPi runs on ArchLinux.
Please do not hesitate with any feedback.
Pako
I think that most bugs are fixed.
You can download the new version (0.4).
Paramiko subfolder inside the folder RaspberryPi (meaning, of course, including content) is already worthless and you can delete it.
The buttons "Reboot" and "Power off" should work even if the RPi runs on ArchLinux.
Please do not hesitate with any feedback.
Pako
You know flattr ? You can 

Re: Raspberry Pi
Hello Pako,
Thank you for updating the plugin. I tried using the new version and get the following error when clicking on "Add New" in Plugin Item Settings window.
Thanks,
kalia
Thank you for updating the plugin. I tried using the new version and get the following error when clicking on "Add New" in Plugin Item Settings window.
Thanks,
kalia
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Raspberry Pi
Thank you for the warning.
I have not tried a case where RPi list is empty ...
Corrected version (0.5) is available.
Pako
I have not tried a case where RPi list is empty ...
Corrected version (0.5) is available.
Pako
You know flattr ? You can 

- Luca Brasi
- Experienced User
- Posts: 262
- Joined: Sat Oct 11, 2008 12:39 pm
Re: Raspberry Pi
hey guys,
don't know maybe I am just stupid but I cant figure out how to send a couple of commands to my raspberry.
I have HarmonyHubCotntrol installed there. So I want to issue those commands
the first command will be accepted but whenever I try to fire one of the others I get
I tried putting the command into quotes and stuff like that to no avail.
Do you have any idea?
don't know maybe I am just stupid but I cant figure out how to send a couple of commands to my raspberry.
I have HarmonyHubCotntrol installed there. So I want to issue those commands
Code: Select all
cd HarmonyHubControl
./HarmonyHubControl [email protected] Pass 192.168.1.210 issue_device_command 22977625 3D
./HarmonyHubControl [email protected] Pass 192.168.1.210 issue_device_command 22977625 Ok
./HarmonyHubControl [email protected] Pass 192.168.1.210 issue_device_command 22977625 DirectionUp
./HarmonyHubControl [email protected] Pass 192.168.1.210 issue_device_command 22977625 OkCode: Select all
19:18:11 bash: ./HarmonyHubControl: Is a directory
19:18:11
19:18:11 Fehler in Befehl: "Raspberry Pi: Send command: mmrp01: ./HarmonyHubControl [email protected] Pass 192.168.1.210 issue_device_command 22977625 3D"
19:18:11 Traceback (most recent call last) (1700):
19:18:11 File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionBase.py", line 170, in CallWrapper
19:18:11 return self(*args)
19:18:11 File "C:\Program Files (x86)\EventGhost\plugins\RaspberryPi\__init__.py", line 1552, in __call__
19:18:11 return self.plugin.rpiCommand(ix, cmd, dis)
19:18:11 File "C:\Program Files (x86)\EventGhost\plugins\RaspberryPi\__init__.py", line 1074, in rpiCommand
19:18:11 res = self.cmd_session(client, cmd, ign)
19:18:11 File "C:\Program Files (x86)\EventGhost\plugins\RaspberryPi\__init__.py", line 1004, in cmd_session
19:18:11 return res.decode("utf-8")
19:18:11 AttributeError: 'NoneType' object has no attribute 'decode'Do you have any idea?
Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi
Re: Raspberry Pi
Hello Luca Brasi,
can you please try if the general SSH plugin can do the job?
viewtopic.php?f=9&t=6021
..I'm just curious
can you please try if the general SSH plugin can do the job?
viewtopic.php?f=9&t=6021
..I'm just curious
- Luca Brasi
- Experienced User
- Posts: 262
- Joined: Sat Oct 11, 2008 12:39 pm
Re: Raspberry Pi
Hi sem;colon and Pako,
no I was not aware of your plugin! But I checked and it works perfectly. Thanks!
I guess your plugin suits my task better than the Raspberry Pi one so Pako I guess it's up to you to decide if you wanna investigate any further...
Thank you guys
no I was not aware of your plugin! But I checked and it works perfectly. Thanks!
I guess your plugin suits my task better than the Raspberry Pi one so Pako I guess it's up to you to decide if you wanna investigate any further...
Thank you guys
Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Raspberry Pi
Of course, I would like to improve RPI plugin.Luca Brasi wrote:I guess your plugin suits my task better than the Raspberry Pi one so Pako I guess it's up to you to decide if you wanna investigate any further...
But I do not know how to invoke the same error, what appears to you.
I'm trying - for example - this:and everything is OK.
Pako
You know flattr ? You can 

- Luca Brasi
- Experienced User
- Posts: 262
- Joined: Sat Oct 11, 2008 12:39 pm
Re: Raspberry Pi
I think I got it figured out. Hope I can explain...
The error is caused by the logic of my commands.
I took them from a putty command list. Putty will take it, open a ssh session to the rpi and issue the commands. All in this same session.
So my first command will make the rpi to go into a folder called HarmonyHubControl and the consecutive commands will be executed there.
./HarmonyHubControl is a script inside home/myuser/HarmonyHubControl
On the other hand, I guess, the rpi plugin will open a session for each command I have in my macro. Which looks like this
So the first command will work cause it finds a folder called HarmonyHubControl in my home folder.
But the second one will be executed from the home folder as well. Where HarmonyHubControl is a folder an not a script.
will lead to the error
So if I leave out the folder change in the first line and go with the absolute path in the consecutive lines it works
My previous commands work in the ssh plugin cause it works different. There a session is opened and the commands will all be executed within this session.
So I guess your plugin is fine. It just wasn't clear to me how it works. Don't know if that should be made clearer at any point or if you might consider a change in the plugin.
Bottom line is that you could just leave it as is and users might find this post if they go down the same road as I did...
The error is caused by the logic of my commands.
I took them from a putty command list. Putty will take it, open a ssh session to the rpi and issue the commands. All in this same session.
So my first command will make the rpi to go into a folder called HarmonyHubControl and the consecutive commands will be executed there.
Code: Select all
cd HarmonyHubControl
./HarmonyHubControl [email protected] Pass 192.168.1.210 issue_device_command 22977625 3DOn the other hand, I guess, the rpi plugin will open a session for each command I have in my macro. Which looks like this
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1700">
<Macro Name="3D" Expanded="True">
<Action>
RaspberryPi.SendCommand(1, u'mmrp01', u'cd HarmonyHubControl', 0)
</Action>
<Action>
RaspberryPi.SendCommand(1, u'mmrp01', u'./HarmonyHubControl [email protected] Pass 192.168.1.210 issue_device_command 2291625 3D', 0)
</Action>
<Action>
RaspberryPi.SendCommand(1, u'mmrp01', u'./HarmonyHubControl [email protected] Pass 192.168.1.210 issue_device_command 2291625 Ok', 0)
</Action>
<Action>
RaspberryPi.SendCommand(1, u'mmrp01', u'./HarmonyHubControl [email protected] Pass 192.168.1.210 issue_device_command 2291625 DirectionUp', 0)
</Action>
<Action>
RaspberryPi.SendCommand(1, u'mmrp01', u'./HarmonyHubControl [email protected] Pass 192.168.1.210 issue_device_command 2291625 Ok', 0)
</Action>
</Macro>
</EventGhost>But the second one will be executed from the home folder as well. Where HarmonyHubControl is a folder an not a script.
Code: Select all
eg.plugins.RaspberryPi.SendCommand(1, u'mmrp01', u'./HarmonyHubControl [email protected] Pass 192.168.77.210 issue_device_command 22977625 3D', 0)Code: Select all
19:18:11 bash: ./HarmonyHubControl: Is a directoryCode: Select all
/home/myuser/HarmonyHubControl/HarmonyHubControl [email protected] Pass 192.168.1.210 issue_device_command 22977625 3DSo I guess your plugin is fine. It just wasn't clear to me how it works. Don't know if that should be made clearer at any point or if you might consider a change in the plugin.
Bottom line is that you could just leave it as is and users might find this post if they go down the same road as I did...
Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Raspberry Pi
Yes, your explanation is correct.
This plugin uses for each individual command a separate session.
This I do not plan to change.
But I will consider whether it will be possible to send multiple commands at once (within a single action).
Pako
This plugin uses for each individual command a separate session.
This I do not plan to change.
But I will consider whether it will be possible to send multiple commands at once (within a single action).
Pako
You know flattr ? You can 

- Luca Brasi
- Experienced User
- Posts: 262
- Joined: Sat Oct 11, 2008 12:39 pm
Re: Raspberry Pi
That'd be cool.
I was researching for the same thing earlier today.
Found this site with info
http://thornelabs.net/2013/08/21/simple ... r-ssh.html
Maybe can be of use for you as well.
I was researching for the same thing earlier today.
Found this site with info
http://thornelabs.net/2013/08/21/simple ... r-ssh.html
Maybe can be of use for you as well.
Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Raspberry Pi
The new version (0.6) is available.
Action Send command can now contain multiple lines (multiple commands).
Note:
It can be confusing that the results of all the commands are grouped together.
Pako
Action Send command can now contain multiple lines (multiple commands).
Note:
It can be confusing that the results of all the commands are grouped together.
Pako
You know flattr ? You can 

Re: Raspberry Pi
Working well for me, thanks!
Re: Raspberry Pi
Hi
A couple of questions with this..
The Enable and Disable Rpi. is that purely for the list of observed values? so if I have disabled all those I dont need to worry about enabling or disabling? (for some reason the core voltage or core temperature fails, not sure if its a time out issue).
I just got a unicornhat for my pi (http://shop.pimoroni.com/products/unicorn-hat) and this plugin seems a great way to get it to display messages from EG
thanks again Pako
A couple of questions with this..
The Enable and Disable Rpi. is that purely for the list of observed values? so if I have disabled all those I dont need to worry about enabling or disabling? (for some reason the core voltage or core temperature fails, not sure if its a time out issue).
I just got a unicornhat for my pi (http://shop.pimoroni.com/products/unicorn-hat) and this plugin seems a great way to get it to display messages from EG
thanks again Pako
Re: Raspberry Pi
Hi
Im keen to use this to run a line of code to backup a few pi's on a weekly basis.
The script uses the command sudo dd if=/dev/mmcblk0p2 of=/media/backup/backup.img bs=1M which then backs up the whole of the SD card to a network location.
However, during this period eventghost is locked up and showing the yellow symbol in the bottom corner. As its backing up 8gb it takes some time, is there a way for me to send this command to the pi and leave it to do its thing?
The whole command I send involves first mounting the drive, then the backup then unmount using && between commands, if this makes any difference.
thanks
Im keen to use this to run a line of code to backup a few pi's on a weekly basis.
The script uses the command sudo dd if=/dev/mmcblk0p2 of=/media/backup/backup.img bs=1M which then backs up the whole of the SD card to a network location.
However, during this period eventghost is locked up and showing the yellow symbol in the bottom corner. As its backing up 8gb it takes some time, is there a way for me to send this command to the pi and leave it to do its thing?
The whole command I send involves first mounting the drive, then the backup then unmount using && between commands, if this makes any difference.
thanks
