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

548 allow sending null values when posting data #549

Merged
merged 10 commits into from Dec 9, 2022

Conversation

Flix6x
Copy link
Contributor

@Flix6x Flix6x commented Dec 3, 2022

@nhoening Would you agree that the values should not enter the database as NaN values? That is, users may send null values in order to correctly 'space' their time series data, but we'd then throw them out before saving.

Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x Flix6x self-assigned this Dec 3, 2022
@Flix6x Flix6x linked an issue Dec 3, 2022 that may be closed by this pull request
@nhoening
Copy link
Contributor

nhoening commented Dec 3, 2022

I agree.

…tead

Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x Flix6x marked this pull request as ready for review December 8, 2022 13:53
@Flix6x Flix6x added this to the 0.12.0 milestone Dec 8, 2022
@Flix6x Flix6x requested a review from nhoening December 8, 2022 14:00
@Flix6x Flix6x merged commit 8d8461d into main Dec 9, 2022
@Flix6x Flix6x deleted the 548-allow-sending-null-values-when-posting-data branch December 9, 2022 07:25
Flix6x added a commit to SeitaBV/v2g-liberty that referenced this pull request Dec 30, 2022
Send null values instead of -1 values, which avoids recording -1 values in FlexMeasures, while still correctly spacing the data sent.

This is possible since FlexMeasures/flexmeasures#549.


* Send null values instead of -1, which avoids recording -1 values in FlexMeasures while still correctly spacing the data sent

* Fix comparison of None with int (minimum SoC)

* Compare to min SoC setting instead of hardcoded value

* Add car_min_soc_in_percent in set_fm_data config settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow sending null values when POSTing data
2 participants