UtilitechAS / amsreader-firmware

ESP8266 and ESP32 compatible firmware to read, interpret and publish data to MQTT from smart electrical meters, both DLMS and DSMR is supported
Other
389 stars 73 forks source link

2.3.8, backup setting to file #837

Closed borgemohus closed 1 week ago

borgemohus commented 2 months ago

Function backup to file is not working when pressing "Download". Respons "not found"

image

http://192.168.86.134/configfile.cfg?iw=true&im=true&ie=true&it=true&ih=true&ig=true&in=true&is=true

Expected behavior Dialog-box where to save file

image

image

It seems to like some of the latest versions. Tried with firefox 129.0.2 and chromium 128.0.6613.84

ArnieO commented 2 months ago

I'm guessing from your nick and the customer database that you are on an older version Pow-U (layout v1.5), which uses ESP8266.

I have tried to reproduce the problem with that same version Pow-U.

That URL is strange, I don't see any URL in my browser - as this is a file download.

What is that is assigned to the IP address 192.168.86.134? Is it the Pow-U or is it the device you're running the browser on?

A screendump of your congfig screen could potentially help.

borgemohus commented 2 months ago

Yes I guess it is an old HW-version. bought feb 2022. Screenshot from 2024-09-03 20-15-25 Screenshot from setup-page (no secrets here) :)

ArnieO commented 2 months ago

🤦 I read too fast yesterday evening: Your first post showed that 192.168.86.134 is the IP of the device.

I see that you expect a dialogue box - but that will not happen. The button downloads to the download folder defined in the browser you're using.

Which browser are you using? I have tried in Firefox, Chrome and Edge - and have not seen the URL shown as in your screenclip.

borgemohus commented 2 months ago

192.168.86.134 is the ip of the amsreader, yes run via a google home-wifi

firefox and chromium version written earlier

Just tried chrome Version 128.0.6613.119 (Official Build) (64-bit) (on ubuntu 22.04), but same happends.

Børge On 04.09.2024 16:52, ArnieO wrote:

🤦 I read too fast yesterday evening: Your first post showed that 192.168.86.134 is the IP of the device.

I see that you expect a dialogue box - but that will not happen. The button downloads to the download folder defined in the browser you're using.

Which browser are you using? I have tried in Firefox, Chrome and Edge - and have not seen the URL shown as in your screenclip.

— Reply to this email directly, view it on GitHub https://github.com/UtilitechAS/amsreader-firmware/issues/837#issuecomment-2329283421, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZCF7HRLNXX5QDDFFODZNKLZU4NDHAVCNFSM6AAAAABNPCJAIGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRZGI4DGNBSGE. You are receiving this because you authored the thread.Message ID: @.***>

--------------TjZ0urJfkxNnnfbuhIMaih4u Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

<!DOCTYPE html>

192.168.86.134 is the ip of the amsreader, yes run via a google home-wifi

firefox and chromium version written earlier

Just tried chrome Version 128.0.6613.119 (Official Build) (64-bit) (on ubuntu 22.04), but same happends.


Børge
On 04.09.2024 16:52, ArnieO wrote:

🤦 I read too fast yesterday evening: Your first post showed that 192.168.86.134 is the IP of the device.

I see that you expect a dialogue box - but that will not happen. The button downloads to the download folder defined in the browser you're using.

Which browser are you using?
I have tried in Firefox, Chrome and Edge - and have not seen the URL shown as in your screenclip.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: <UtilitechAS/amsreader-firmware/issues/837/2329283421@github.com>

--------------TjZ0urJfkxNnnfbuhIMaih4u--

ArnieO commented 2 months ago

OK - I understand you're on Linux. Maybe that is an issue, we'll look into it!

borgemohus commented 2 months ago

Sorry I don't have any windows enviroment. I tried it from my Samsung PAD. Same result.

I will try to do some F12-trace with chrome soon. No pri-case this

BR Børge

ArnieO commented 2 months ago

OK, we found the issue. You have set this: image And there is a bug, where"/ams" is not included in the URL.

ArnieO commented 2 months ago

We see now that part of the bug is that if you remove the setting in Context, you will not be able to reach the device. Do this:

borgemohus commented 2 months ago

I confirm that adding "ams" (context-value) to the url worked, and I got a dialog-box where to save the file. The file contains valid values http://192.168.86.134/ams/configfile.cfg?iw=true&im=true&ie=true&it=true&ih=true&ig=true&in=true&is=true&ic=true I guess this is solved. Good work. Børge

ArnieO commented 2 months ago

Good to hear! And thank you for helping us notice that a bug was buried here. I leave the thread open for @gskjold.