|
Post by Powderjockey on May 12, 2020 17:24:48 GMT -8
Same old, pigpiod runs and nothing else. I'm frustrated with this start up at start up. When is the python3 script going to be ready?
|
|
|
Post by SDL on May 13, 2020 12:27:43 GMT -8
PowerderJockey,
You will an announcement for the python3 system in the next month. We have a couple of beta units out now, but the software is not totally complete.
BP
|
|
|
Post by Jason on May 18, 2020 11:16:34 GMT -8
Hello all. New here and have been doing a ton of tinkering with my kit since I received it about two weeks ago. I use systemctl to manage services on my Raspberry Pi. The following command was used to enable pigpiod:
sudo systemctl enable pigpiod
I also created a service file in my SDL_Pi_SkyWeather directory titled skyweather.service. The contents are as follows:
[Unit] Description=SkyWeather Station After=network.target pigpiod.service
[Service] Type=simple User=root Group=root StandardOutput=file:/home/pi/SDL_Pi_SkyWeather/logs/skyweather.out StandardError=file:/home/pi/SDL_Pi_SkyWeather/logs/skyweather.err WorkingDirectory=/home/pi/SDL_Pi_SkyWeather ExecStart=/usr/bin/python /home/pi/SDL_Pi_SkyWeather/SkyWeather.py Restart=on-abort
[Install] WantedBy=multi-user.target
I did create the directory /home/pi/SDL_Pi_SkyWeather/logs manually:
sudo mkdir /home/pi/SDL_Pi_SkyWeather/logs
I needed to set permissions on the log folder to 777:
sudo chmod 777 /home/pi/SDL_Pi_SkyWeather/logs
Lastly, I created a symlink from the SDL_Pi_SkyWeather file to /etc/systemd/system using the following command:
sudo ln -sf /home/pi/SDL_Pi_SkyWeather/skyweather.service /etc/systemd/system/skyweather.service
Once the symlink is place, the service daemon was reloaded:
sudo systemctl daemon-reload
Once the service daemon was reloaded, I enabled the service:
sudo systemctl enable skyweather.service
Finally, I started the service:
sudo systemctl start skyweather.service
|
|
|
Post by SDL on May 19, 2020 15:03:37 GMT -8
Thank you! There are so many different ways of doing this!
BP
|
|