Giter Site home page Giter Site logo

data-logger-app's Introduction

Generating Graphs and CSV for Data Logger UPT ME Amikom

This project involves processing and analyzing CSV files containing electrical data. The data is resampled to a daily frequency and the mean is calculated for the columns 'IA', 'IB', and 'IC'. The maximum and minimum values for these columns are also calculated on a daily basis. The results are saved as new CSV files and visualized in graphs.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You need to have Python installed on your machine. The project also requires the following Python libraries:

  • pandas
  • matplotlib
  • tkinter

You can install these libraries using pip:

pip install pandas matplotlib

Running the Code To run the code, navigate to the directory containing the script and run the following command:

# For CLI
python data_logger.py

# For GUI
python data_logger_gui.py

Code Overview

The main function in the script is generate_graphs_and_csv(). This function does the following:

  • Asks the user for the name of the folder containing the CSV files.
  • Reads each CSV file into a pandas DataFrame.
  • Converts the 'IA', 'IB', and 'IC' columns to numeric.
  • Resamples the data to a daily frequency and calculates the mean for the 'IA', 'IB', and 'IC' columns.
  • Calculates the daily maximum and minimum values for the 'IA', 'IB', and 'IC' columns.
  • Saves the resampled data to a new CSV file.
  • Plots the maximum and minimum values for each column and saves the plots as PNG files.

Built With

Authors

  • Hanif Al Irsyad

data-logger-app's People

Contributors

hanifanta avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.