menu_book Course Curriculum (Raspberry Pi) expand_more
Linux & Setup
GPIO Digital I/O
Sensors & Buses
Automation
Networking & Services
filesystem data logging
Learn filesystem data logging in Raspberry Pi with a dedicated explanation, a concept-specific example, practical cautions, and a mastery check.
12 min read
•
Intermediate
raspberry-pi-028.py
python
from datetime import datetime
from pathlib import Path
line=f"{datetime.now().isoformat()},24.6\n"
with Path('/home/pi/temperature.csv').open('a') as f: f.write(line)
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content