I believe that you want to read the instantaneous profile. There is only one row.
For other profile generics, you can use readRowsByEntry or readRowsByRange methods.
from command line arguments it is possible? when I tried by calling the function it is throwing this error
Error! Failed to read last day: Access Error : Unknown error.
It's not possible to use the command line arguments. You can modify the client example for your needs.
I believe that the reason for your error is that the start and end times are the same.
Check the example link above. It sets the start time to midnight.
In profile generic multiple obis codes are there.Is there any way to execute a particular obis code in profile generic with selective access ? Example like this Data of billing period scheme with selective access.Now I am getting whole profile generic obis code at one stretch with selective access.
You can give read columns as the last parameter for readRowsByRange, but all the meters aren't supporting it. You need to test this with all the meter models that you want to read and check if it's supported.
Hi,
Hi,
What data do you want to access with selective access? Only a few meters are supporting selective access other than profile generic.
BR,
Mikko
I want only profile generic
I want only profile generic data for now .Please share one example in python
Hi,
Hi,
I believe that you want to read the instantaneous profile. There is only one row.
For other profile generics, you can use readRowsByEntry or readRowsByRange methods.
http://gurux.fi/Gurux.DLMS.Objects.GXDLMSProfileGeneric
You can find an example from here:
https://github.com/Gurux/Gurux.DLMS.Python/blob/121d9bfac3fc5fcb9a6949f…
BR,
Mikko
start = datetime.datetime.now
start = datetime.datetime.now()
end = start
Here I have to give start date and end date.Am I right?
Hi,
Hi,
Yes, you are right. You give start and end dates when you are reading with rows with readRowsByRange.
BR,
Mikko
from command line arguments
from command line arguments it is possible? when I tried by calling the function it is throwing this error
Error! Failed to read last day: Access Error : Unknown error.
Hi,
Hi,
It's not possible to use the command line arguments. You can modify the client example for your needs.
I believe that the reason for your error is that the start and end times are the same.
Check the example link above. It sets the start time to midnight.
BR,
Mikko
from datetime import datetime
from datetime import datetime
start = datetime(2022, 12 , 26)
end = datetime(2022, 12, 29)
This is the value I given but it is throwing error
"Read capture objects first."
Hi,
Hi,
You need to read capture objects before you can read the buffer like this.
self.read(it, 3)
http://gurux.fi/Gurux.DLMS.Objects.GXDLMSProfileGeneric
BR,
Mikko
In profile generic multiple
In profile generic multiple obis codes are there.Is there any way to execute a particular obis code in profile generic with selective access ? Example like this Data of billing period scheme with selective access.Now I am getting whole profile generic obis code at one stretch with selective access.
Hi,
Hi,
You can give read columns as the last parameter for readRowsByRange, but all the meters aren't supporting it. You need to test this with all the meter models that you want to read and check if it's supported.
BR,
Mikko