-
Notifications
You must be signed in to change notification settings - Fork 66
Feature/376 ocpp 201 california pricing requirements tariff and cost #707
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
Feature/376 ocpp 201 california pricing requirements tariff and cost #707
Conversation
…allbacks in 'common' so they can be used for both 1.6 and 2.01. Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
…age. Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
…onfig schemas. Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
…or CostAndPrice and multi language. Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
…get / set functions for configurations. Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
… transition date / time. Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
…irements-tariff-and-cost Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
…iguration items in user config. Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
… multiple statusses). Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Pietfried
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See in line comments.
The handle_set_user_price and handle_set_session_cost became quite large and I think there is some room to restructure them and improve the readibility (some in line comments already address this)
|
|
||
| json data; | ||
| try { | ||
| data = json(msg.value()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of operating on the raw json I think you could also define a SetUserPrice type like you have done it for RunningCost
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 'SetUserPrice' translates into display messages here. Because it is in the end a message that should be displayed for a specific transaction. So do you suggest a new type instead of DisplayMessage or a conversion function with the json as input and a vector of display messages as output?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean the EVerest DisplayMessage type? This should not be of interest in libocpp. My idea was to define a struct thats initialized by parsing the json instead of operating on the raw json
…x some issues. When session id is not found, return rejected and not send pricing messages. Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
…tomatically checked Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
…irements-tariff-and-cost
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Pietfried
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 👍
| "ISO15118PnCEnabled": true, | ||
| "ContractValidationOffline": true | ||
| }, | ||
| "CostAndPrice": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
Our examples configs are pretty minimal so far, so I would suggest to set CustomDisplayCostAndPrice to false and remove all other keys.
I opened an issue to also provide a fully featured config as part of v16: #736
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok! i also changed config.json.
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
…irements-tariff-and-cost
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Describe your changes
Implement california pricing for 1.6.
Issue ticket number and link
#376
Checklist before requesting a review