hoylabs / OpenDTU-OnBattery

Software for ESP32 to talk to Hoymiles/TSUN/Solenso Inverters, VE.Direct devices, battery management systems, and related peripherals
GNU General Public License v2.0
301 stars 63 forks source link

No URL input field available in settings/powermeter <option value="3">HTTP(S) + JSON</option> #1124

Closed ibr closed 2 months ago

ibr commented 2 months ago

What happened?

try to set connection to Shelly 3em, nice example box, but cannot enter URL, no field

To Reproduce Bug

open settings/powermeter

Form option:

Expected Behavior

URL Field visible

Install Method

Self-Compiled

What git-hash/version of OpenDTU?

v24.6.29-9-g0013b2c

Relevant log/trace output

<div class="alert alert-secondary mt-5" role="alert"><h2>URL examples:</h2><ul><li>http://admin:secret@shelly3em.home/status</li><li>https://admin:secret@shelly3em.home/status</li><li>http://tasmota-123.home/cm?cmnd=status%208</li><li>http://12.34.56.78/emeter/0</li></ul><h2>JSON path examples:</h2><ul><li>total_power - { "othervalue": "blah", "total_power": 123.4 }</li><li>testarray/[2]/myvalue - { "testarray": [ {}, { "power": 123.4 } ] }</li></ul> More info: <a href="https://github.com/mobizt/FirebaseJson">https://github.com/mobizt/FirebaseJson</a></div>

Message after submit:
URL must either start with http:// or https://!

Anything else?

No response

Please confirm the following

spcqike commented 2 months ago

Ist es vielleicht ähnlich meinem Problem von hier?

https://github.com/helgeerbe/OpenDTU-OnBattery/pull/1077#issuecomment-2200817594

Das sollte eigentlich gefixt wurden sein. Zumindest ging es nach schlimmchens Anpassungen dann wie erwartet.

schlimmchen commented 2 months ago

URL Field visible

What does it look like? Please share a screenshot?

Self-Compiled

So you probably forgot to build the webapp beforehand? https://www.opendtu.solar/firmware/compile_webapp/ If possible, use a binary from one of the build action runs of the development branch, like https://github.com/helgeerbe/OpenDTU-OnBattery/actions/runs/10046067064.

ibr commented 2 months ago

I used vscode on MacOSX, compiled and flashed OpenDTU on fusion board, connected to HMS800, found everything working, then compiled and flashed OpenDTUOnBattery, so maybe old config is still around??

Bildschirmfoto 2024-07-23 um 22 00 44

MQTT settings are also not stored...

schlimmchen commented 2 months ago

So you probably forgot to build the webapp beforehand? https://www.opendtu.solar/firmware/compile_webapp/

ibr commented 2 months ago

Sorry, new to the project, tried yarn dev, which shows all input fields, will try to flash again.

github-actions[bot] commented 1 month ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.