Git Product home page Git Product logo

energy's Introduction

Hi there ๐Ÿ‘‹

I'm Niels Basjes.

I work as an IT-Architect/Inventor at https://www.bol.com where I design new systems that are usually special on some way when it comes to handling data.

I'm also an avid opensource contributor and you'll find patches of me in lots of Apache "BigData" projects. Committer for Apache Flink and Comitter/PMC for Apache Avro.

Niels' github stats

Niels' github stats

energy's People

Contributors

dependabot[bot] avatar nielsbasjes avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

energy's Issues

Automatic reconnect on error

I stopped getting data. After reconnecting the Modbus USB device the logs showed this error.

Should reconnect on this kind of errors.

java.lang.NullPointerException: null
	at com.ghgande.j2mod.modbus.net.SerialConnection.getBaudRate(SerialConnection.java:200)
	at com.ghgande.j2mod.modbus.io.ModbusSerialTransport.getInterFrameDelay(ModbusSerialTransport.java:625)
	at com.ghgande.j2mod.modbus.io.ModbusSerialTransport.waitBetweenFrames(ModbusSerialTransport.java:603)
	at com.ghgande.j2mod.modbus.io.ModbusSerialTransaction.execute(ModbusSerialTransaction.java:136)
	at com.ghgande.j2mod.modbus.facade.AbstractModbusMaster.readInputRegisters(AbstractModbusMaster.java:209)
	at nl.basjes.modbus.ModBusDataReader.read(ModBusDataReader.java:53)
	at nl.basjes.modbus.ModBusDataReader.getRawRegisterBytes(ModBusDataReader.java:173)
	at nl.basjes.energy.sdm630.SDM630Reader.read(SDM630Reader.java:170)
	at nl.basjes.energy.sdm630.SDM630Reader.read(SDM630Reader.java:164)
	at nl.basjes.energy.sdm630.FetchSDM630.onTrigger(FetchSDM630.java:335)
	at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
	at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1165)
	at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:203)
	at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)```

Wrong base address for models

I am testing this out on a Fimer PVS inverter. After running the example in the docs I get this error:
image

The result of getAllModels() :

{1=ModelLocation{id=1, registerBase=40004, len=66}, 103=ModelLocation{id=103, registerBase=40072, len=50}, 120=ModelLocation{id=120, registerBase=40124, len=26}, 121=ModelLocation{id=121, registerBase=40152, len=30}, 122=ModelLocation{id=122, registerBase=40184, len=44}, 123=ModelLocation{id=123, registerBase=40230, len=24}, 126=ModelLocation{id=126, registerBase=40256, len=226}, 127=ModelLocation{id=127, registerBase=40484, len=10}, 129=ModelLocation{id=129, registerBase=40496, len=60}, 130=ModelLocation{id=130, registerBase=40558, len=60}, 132=ModelLocation{id=132, registerBase=40620, len=226}, 135=ModelLocation{id=135, registerBase=40848, len=60}, 136=ModelLocation{id=136, registerBase=40910, len=60}, 139=ModelLocation{id=139, registerBase=40972, len=60}, 140=ModelLocation{id=140, registerBase=41034, len=60}, 145=ModelLocation{id=145, registerBase=41096, len=8}, 160=ModelLocation{id=160, registerBase=41106, len=248}, 65230=ModelLocation{id=65230, registerBase=41356, len=1}, 65232=ModelLocation{id=65232, registerBase=41359, len=20}}

First model register base shows as 40004 but if I use a modbus reader you can see that the first 2 registers are at 40000 and 40001. Id of the first model is at 40003 and length at 40004.
image

Unless you mean register base to be the length register

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: renovate.json
Error type: The renovate configuration file contains some invalid settings
Message: Invalid regExp for packageRules[0].allowedVersions: '!/^(?i).*[-_\.](Alpha|Beta|RC|M|EA|Snap|snapshot|jboss|atlassian)[-_\.]?[0-9]?.*$/'

Share register models

Continued from sunspec/models#44:

I have for some time been developing https://github.com/volkszaehler/mbmd - different language, different goals.

One thing that I see as common denominator is the mapping of specific registers (especially outside of sunspec) to a) their physical meaning and b) the necessary en/decoding. If you which we could join forces and design some kind of meta representation that would allow to create the likes of https://github.com/volkszaehler/mbmd/tree/master/meters/rs485 in a generative way.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
docker/centos7/Dockerfile
  • centos 8
github-actions
.github/workflows/build.yml
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • actions/cache v4.0.2@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
  • actions/setup-java v4.2.1@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9
  • codecov/codecov-action v4.5.0@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
maven
devtools/pom.xml
  • org.apache.maven.plugins:maven-deploy-plugin 3.1.2
generate-sunspec-parser/pom.xml
  • org.antlr:antlr4-runtime 4.12.0
  • commons-io:commons-io 2.16.1
  • commons-lang:commons-lang 2.6
  • org.springframework:spring-core 5.3.37
  • org.antlr:antlr4-maven-plugin 4.12.0
  • org.apache.maven.plugins:maven-deploy-plugin 3.1.2
modbus-parsers/pom.xml
  • com.ghgande:j2mod 3.2.1
  • org.apache.commons:commons-lang3 3.14.0
  • org.codehaus.mojo:exec-maven-plugin 3.3.0
  • org.codehaus.mojo:build-helper-maven-plugin 3.6.0
  • org.apache.maven.plugins:maven-jar-plugin 3.4.2
pom.xml
  • org.slf4j:slf4j-api 2.0.13
  • org.slf4j:slf4j-reload4j 2.0.13
  • org.slf4j:slf4j-api 2.0.13
  • org.apache.logging.log4j:log4j-slf4j2-impl 2.23.1
  • org.apache.logging.log4j:log4j-core 2.23.1
  • org.junit:junit-bom 5.10.3
  • org.apache.maven.plugins:maven-gpg-plugin 3.2.4
  • org.apache.maven.plugins:maven-source-plugin 3.3.1
  • org.apache.maven.plugins:maven-javadoc-plugin 3.7.0
  • org.apache.maven.plugins:maven-deploy-plugin 3.1.2
  • io.github.git-commit-id:git-commit-id-maven-plugin 8.0.2
  • org.apache.maven.plugins:maven-compiler-plugin 3.13.0
  • org.apache.maven.plugins:maven-release-plugin 3.1.0
  • nl.basjes.maven.release:conventional-commits-version-policy 1.0.6
  • io.github.git-commit-id:git-commit-id-maven-plugin 8.0.2
  • org.apache.maven.plugins:maven-enforcer-plugin 3.5.0
  • org.codehaus.mojo:extra-enforcer-rules 1.8.0
  • org.apache.rat:apache-rat-plugin 0.16.1
  • org.apache.maven.plugins:maven-toolchains-plugin 3.2.0
  • org.apache.maven.plugins:maven-checkstyle-plugin 3.4.0
  • com.puppycrawl.tools:checkstyle 10.17.0
  • org.jacoco:jacoco-maven-plugin 0.8.12
  • org.sonarsource.scanner.maven:sonar-maven-plugin 3.11.0.3922
  • org.apache.maven.plugins:maven-clean-plugin 3.4.0
  • org.apache.maven.plugins:maven-compiler-plugin 3.13.0
  • org.apache.maven.plugins:maven-deploy-plugin 3.1.2
  • org.apache.maven.plugins:maven-install-plugin 3.1.2
  • org.apache.maven.plugins:maven-resources-plugin 3.3.1
  • org.apache.maven.plugins:maven-site-plugin 3.12.1
  • org.apache.maven.plugins:maven-surefire-plugin 3.3.0
  • org.apache.maven.plugins:maven-shade-plugin 3.6.0
  • org.apache.maven.plugins:maven-jar-plugin 3.4.2
  • org.apache.maven.plugins:maven-war-plugin 3.4.0
  • org.apache.maven.plugins:maven-assembly-plugin 3.7.1
  • org.apache.nifi:nifi-api 1.26.0
  • org.apache.nifi:nifi-utils 1.26.0
  • org.apache.nifi:nifi-mock 1.26.0
  • org.slf4j:slf4j-api 2.0.13
  • org.slf4j:slf4j-log4j12 2.0.13
udfs/nifi/nifi-energy-nar/pom.xml
  • nl.basjes.energy.nifi:energy-nifi-parent 0.0.2-SNAPSHOT
  • nl.basjes.energy.nifi:nifi-energy-processors 0.0.2-SNAPSHOT
  • org.codehaus.mojo:buildnumber-maven-plugin 3.2.0
  • org.apache.nifi:nifi-nar-maven-plugin 1.5.1
udfs/nifi/nifi-energy-processors/pom.xml
  • nl.basjes.energy.nifi:energy-nifi-parent 0.0.2-SNAPSHOT
udfs/nifi/pom.xml
  • nl.basjes.energy:energy-udfs-parent 0.0.2-SNAPSHOT
udfs/pom.xml

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.