Code Monkey home page Code Monkey logo

solar_dash's Introduction

Solar Dashboard

Purpose: Create a web application displaying solar plant data according to the user access rights.

Database details

  • Data is contained in the measure table, value column.
  • measure.equipment_id links to equipment.id_equipment.
  • equipment.site_id links to site.id_site.
  • measure.variable_id links to variable.id_variable.
  • user.client_id and site.client_id both link to client.id_client.

Note: the database has been reduce to 5 days of measurement history (from 25/09/2019 until 30/09/2019)

Architecture

  • auxilaries.py functions: get_name and build_options
  • graph_layout.py: generic and specific layouts for graph
  • html_components.py: build function for html bricks: banner, menu, graphs
  • loading_data.py: loading data functions from database
  • server.py: core of the dash app: css links, app layout, callbacks
  • main.py: running file

User access rights

  • Admin users can see everything (client_id = 0)
  • Non-admin users can only see their own sites (user.client_id = site.client_id) (client_id = 1 or 2)

Note: add the following URL extension "/client_id" to have access to the client data

Features

The app upload data from sqlite_demo_wpo.db according to the selected site and variable.

  • Selection menu: site, variable and timeframe selection

logo

  • Displayed graphs: line plot and box plot

logo

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.