Hot answers tagged

3

For the second part: Doing an unattended upgrade can have interesting side-affects. As in a system failure. Not recommended. Instead, I would recommend running a periodic cron job to see what your distribution is offering. If an apt capable system: # In /etc/crontab Running at ferinstance 13:13 on Mondays 13 13 * * 1 root apt-get update && apt-...


2

If you are signalling a voltage level between two devices they need to have a common voltage reference. Connect the grounds of the two Pis.


1

It is unclear what you are trying to do BUT one thing is clear:- .bashrc is NOT intended to run scripts. It is run each time a non-login interactive shell is started and is used to configure the shell. ~/.bashrc: executed by bash(1) for non-login shells.


1

It looks like your code file is named serial.py. Change it to something else! If you name a file in the current working directory after a module, then Python will use that file in your current working directory than the modules installed.


1

Don't run as a limited user. Need to run the script as root or the default Pi account and all is right with the world again.


1

Following code worked for me. Prettey the same version as by "joshuar500", but with callback using: def setup(): GPIO.add_event_detect(button, GPIO.RISING, callback=button_callback, bouncetime=500) # Setup event pin "button" rising edge def button_callback(channel): sleep(0.1) GPIO....


1

I was able to fix this by writing a custom config parser which does not require having sections. I hope that it will be useful for other readers class ConfigParser: def __init__(self, path, line_delimiter='=', comment_delimiter='#'): self.path = path self.line_delimiter = line_delimiter self.comment_delimiter = ...


1

Issues in Android app visualization were given by a faulty network connection. It is pretty difficult to say what happens in detail because I cannot investigate further on access point configuration and other network settings (including firewalls) active on company network since I've not network admin privileges, This's pretty frustrating. As a matter of ...


1

A systemd Unit file could do it. Try this: rpi ~$ sudo systemctl --force --full edit slincam_menu.service In the empty editor insert these statements, save them and quit the editor: [Unit] Description=Slincam Menu After=graphical.target [Service] User=pi WorkingDirectory=/home/pi Environment=DISPLAY=:0 ExecStart=/usr/bin/python3 /home/pi/Documents/slincam/...


1

If you happen to use LightDM, the correct file to start your GUI apps before the desktop environment starts is /etc/lightdm/Xsession. If you want to configure startup differently for each user, you typically put there a line [ -f ~/.xprofile ] && . ~/.xprofile and then configure the startup for a given user by editing their ~/.xprofile.


1

Lines like the one below in your error log are giving you a hint: [Sat Jun 24 12:00:53.928111 2017] [cgid:error] [pid 2640:tid 1945105456] [client ::1:54506] End of script output before headers: Testled2.py /usr/bin/env: python3: No such file or directory By saying python3: No such file or directory, they mean that either the first line of your scripts is ...


1

You can try steps mentioned below. It will take some time to make and make install. Please be patient. sudo apt-get install qt5-default wget https://www.riverbankcomputing.com/static/Downloads/sip/4.19.24/sip-4.19.24.tar.gz tar -xzvf sip-4.19.24.tar.gz cd sip-4.19.24 python configure.py make make install cd ../ wget https://www.riverbankcomputing.com/...


Only top voted, non community-wiki answers of a minimum length are eligible