change_log.rst 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. .. _cli-changelog:
  2. **********************
  3. FlexMeasures CLI Changelog
  4. **********************
  5. since v0.26.0 | June 03, 2025
  6. =================================
  7. * Switch to ``flexmeasures jobs save-last`` CLI command for saving the last n canceled/deferred/failed/finished/scheduled/started jobs (from the scheduling queue, by default).
  8. since v0.25.0 | April 01, 2025
  9. =================================
  10. * Report parameters set using ``flexmeasures add report --parameters`` can use any argument supported by ``Sensor.search_beliefs`` to allow more control over input for the report.
  11. * Add ``flexmeasures jobs save-last-failed`` (since v0.26: ``flexmeasures jobs save-last``) CLI command for saving the last n failed jobs (from the scheduling queue, by default).
  12. * Add ``flexmeasures jobs delete-queue`` CLI command for deleting an obsolete queue.
  13. since v0.24.0 | January 6, 2025
  14. =================================
  15. * ``flexmeasures show beliefs`` shows datetime values on x-axis labels.
  16. * ``flexmeasures add sensor`` no longer requires the ``capacity_in_mw`` attribute to be set for power sensors.
  17. since v0.22.0 | June 29, 2024
  18. =================================
  19. * Add ``--resolution`` option to ``flexmeasures show chart`` to produce charts in different time resolutions.
  20. since v0.21.0 | April 16, 2024
  21. =================================
  22. * Include started, deferred and scheduled jobs in the overview printed by the CLI command ``flexmeasures jobs show-queues``.
  23. since v.0.20.0 | March 26, 2024
  24. =================================
  25. * Add command ``flexmeasures edit transfer-ownership`` to transfer the ownership of an asset and its children.
  26. * Add ``--offspring`` option to ``flexmeasures delete beliefs`` command, allowing to delete beliefs of children, as well.
  27. * Add support for providing a sensor definition to the ``--site-power-capacity``, ``--site-consumption-capacity`` and ``--site-production-capacity`` options of the ``flexmeasures add schedule for-storage`` command.
  28. since v0.19.1 | February 26, 2024
  29. =======================================
  30. * Fix support for providing a sensor definition to the ``--storage-power-capacity`` option of the ``flexmeasures add schedule for-storage`` command.
  31. since v0.19.0 | February 18, 2024
  32. =======================================
  33. * Enable the use of QuantityOrSensor fields for the ``flexmeasures add schedule for-storage`` CLI command:
  34. * ``charging-efficiency``
  35. * ``discharging-efficiency``
  36. * ``soc-gain``
  37. * ``soc-usage``
  38. * ``power-capacity``
  39. * ``production-capacity``
  40. * ``consumption-capacity``
  41. * ``storage-efficiency``
  42. * Streamline CLI option naming by favoring ``--<entity>`` over ``--<entity>-id``. This affects the following options:
  43. * ``--account-id`` -> ``--account``
  44. * ``--asset-id`` -> ``--asset``
  45. * ``--asset-type-id`` -> ``--asset-type``
  46. * ``--sensor-id`` -> ``--sensor``
  47. * ``--source-id`` -> ``--source``
  48. * ``--user-id`` -> ``--user`
  49. since v0.18.1 | January 15, 2024
  50. =======================================
  51. * Fix the validation of the option ``--parent-asset`` of command ``flexmeasures add asset``.
  52. since v0.17.0 | November 8, 2023
  53. =======================================
  54. * Add ``--consultancy`` option to ``flexmeasures add account`` to create a consultancy relationship with another account.
  55. since v0.16.0 | September 29, 2023
  56. =======================================
  57. * Add command ``flexmeasures add sources`` to add the base `DataSources` for the `DataGenerators`.
  58. * Add command ``flexmeasures show chart`` to export sensor and asset charts in PNG or SVG formats.
  59. * Add ``--kind reporter`` option to ``flexmeasures add toy-account`` to create the asset and sensors for the reporter tutorial.
  60. * Add ``--id`` option to ``flexmeasures show data-sources`` to show just one ``DataSource``.
  61. * Add ``--show-attributes`` flag to ``flexmeasures show data-sources`` to select whether to show the attributes field or not.
  62. since v0.15.0 | August 9, 2023
  63. ================================
  64. * Allow deleting multiple sensors with a single call to ``flexmeasures delete sensor`` by passing the ``--id`` option multiple times.
  65. * Add ``flexmeasures add schedule for-process`` to create a new process schedule for a given power sensor.
  66. * Add support for describing ``config`` and ``parameters`` in YAML for the command ``flexmeasures add report``, editable in user's code editor using the flags ``--edit-config`` or ``--edit-parameters``.
  67. * Add ``--kind process`` option to create the asset and sensors for the ``ProcessScheduler`` tutorial.
  68. since v0.14.1 | June 20, 2023
  69. =================================
  70. * Avoid saving any :abbr:`NaN (not a number)` values to the database, when calling ``flexmeasures add report``.
  71. * Fix defaults for the ``--start-offset`` and ``--end-offset` options to ``flexmeasures add report``, which weren't being interpreted in the local timezone of the reporting sensor.
  72. since v0.14.0 | June 15, 2023
  73. =================================
  74. * Allow setting a storage efficiency using the new ``--storage-efficiency`` option to the ``flexmeasures add schedule for-storage`` CLI command.
  75. * Add CLI command ``flexmeasures add report`` to calculate a custom report from sensor data and save the results to the database, with the option to export them to a CSV or Excel file.
  76. * Add CLI command ``flexmeasures show reporters`` to list available reporters, including any defined in registered plugins.
  77. * Add CLI command ``flexmeasures show schedulers`` to list available schedulers, including any defined in registered plugins.
  78. * Make ``--account-id`` optional in ``flexmeasures add asset`` to support creating public assets, which are available to all users.
  79. since v0.13.0 | May 1, 2023
  80. =================================
  81. * Add ``flexmeasures add source`` CLI command for adding a new data source.
  82. * Add ``--inflexible-device-sensor`` option to ``flexmeasures add schedule``.
  83. since v0.12.0 | January 04, 2023
  84. =================================
  85. * Add ``--resolution``, ``--timezone`` and ``--to-file`` options to ``flexmeasures show beliefs``, to show beliefs data in a custom resolution and/or timezone, and also to save shown beliefs data to a CSV file.
  86. * Add options to ``flexmeasures add beliefs`` to 1) read CSV data with timezone naive datetimes (use ``--timezone`` to localize the data), 2) read CSV data with datetime/timedelta units (use ``--unit datetime`` or ``--unit timedelta``, 3) remove rows with NaN values, and 4) add filter to read-in data by matching values in specific columns (use ``--filter-column`` and ``--filter-value`` together).
  87. * Fix ``flexmeasures db-ops dump`` and ``flexmeasures db-ops restore`` incorrectly reporting a success when `pg_dump` and `pg_restore` are not installed.
  88. * Add ``flexmeasures monitor last-seen``.
  89. * Rename ``flexmeasures monitor tasks`` to ``flexmeasures monitor last-run``.
  90. * Rename ``flexmeasures add schedule`` to ``flexmeasures add schedule for-storage`` (in expectation of more scheduling commands, based on in-built flex models).
  91. since v0.11.0 | August 28, 2022
  92. ==============================
  93. * Add ``flexmeasures jobs show-queues`` to show contents of computation job queues.
  94. * ``--name`` parameter in ``flexmeasures jobs run-worker`` is now optional.
  95. * Add ``--custom-message`` param to ``flexmeasures monitor tasks``.
  96. * Rename ``-optimization-context-id`` to ``--consumption-price-sensor`` in ``flexmeasures add schedule``, and added ``--production-price-sensor``.
  97. since v0.9.0 | March 25, 2022
  98. ==============================
  99. * Add CLI commands for showing data ``flexmeasures show accounts``, ``flexmeasures show account``, ``flexmeasures show roles``, ``flexmeasures show asset-types``, ``flexmeasures show asset``, ``flexmeasures show data-sources``, and ``flexmeasures show beliefs``.
  100. * Add ``flexmeasures db-ops resample-data`` CLI command to resample sensor data to a different resolution.
  101. * Add ``flexmeasures edit attribute`` CLI command to edit/add an attribute on an asset or sensor.
  102. * Add ``flexmeasures add toy-account`` for tutorials and trying things.
  103. * Add ``flexmeasures add schedule`` to create a new schedule for a given power sensor.
  104. * Add ``flexmeasures delete asset`` to delete an asset (including its sensors and data).
  105. * Rename ``flexmeasures add structure`` to ``flexmeasures add initial-structure``.
  106. since v0.8.0 | January 26, 2022
  107. ===============================
  108. * Add ``flexmeasures add sensor``, ``flexmeasures add asset-type``, ```flexmeasures add beliefs``. These were previously experimental features (under the `dev-add` command group).
  109. * ``flexmeasures add asset`` now directly creates an asset in the new data model.
  110. * Add ``flexmeasures delete sensor``, ``flexmeasures delete nan-beliefs`` and ``flexmeasures delete unchanged-beliefs``.
  111. since v0.6.0 | April 2, 2021
  112. =====================
  113. * Add ``flexmeasures add account``, ``flexmeasures delete account``, and the ``--account-id`` param to ``flexmeasures add user``.
  114. since v0.4.0 | April 2, 2021
  115. =====================
  116. * Add the ``dev-add`` command group for experimental features around the upcoming data model refactoring.
  117. since v0.3.0 | April 2, 2021
  118. =====================
  119. * Refactor CLI into the main groups ``add``, ``delete``, ``jobs`` and ``db-ops``
  120. * Add ``flexmeasures add asset``, ``flexmeasures add user`` and ``flexmeasures add weather-sensor``
  121. * Split the ``populate-db`` command into ``flexmeasures add structure`` and ``flexmeasures add forecasts``