Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

433 post sensor #767

Merged
merged 22 commits into from
Aug 1, 2023
Merged

433 post sensor #767

merged 22 commits into from
Aug 1, 2023

Conversation

GustaafL
Copy link
Contributor

Description

Adds POST endpoint to the Sensor API. This can be used to create new Sensors.

Look & Feel

Example post:

{
    "name": "power",
    "resolution": "PT1H",
    "unit": "kWh",
    "generic_asset_id": 1,
}

Related Items

#433


  • [x ] I agree to contribute to the project under Apache 2 License.
  • [ x] To the best of my knowledge, the proposed patch is not based on code under GPL or other license that is incompatible with FlexMeasures

@GustaafL GustaafL requested a review from nhoening July 20, 2023 09:11
…corator, especially arg_loader was misleading

Signed-off-by: Nicolas Höning <[email protected]>
Signed-off-by: Nicolas Höning <[email protected]>
…or, for when we only have an AuthModelMixin ID.

Signed-off-by: Nicolas Höning <[email protected]>
flexmeasures/data/schemas/times.py Outdated Show resolved Hide resolved
flexmeasures/data/schemas/times.py Outdated Show resolved Hide resolved
flexmeasures/data/schemas/times.py Outdated Show resolved Hide resolved
@nhoening nhoening added this to the 0.15.0 milestone Jul 24, 2023
flexmeasures/api/v3_0/sensors.py Outdated Show resolved Hide resolved
documentation/api/change_log.rst Outdated Show resolved Hide resolved
flexmeasures/data/schemas/sensors.py Outdated Show resolved Hide resolved
flexmeasures/data/schemas/times.py Outdated Show resolved Hide resolved
@GustaafL GustaafL requested a review from nhoening July 31, 2023 10:31
Copy link
Contributor

@nhoening nhoening left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I have basically only naming and documentation requests left.

flexmeasures/api/v3_0/tests/test_sensors_api.py Outdated Show resolved Hide resolved
flexmeasures/data/schemas/sensors.py Outdated Show resolved Hide resolved
flexmeasures/api/v3_0/sensors.py Outdated Show resolved Hide resolved
documentation/changelog.rst Outdated Show resolved Hide resolved
… changes and removes commented code

Signed-off-by: GustaafL <[email protected]>
@GustaafL GustaafL requested a review from nhoening August 1, 2023 08:15
Copy link
Contributor

@nhoening nhoening left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@nhoening nhoening merged commit d25deb2 into main Aug 1, 2023
3 checks passed
@nhoening nhoening deleted the 433-post-sensor branch August 1, 2023 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants