-
Notifications
You must be signed in to change notification settings - Fork 48
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
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 <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
…age. Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
…onfig schemas. Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
…or CostAndPrice and multi language. Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
…get / set functions for configurations. Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
… transition date / time. Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
…irements-tariff-and-cost Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
…iguration items in user config. Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
… multiple statusses). Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
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 <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
…tomatically checked Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
…irements-tariff-and-cost
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
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 👍
@@ -57,6 +57,48 @@ | |||
"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 <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
…irements-tariff-and-cost
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Describe your changes
Implement california pricing for 1.6.
Issue ticket number and link
#376
Checklist before requesting a review