Ralph_Cramden
Major Contributor
- Joined
- Dec 6, 2020
- Messages
- 3,281
- Likes
- 4,668
ssh in as the pi user: ssh [email protected]Thanks for the tips!
Noob question: what's the ssh command to get to where all this python code lives on the microSD card
sudo nano wiim.py ?
cd wiim
ls -al
this should show a list of files, including wiim.py
Since it's "owned" by the pi user, no need for sudo, just
vi wiim.py
or
nano wiim.py
(hardcore 'nix guys use vi or vim, but it's definitely not for noobs, lol).
Couple of things:
to stop the wiim service while you edit the file:
sudo systemctl stop wiim.service
to start it back up:
sudo systemctl start wiim.service
While testing, just start it from the cmdline instead of starting the service, so you will see any errors
./wiim.py
If you overwrite the file again from github, make sure it's executable:
chmod +x wiim.py
To see any errors thrown while running as a service:
sudo journalctl -u wiim.service
Last edited: