All Questions
5 questions
0
votes
2
answers
555
views
Run python script as systemd service
I'm trying to invoke a python script as a service AND send it's output to a log file. I created the file /etc/systemd/system/rfsensor.service, with this content:
[Unit]
Description=rfsensor
After=...
0
votes
0
answers
131
views
If I start a script using audostart where do my logs go?
I've added an entry to my /etc/xdg/lxsession/LXDE-pi/autostart file as follows:
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@/usr/bin/python /home/pi/...
0
votes
2
answers
112
views
Adding Averages to my Data Logger
I am using this Python program to log data from a serial device, and want to add a second document that logs hourly averages of the data. Anyone have an idea on how to add hourly averages?
#!/usr/bin/...
2
votes
1
answer
4k
views
logging data when using crontab
Edits: added comments to code.
I am running a small .py script on my Raspberry Pi with a DHT11 sensor and 3 LEDs.
I am starting the program on boot with crontab, and everything is running fine apart ...
3
votes
1
answer
1k
views
Data logging during power loss
My Raspberry Pi, model B, is going to be sent up on a hydrogen balloon to collect data on some solar panels. I've written a python script to collect data from these panels using 3 INA219s connected to ...