plantmeter
OpenERP module and library to manage multisite energy generation
To be extinguished package
Most of the content of this packages is in progress of being moved to somenergia-generationkwh o generic packages like somenergia-utils.
Further development should consider continuing this transition.
Install and test
pip install -e .
pytest plantmeter # Run unit tests
pytest som_plantmeter/tests # Run erp tests (require a working local erp)
Some erp tests clean up collections on the mongo database the erp points to, which could be a disaster if your dbconfig is pointing to a production setup. So, those tests are disabled by default. In order to enable clean room test in erp tests:
- Ensure your dbconfig.py configuration is pointing to a testing database
- Run
enable_destructive_tests.pyfrom somenergia-utils - This enables an erp config flag, that makes destrutive testing not to be skipped.
- If, later, you accidentally change dbconfig to point a production setup, and run those tests they won't actually be run
Code Map
Refer to somenergia-generationkwh documentation on tips on how the code is structured.
How to release
- Update the version in README changelogs
- Update the version in setup.py
- Commit "Bump to plantmeter-M.m.p"
- git tag plantmeter-M.m.p
- git push && git push --tags
- The later push will generate the source package in pypi for the non-erp module
CHANGES
plantmeter 1.7.5 2023-01-18
- Add filter capabilities to MongoTimeCurve.get()
plantmeter 1.7.4 2022-01-08
"Keeping up with Python 2.7" Release
- Github actions for CI
- Moved isodates to somutils
- Python 2.7 compatibility: added conditional dependencies
plantmeter 1.7.3 2019-07-29
Py3 portability back
- MTC: mongo's bjson do not accept numpy types as attributes, so we are taking the native item when updating with numpy arrays.
plantmeter 1.7.2 2019-07-18
Not importing anymore release
- Removing logic for importing metering since now is done by Gisce:
- Removed
Meter.last_commitrelated to the meter importing logic - Removed
GenerationkwhProductionNotifierand related helpers update_kwhmethods removed- Removed all (metering) providers
- Removed
GenerationkwhProductionAggregator.getNShares()
- Removed
genkwh_productionscript renamed asgenkwh_plantsgenkwh_production curveextracted asgenkwh_mtcgenkwh_mtc: collections alias renamed:gisce->productionproduction->production_old
genkwh_mtc: New collectionrightscorrection- Plants have
first/last_active_date - Meters have
first/last_active_date - New
Aggregator.firstActiveDate()returning the min of the plant'sfirst_active_date - Functional tests moved to
som_plantmeter/tests - FIX: Fontivsolar meter number was wrong
- New migration script to perform the former fix and rewrite the rights
plantmeter 1.7.1 2019-04-04
- Removed deprecated scripts
genkwh_pull_statusandgenkwh_export - Removed deprecated
genkwh_productionsubcommands: pull-status, load-meassures and update-kwh - Script
genkwh_production.pyinstalled by setup.py
plantmeter 1.7.0 2019-04-02
- Meters and plants have
first_active_dateattribute - Built plant shares is not a constant curve anymore, changes when adding new plants
- Meter
first_active_datefilters out earlier meassures - Fix: lastMesurement in a mix/plant is the first one of lastMeasurement of the childs
genkwh_migrate_1_6_3_newplant.sh: Script to migrate old plant and incorporate the new one- In general, fixes to really enable multiple plants
genkwh_production.py: editmix, editplant, editmetergenkwh_production.py: editmix, editplant, editmetergenkwh_production.py: delmix, delplant, delmetergenkwh_production.py: meterset -> editmeter
plantmeter 1.6.2 2019-01-21
- Deprecated
genkwh_pull_status.pyandgenkwh_pull_status.sh genkwh_production.py: addedpull_statusas subcommandgenkwh_production.py pull_status: nicer output and exit statusgenkwh_migration_ftp_to_tmprofile.pymigration script
plantmeter 1.6.1 2019-01-03
- Show erp configuration at the begining of every command
- Protect
genkwh_production.py clearagaints lossy fingers
plantmeter 1.6.0 2019-01-03
- Python 3 supported (python module, not yet the erp code)
- Migrated to pymongo 3
- MongoTimeCurve takes some field names as parameters (timestamp and creation)
- Abstracted ResourceParent from ProductionPlant and ProductionAggregator
genkwh_production.py list: list all the resorce hierarchy (mixes, plants, meters)genkwh_production.py addmix: to add an aggregator, now 'mix'genkwh_production.py addplant: to add a plantgenkwh_production.py addmeter: to add a metergenkwh_production.py curve: to extract stored curves as TSV (production, rights...)genkwh_production.pycommmand documentation
Metadata
Release files for plantmeter 1.7.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| plantmeter-1.7.12.tar.gz | 30.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| plantmeter-1.7.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 61.0 kB
Release files / plantmeter-1.7.12.tar.gz
| Download URL | plantmeter-1.7.12.tar.gz |
|---|---|
| Size | 30.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e056033bbd5d03658ce7257970e3175e2544708547c37b1681c16b5e9cd59187
|
|
BLAKE2b-256 checksum How to use checksums |
87b7741cf0f1a342a3759dbe584a0ba56a745746a62d084c60179245a465703b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / plantmeter-1.7.12-py3-none-any.whl
| Download URL | plantmeter-1.7.12-py3-none-any.whl |
|---|---|
| Size | 30.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f60892f16bd526c57469232406da54c21082212a83b221e85476acfd867d57c
|
|
BLAKE2b-256 checksum How to use checksums |
c6834a3bcb78bfbc437f432f2532fc0dd40ab3c478770909d456fb369695318b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for plantmeter 1.7.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.