Go to advanced search

by papallot
Sun Jul 14, 2019 7:55 pm
Forum: Beginners
Topic: Using feh over ssh connection
Replies: 7
Views: 1361

Re: Using feh over ssh connection

Awesome, that kind of worked!! I had to remove the inner if because, I don't know why, the condition [ -n "$DISPLAY" ]; it goes false. if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then export DISPLAY=:0 fi I tried that and everything works perfectly. Thanks a lot!! If you don't mind, I would like t...
by papallot
Sun Jul 14, 2019 4:55 pm
Forum: Beginners
Topic: Using feh over ssh connection
Replies: 7
Views: 1361

Re: Using feh over ssh connection

Yes, that is correct. I am displaying the images on a screen connected to the pi with hdmi.

How can I change the variable automatically?

Thanks a lot
by papallot
Sun Jul 14, 2019 3:09 pm
Forum: Beginners
Topic: Using feh over ssh connection
Replies: 7
Views: 1361

Re: Using feh over ssh connection

Thanks for the answer. I have tried with that, but it still doesn't work. After logging in to my raspi as ssh -X 192.168.1.61, if I write "printenv", I see that currently the variable "DISPLAY" is set to "localhost:10" When I run feh, nothing happens on the screen and the terminal is stuck. I can ca...
by papallot
Sun Jul 14, 2019 12:49 pm
Forum: Beginners
Topic: Using feh over ssh connection
Replies: 7
Views: 1361

Using feh over ssh connection

Hello, I am trying to open a picture in my raspberry pi 3b+ from my computer (I have linux mint installed). It is very basic: -I connect to the raspberry: ssh pi@192.168.1.61 -I introduce my password -Once I am in the raspberry, I execute feh: feh /home/pi/mypicture.jpg the following error apperars:...
by papallot
Thu Jul 11, 2019 9:10 pm
Forum: Graphics, sound and multimedia
Topic: play omxplayer from one raspi to another via ssh
Replies: 0
Views: 204

play omxplayer from one raspi to another via ssh

Hello, I have two Raspberry's 3b+ connected to my local network. Let's call them raspiA and raspiB. I have a video video.mov in raspiB which I want to play from raspiA through a python script. In raspiB we have playvideo.py: import os os.system('omxplayer -o alsa --no-osd video.mov &') In raspiA we ...
by papallot
Wed Apr 24, 2019 5:10 pm
Forum: Troubleshooting
Topic: Serial communication not working between Raspi and arduino Uno. (Using Usb cable)
Replies: 2
Views: 715

Re: Serial communication not working between Raspi and arduino Uno. (Using Usb cable)

If anyone interested on the solution:

the problem was that after opening the serial port, arduino is resetting automatically. So I only had to enter a delay of two seconds before sending anything:

ser1 = serial.Serial(port1,9600)
time.sleep(2)
by papallot
Wed Apr 24, 2019 4:29 pm
Forum: Python
Topic: call python script via ssh with password
Replies: 3
Views: 416

Re: call python script via ssh with password

Thanks a lot both of you! It has worked fantastically!
by papallot
Wed Apr 24, 2019 11:20 am
Forum: Python
Topic: call python script via ssh with password
Replies: 3
Views: 416

call python script via ssh with password

Hello, I have two raspberry pi 3 model b+ with raspbian in them. Let's call them RB1(192.1.168.1.54) and RB2(192.168.1.55). I also have a python script in RB1 (script1) and I want to call another script (script2) which is in RB2. currently script1 in RB1 is the following import subprocess subprocess...
by papallot
Thu Dec 20, 2018 3:25 pm
Forum: Python
Topic: Calling python script from php. Wait for RFID reading
Replies: 0
Views: 693

Calling python script from php. Wait for RFID reading

Hi, I have a RFID-RC522 sensor connected to my Raspi 3 model B. Also a server Apache installed in my raspi. My python script basically gets some external parameters and updates the rfid card with those parameters. python script: import sys import registerRfid ##My own class with open("stdout.txt","a...
by papallot
Thu Nov 08, 2018 6:16 pm
Forum: Troubleshooting
Topic: Serial communication not working between Raspi and arduino Uno. (Using Usb cable)
Replies: 2
Views: 715

Serial communication not working between Raspi and arduino Uno. (Using Usb cable)

Hi there, I am trying to control two arduino UNO with my raspberry pi 3 via ports serial using the USB cables. I have got two files: - raspiCode.py (I run it in my Pi to start the serial communication and write something) - ardscriptCode.ino (it is the code in the arduino uno) You can find the code ...

Go to advanced search