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 added 5 commits July 5, 2023 14:47
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
@GustaafL GustaafL requested a review from nhoening July 20, 2023 09:11
…corator, especially arg_loader was misleading

Signed-off-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
…or, for when we only have an AuthModelMixin ID.

Signed-off-by: Nicolas Höning <nicolas@seita.nl>
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
Signed-off-by: GustaafL <guus@seita.nl>
@nhoening nhoening added this to the 0.15.0 milestone Jul 24, 2023
GustaafL added 3 commits July 25, 2023 09:14
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
GustaafL added 2 commits July 25, 2023 14:15
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
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 added 5 commits July 25, 2023 20:09
…or resulution

Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
@GustaafL GustaafL requested a review from nhoening July 31, 2023 10:31
GustaafL and others added 2 commits July 31, 2023 16:13
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 <guus@seita.nl>
@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
4 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.

None yet

3 participants