Go to advanced search

by darkbladerxs
Fri Feb 01, 2019 10:28 am
Forum: Beginners
Topic: Raspberry time sync with another raspberry
Replies: 5
Views: 317

Re: Raspberry time sync with another raspberry

If they are both on the same LAN, you can set up NTP on the one so it shares its time and then set up NTP on the other so that it polls that shared time from the first one and syncs to it. There are two packages to choose from, openntpd and ntp. I've figured out that the best solution for my projec...
by darkbladerxs
Tue Jan 29, 2019 8:18 pm
Forum: Beginners
Topic: Raspberry time sync with another raspberry
Replies: 5
Views: 317

Re: Raspberry time sync with another raspberry

If they are both on the same LAN, you can set up NTP on the one so it shares its time and then set up NTP on the other so that it polls that shared time from the first one and syncs to it. There are two packages to choose from, openntpd and ntp. Thanks for your advice! I'll try the solutions you ha...
by darkbladerxs
Tue Jan 29, 2019 1:55 pm
Forum: Beginners
Topic: Raspberry time sync with another raspberry
Replies: 5
Views: 317

Raspberry time sync with another raspberry

Hi, I have two different raspberries 3 (R1 and R2) and I'd like to sync the time and date of R1 on the basis of the time/date of R2. Is it possible considering that they are both connected on a local network without internet connection.
by darkbladerxs
Thu Jan 17, 2019 4:24 pm
Forum: Troubleshooting
Topic: Issue starting scripts at system startup
Replies: 1
Views: 153

Issue starting scripts at system startup

Ok guys, I'm facing an other problem with the raspberry: I've created two scripts main.py and send.py that are executed through the lxterminal by the system at the raspberry startup using a .sh file. The problem is that on the raspberry 3A+ the two scripts only start when I move the mouse or I press...
by darkbladerxs
Thu Jan 17, 2019 8:58 am
Forum: Troubleshooting
Topic: Start .sh script at raspberry startup
Replies: 7
Views: 1342

Re: Start .sh script at raspberry startup

Ok. Another way is to put .desktop files in ~/.config/autostart/ one for each script. That specification is hard to read and use but the basic file (say for example ~/.config/autostart/python-script-01.desktop) could look like this: [Desktop Entry] Name=Custom Python Script Inside LXTerminal Generi...
by darkbladerxs
Wed Jan 16, 2019 3:48 pm
Forum: Troubleshooting
Topic: Start .sh script at raspberry startup
Replies: 7
Views: 1342

Re: Start .sh script at raspberry startup

How are you setting the $DISPLAY environment variable? If it is a graphical program it must be told where to send the output. Without a value, such as ":0.0", it won't do anything. #! /bin/sh export DISPLAY=:0.0 lxterminal -e python3 /home/pi/Desktop/Functions/send.py lxterminal -e python3 /home/pi...
by darkbladerxs
Wed Jan 16, 2019 3:33 pm
Forum: Troubleshooting
Topic: Start .sh script at raspberry startup
Replies: 7
Views: 1342

Re: Start .sh script at raspberry startup

put it in your lxde autostart file Thanks for your reply, I have tried add this code at the end of the autostart file: @sh /home/pi/Desktop/main_start.sh The first file I've modified was etc/xdg/lxsession/LXDE/autostart but the program doesn't start, so I've tried to edit etc/xdg/lxsession/LXDE-pi/...
by darkbladerxs
Wed Jan 16, 2019 3:03 pm
Forum: Troubleshooting
Topic: Start .sh script at raspberry startup
Replies: 7
Views: 1342

Start .sh script at raspberry startup

Hi guys, I've made a main_start.sh script that should be used to run two python scripts through lxterminal (and I want to show the print of the two python scripts on the lxterminal window). The main_start.sh file is this: #! /bin/sh lxterminal -e python3 /home/pi/Desktop/Functions/send.py lxterminal...
by darkbladerxs
Tue Jan 15, 2019 3:02 pm
Forum: Python
Topic: Run python script using paramiko and lxterminal
Replies: 0
Views: 619

Run python script using paramiko and lxterminal

Hi guys, I'm trying to setup a communication between two different raspberries using the paramiko library, in particular I need to exchange files between the two and run some python scripts. The system works like this: The raspberry_0 is used as a master that can send some instructions to the slave ...

Go to advanced search