Comments (8)
Hi Wim,
You found a bug! I was looking at the wrong offset for date in your record layout.
I published 2.4.1 (only grottconf.py has changed) which should fix it.
Date processing was wrong for both buffered and non-buffered records. For non-buffered record you do not notice this while the date in the record is almost the same as the actual date.
You should see a message like this now:
Grott data record date/time processing started
date-time: 2021-02-06T16:49:38
from grott.
@wjansenw hopefully it is fixed now
from grott.
Tnx for the fix. Will test soon.
from grott.
HI @johanmeijer - difficult to test with the amount of snow on the roof - but one data point seems to indicate the processing does not work as it should:
- Growatt plain data:
00380006024151044e41433541323731414800000000000000000000000000000000000000004
44546314132313039330000000000000000000000000000000000000000000000000000020bb8
0c340000000000000aa20000000000000a9f00000000000000000000000000000000000000000
000000000000000000000000000138a091f000000000000000000000000000000000000000000
00091f000000000000000000000000000000000053fc2c00000000000016db0000161e0000000
000000b450000000000000ad90000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000fffa00000000000000000000006800680
000000000d30a9700004e20000000000000000000000000000000000000000000000000000000
0000090000000000000000000000000000000000000c350cb1000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000002710000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000
000000000008fe4
- Growatt new layout processing
- decrypt : True
- offset : 6
- record layout : T06NNNNX
- Grott data record date/time processing started
- no or no valid time/date found, grott server time will be used (buffer records not sent!)
from grott.
Hmm. In your case it seems that the unbuffered records does not contain any date/time information.
This is probably not a problem while the buffered records seems to contain the date (what is really essentiental otherwise it would record with the wrong date/time information).
How does grott detect the difference between buffered and unbuffered:
In the header of the record (the first 8 bytes eg in your last record: 0038000602415104) the type of record is specified by the
bytes:
4: 06 (means encrytped and specifies record start offset)
7: 51 (give more information on inverter type / network interface)
8: 04 (record content: 04 = normal record, 50 = buffered)
This is why you see record type t065104x (x means the extend version, there is a normal and an extended version).
With a record type t065104x the date starts at position 68.
In your first record (065150) the date/time is: 1502050a1039. The format is yymmddhhmmss in hex, so 15 = 21 (date/time of this record is 2021-02-05T10:16:57 ).
In your second record (065104) the date/time at that position is: 000000000000. That is not a valid value and Grott uses the current server time.
It always surprises me how Growatt handles date/time. In my case it is always specified. In your case it seems only to be there with buffered records. In the older configurations it is never specified (but there are also no buffered records) and I have seen one configuration where the data/time was crippled after a while.
I like to see if your buffered records now give the right date/time information. I do understand if you do not want to test that but it would be nice to know.
from grott.
i'll check once the snow is gone... it's not providing any power right now it seems...
from grott.
@wjansenw is it oke? Can we close this one?
from grott.
from grott.
Related Issues (20)
- Can't change Growatt Data Logger IP address HOT 20
- Adjust server on GrowattshineWIFI-x HOT 4
- Layout for sph - sunrino M12000 (Sunrino-SP Serie) HOT 14
- grotcsv - Grott extension processing started / Grott import extension failed: grotcsv HOT 3
- feature: support to write data directly into emonCMS server "node: grott" (openenergymonitoring.org)
- All packets are smaller than 100 + no matching layout HOT 2
- Pvoutput.org. Bad request 400: Energy value [76500] too high for system size [5200]** HOT 22
- Service will not start. HOT 4
- Growatt SPA not reading HOT 21
- Home Assistant NL no sensors HOT 1
- Feature request: Keep MQTT session persistent HOT 2
- Grott not working since Linux upgrade and RetroPie installation HOT 8
- grott & HA HOT 2
- Add API to change operating mode and respective parameters HOT 4
- No internet, No grott ! HOT 3
- grottserver GrottHttpserver not working docker container ubuntu
- shinewifi-s lost connection HOT 10
- Grott stopped working: Data less then minimum record length HOT 2
- influxdb stopped collecting after a while. HOT 4
- SPH6000 hybrid inverter layout - missing battery? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grott.