I am using windows 10, i have download and install .NET 3.1
When i started the Gurux.DLMS.AMI using "dotnet Gurux.DLMS.AMI.dll" command, there was several warning.
It said
"Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
Failed to determine the https for redirect"
1. I have tested in http://localhost:64881/api/info that the application is up and running.
2. I have tested reading DLMS parameter from Actaris SL7000 in GXDLMSDirector and it worked fine
3. I cannot read the parameter when using the data concentrator Gurux.DLMS.AMI
4. I have no reply when requesting the REST API from localhost:64881
Can anyone tell what i do wrong? I want to read some parameter from SL7000 and save to MySql database
If I remember right, this warning is coming because you are using http and not https. Are you running Gurux.DLMS.AMI in IIS?
I can't see what you try to read from the pic. Pic is compressed and because you have the original image you can see it, but I can't. Can you read anything from the meter? Example the clock?
Hi,
Yes i have done all of that, but the read value is "0"
it is different than the actual value which is around "220"
I have attached screenshot from Gurux.DLMS.AMI and GXDLMSDirector reading the same value as comparison.
For me, it seems that you have not read the value with Gurux.DLMS.AMI. Have you press the read-button or add a schedule read?
Can you open appsettings.json and change Warnin LogLevel to Debug. Like this:
{
"Logging": {
"LogLevel": {
"Default": "Debug"
},
"Console": {
"IncludeScopes": false
},
},
You can now see log when you press the read-button.
Hi I m facing same issues stacktrace is as follows . Is there any solution
E:\ami file>dotnet Gurux.DLMS.AMI.dll
RestAddress: http://localhost:64881
Database type: SQLite
Connecting: Data Source=:memory:
Creating tables.
Service started: http://localhost:64881
Reader trace level is Verbose
Listener trace level is Verbose
warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
Failed to determine the https port for redirect.
warn: Gurux.DLMS.AMI.Scheduler.GXSchedulerService[0]
Timed Background Service is working.
Hi,
Hi,
If I remember right, this warning is coming because you are using http and not https. Are you running Gurux.DLMS.AMI in IIS?
I can't see what you try to read from the pic. Pic is compressed and because you have the original image you can see it, but I can't. Can you read anything from the meter? Example the clock?
BR,
Mikko
Hi Mikko,
Hi Mikko,
I'm not sure if this happens because of IIS or not,
nevertheless i have tried disabling my IIS but the warning still there.
Any advice?
For the picture i tried to post one by one in every post to make it clearer
picture 2
Here is the Gurux.DLMS.AMI window screenshot from GXDLMSDirector application
Hi,
Hi,
Have you read the value? Select property and press Read-button. Then wait for a while and press "f5". It will update data from the database.
BR,
Mikko
Hi,
Hi,
Yes i have done all of that, but the read value is "0"
it is different than the actual value which is around "220"
I have attached screenshot from Gurux.DLMS.AMI and GXDLMSDirector reading the same value as comparison.
Can you advise?
Thank you
Hi,
Hi,
For me, it seems that you have not read the value with Gurux.DLMS.AMI. Have you press the read-button or add a schedule read?
Can you open appsettings.json and change Warnin LogLevel to Debug. Like this:
{
"Logging": {
"LogLevel": {
"Default": "Debug"
},
"Console": {
"IncludeScopes": false
},
},
You can now see log when you press the read-button.
BR,
Mikko
Hi Mikko,
Hi Mikko,
I was wondering, is the log line generate continuously overtime ?
I have attached a video when i started gurux.ami after i set the log level to debug
is this normal ?
Hi,
Hi,
Open appsettings.json and change "TaskWaitTime": 60000
It's now 60.
I add to the worklist that it's given as seconds, not ms.
BR,
Mikko
Hi,
Hi,
Actually there is a new version where this is fixed. Get the latest version from the GitHub.
BR,
Mikko
Hi Mikko,
Hi Mikko,
I have used the latest version from github and got the same result...
Can you advise about the warning i got from the first post?
"Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
Failed to determine the https for redirect"
I have disabled the IIS and the warning still appeared
Thank you
Hi I m facing same issues
Hi I m facing same issues stacktrace is as follows . Is there any solution
E:\ami file>dotnet Gurux.DLMS.AMI.dll
RestAddress: http://localhost:64881
Database type: SQLite
Connecting: Data Source=:memory:
Creating tables.
Service started: http://localhost:64881
Reader trace level is Verbose
Listener trace level is Verbose
warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
Failed to determine the https port for redirect.
warn: Gurux.DLMS.AMI.Scheduler.GXSchedulerService[0]
Timed Background Service is working.
Hi,
Hi,
Your SSL is not enabled. You need SSL certificate to use https.
You can get more information on how to solve this:
https://docs.microsoft.com/en-us/aspnet/core/security/enforcing-ssl
BR,
Mikko
tanx for the reply
tanx for the reply
Hi
Hi
I am getting blank page while opening http://localhost:64881/
How the Gurux.DLMS.AMI has to be used as an application.
Total no. of meters may be around 2000 at present
Guidance in this regard is appreciated.
Hello,
Hello,
Please, create a new topic if you have a new question.
http://www.gurux.fi/ForumRules
BR,
Mikko
Hi ok thanks for the response
Hi
ok thanks for the response