I'am new to raspberry PI but I've made a small project for my shop. My code is simple, it counts every time a part passes by a sensor and display the total amount on screen. It worked well but I always had to start my python file manually. I wanted my program to start autmatically after booting but I couldn't get it done using systemd service file so i tried adding
sudo python3 /home/pi/Bureau/compteur7.py &
Just before exit 0 in rc.local.
I've boot the PI and now my program works since the display appears and count parts, but I cannot edit or controle my PI using VNC viewer.
I'am kind of anxious that i've screwed the booting parameters, but happy that my program works ?
Can anyone help me? Thanks!