Skip to content

olegku-dev/csvlog-web-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSV Log Web Visualizer

Simple web interface to visualize temperature and humidity data from a CSV file. Users can upload a CSV log file and get a rendered graph using matplotlib directly in their browser.


Hardware

  • Raspberry Pi (any model that can run a Python HTTP server)
  • Generated CSV data from a DHT11 logger project for example

Project Structure

csvlog-web-visualizer/ .gitignore README.md requirements.txt data/ sensor_sample_data.csv docs/ output_web_page.png src/ web_visualizer.py


Setup

  1. Clone the repository:

    git clone https://github.com/olegku-dev/csvlog-web-visualizer.git
    cd csvlog-web-visualizer
    
  2. Install Python dependencies (If not installed):

    pip3 install -r requirements.txt
    
  3. Install system-wide matplotlib (If not installed):

    sudo apt install python3-matplotlib
    

Run the Visualizer

From the root project folder:

cd src
chmod +x web_visualizer.py
python3 -m http.server 8080 --cgi

Open browser and visit:

http://localhost:8080/cgi-bin/web_visualizer.py

*Ensure web_visualizer.py is in a cgi-bin/ folder to allow execution.


CSV Format

Expected CSV format:

YYYY-MM-DD HH:MM:SS, temperature, humidity

Example:

2024-10-29 18:07:12, 34.7, 45.0

Example Output

Graph Output

About

Web-based CSV temperature and humidity graph visualizer using matplotlib

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages