Giter Site home page Giter Site logo

mh-test's Introduction

mh-test

test for MH

i.e. build a complete project to distribute data coming from a remote meter and combine the power load with the one generated by a photovoltaic panel.

Use RabbitMQ as preferred broker.

Meter -> broker -> PV Simulator -> output file

Setup

No proper setup installation was done. Enable python to find the location of the sources with

export PYTHONPATH='/your/path/mh-test'

Set the url to the broker

export BROKER_URL='amqp://woabdkju:[email protected]/woabdkju'

Configuration files

The PV simulator program reads the file named PV_DAY_POWER.txt from the current directory. Such file contains the daily PV power profile signal.

The signal has been created from a bell-shaped distribution which approximates the shape provided in the description of the exercise:

alt text

Execution

Go to the root directory of the project

cd /your/path/mh-test/

Note: launching the cli.py scripts with the --help parameter shows the options in detail.

Meter

Run the meter (i.e. the publisher) with

python mh/meter/cli.py -v --url $BROKER_URL

PV

Run the PV simulator (i.e. the subscriber) with

python mh/pv/cli.py --outputfile myout.txt --url $BROKER_URL

where myout.txt is the output file of choice.

Testing

Execute the automated tests with

pytest -s --cov=mh/

mh-test's People

Contributors

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