steve
steve copied to clipboard
[Question] Why does transaction details show only the first meter value?
Checklist
- [X] I checked other issues already and found no answer
- [X] I checked the documentation and found no answer
- [ ] I am running the latest version and the feature i am requesting is not implemented there
Describe the problem you are trying to solve
Hi, Steve team!
first, I don't know about OCPP spec enough, so it is possible to ask with wrong question.. This question is similar with this issue. I need to show real time power of connector.
I just noticed now, the transaction detail page shows only the first meter value. https://github.com/steve-community/steve/blob/55c7212f6f8f812c215c9e05d580fbbae018c8ea/src/main/java/de/rwth/idsg/steve/repository/TransactionRepository.java#L42
And according to comments of codes, it said that the meter value is not changeable, so your team showed only one data. https://github.com/steve-community/steve/blob/55c7212f6f8f812c215c9e05d580fbbae018c8ea/src/main/java/de/rwth/idsg/steve/repository/impl/TransactionRepositoryImpl.java#L179-L185
But it used last meter value for stopping transaction. https://github.com/steve-community/steve/blob/55c7212f6f8f812c215c9e05d580fbbae018c8ea/src/main/java/de/rwth/idsg/steve/service/TransactionStopService.java#L59-L61
Well, I wonder why it shows only first meter value on transaction detail page and how I can get the real-time power correctly. Thank you.