Giter Site home page Giter Site logo

atc_reports's Introduction

Report types

  • Daily
  • Weekly
  • Monthly
  • Daywise stats excel file

config file

  • apiUrlBase - base url of data api
  • dataSource - one of random, scada, excel
  • entities - array of entities. Each entity is defined by the array ["Name", "drawal pnt", "atc pnt", "ttc pnt"]
  • reportType - one of d(daily), w(weekly), m(monthly), ds(daily stats)
  • dateInput - input date for report in the format "%Y-%m-%d" (example: 2021-12-31), for default value keep it as null
  • endDate - end date in the format "%Y-%m-%d". Applicable for daywise stats report type
  • outputFolder - Path of ouput folder where reports are dumped
  • templatePath - Path of report template file
  • reportPrefix - Prefix of the generated report file name

Deriving default date input

  • Check for report type
  • If report type is daily, make default date input as yesterday
  • If report type is weekly, make default date input as d-7
  • If report type is monthly, make default date input as the first day of previous month
  • If report type is Daywise stats, make default date input as the first day of previous month and end Date is the last date of previous month

Deriving report date range from date input

  • For daily report the date range will be 0 to 24 hrs of date input
  • For weekly report the date range will be 0 hrs of the week start date (Monday) to 24 hrs of week end date (Sunday) of date input
  • For monthly report the date range will be 0 hrs of the month start date to 24 hrs of month end date of date input

Excel data source

  • If excel data source is being used, make sure that left most column is the timestamps column
  • The headers should match the pnt ids in the entities section of the config file
  • Currently sorting by timestamps is not taken care of in excel data fetching

atc_reports's People

Contributors

nagasudhirpulla avatar

Watchers

 avatar  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.