Metadata-Version: 2.1
Name: ceems
Version: 0.1.1
Summary: Consolinno Energy Managment System utilizing EEBUS
Home-page: UNKNOWN
Author: Leonhard Heizinger
Author-email: l.heizinger@consolinno.de
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# cEEMS [cēms] [:speaker:](https://translate.google.com/translate_tts?ie=UTF-8&client=tw-ob&tl=en&q=ceems)

Daemon tool `ceemsd` to answer JSON-RPC requests from the [EEBUS-Daemon](https://gitlab.consolinno-it.de/leafletfirmware/eebus/consolinno-eebus-daemon).

## Technical documentation

The technical documentation is found [here](docu.asciidoc).

## Development installation*

    pip install -e .    

This will install the module `ceemsd` and take the latest version of the code when running.

If this does not work you can try

    pip install -r requirements.txt
    sudo python3 setup.py develop

## Running

Run ceems as sudo as this is required for dbus. Option -d for debugging

    sudo ceemsd -d

## Testing
TODO: Automated Testing

For now in /src/ceems/ run
 
    python3 -m unittest test_module.py


### Testing JSONRPC calls manually

    ./src/ceems/test_scripts/request_plim_table.sh
    ./src/ceems/test_scripts/request_incentive_table.sh

