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

Implement Tibber Meter with SML Parsing and Enhance HttpBridge for Byte Requests #2597

Open
wants to merge 67 commits into
base: develop
Choose a base branch
from

Conversation

Sn0w3y
Copy link
Contributor

@Sn0w3y Sn0w3y commented Mar 30, 2024

Summary of Changes:

1. HttpBridge Enhancements:

  • Modified the HttpBridge component to support requests for byte data from endpoints. This enhancement allows for more versatile handling of binary data and improves the bridge's capability to interact with a wider range of APIs and data formats.

2. SML Parsing for Tibber Meter:

  • Implemented SML (Smart Message Language) parsing within the Tibber Meter module. This addition enables the system to interpret and process SML messages, significantly improving data integration and utilization from smart meters. This feature is crucial for advancing our energy data management and analysis capabilities.

Justification:

These changes were introduced to address specific needs within our system architecture:

  • The update to HttpBridge broadens our capability to interact with various data sources, making our system more flexible and capable of handling binary data.
  • By incorporating SML parsing into the Tibber Meter, we're taking a significant step towards better energy data management, leveraging smart meter technology more effectively.

* Add files via upload

* Delete src/io/openems/edge/io/opendtu directory

* openDTU Implementation first commit

* Update EdgeApp.bndrun

* Delete bnd.bnd

* Delete readme.adoc
Copy link

github-actions bot commented Jun 7, 2024

Code Coverage

@sfeilmeier
Copy link
Contributor

Can you please update the code. Aftewards please set @michaelgrill as a first reviewer for the HTTP-Bridge part. We might have to split this into multiple PRs, because different reviewers will be involved.

@Sn0w3y
Copy link
Contributor Author

Sn0w3y commented Jun 16, 2024

@sfeilmeier Unfortunately I can not set @michaelgrill as Reviewer:

image

GraphQL: Sn0w3y does not have the correct permissions to execute RequestReviews (requestReviews)

Copy link

Code Coverage

2 similar comments
Copy link

Code Coverage

Copy link

Code Coverage

@Sn0w3y Sn0w3y changed the title Enhance HttpBridge for Byte Requests and Implement Tibber Meter with SML Parsing; OdooHandler Import Fix Implement Tibber Meter with SML ParsingE and Enhance HttpBridge for Byte Requests Jun 16, 2024
@Sn0w3y Sn0w3y changed the title Implement Tibber Meter with SML ParsingE and Enhance HttpBridge for Byte Requests Implement Tibber Meter with SML Parsing and Enhance HttpBridge for Byte Requests Jun 16, 2024
@sfeilmeier
Copy link
Contributor

@michaelgrill: Der Code muss noch aufgeräumt werden, aber kannst du dir bitte schon mal die HTTP-Bridge-Erweiterungen anschauen?

Copy link

Code Coverage

This reverts commit 9beee76.
Copy link

Code Coverage

1 similar comment
Copy link

Code Coverage

Copy link
Contributor

@michaelgrill michaelgrill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich hab mal kurz die wichtigsten Anmerkungen hinzugefügt

}
}
// Read response
try (InputStream in = connection.getInputStream()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kann man die zwei methoden nicht zusammen führen, die sehen ja sehr ähnlich aus

* @param endpoint the {@link Endpoint} to fetch
* @return the result response future containing the raw byte array
*/
CompletableFuture<byte[]> requestRaw(Endpoint endpoint);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wahrscheinlich wäre auch hier besser einen HttpResponse zu returnen


@Override
public void handleEvent(Event event) {
this.generateGetRequest();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

für das wäre es besser wenn man wie die anderen methoden eine subscribeCycle methode hat in der BridgeHttp

Copy link

codecov bot commented Jul 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ There is a different number of reports uploaded between BASE (7b6e982) and HEAD (874ed6d). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (7b6e982) HEAD (874ed6d)
2 1
Additional details and impacted files
@@              Coverage Diff               @@
##             develop    #2597       +/-   ##
==============================================
- Coverage      50.70%   25.60%   -25.09%     
==============================================
  Files           2100      224     -1876     
  Lines          96427     5508    -90919     
  Branches        6530      807     -5723     
==============================================
- Hits           48880     1410    -47470     
+ Misses         45851     4028    -41823     
+ Partials        1696       70     -1626     

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants