baldarn / whatsapper

A simple web api for whatsapp-web.js
MIT License
16 stars 1 forks source link

WebUI is not available #1

Closed Xornop closed 7 months ago

Xornop commented 7 months ago

WebUI is not available. Installed, started, looked at log, scanned qr with whatsapp mobile app, connected according to the app. Running hassos without docker, install instructions dont mention that docker is needed

{"method":"GET","url":"/","hostname":"homeassistant.local:3456","remoteAddress":"192.168.69.103","remotePort":52300},"msg":"incoming request"} {"level":30,"time":1706443007881,"pid":7,"hostname":"db21ed7f-whatsapper","reqId":"req-b","res":{"statusCode":200},"responseTime":3.00314599275589,"msg":"request completed"} {"level":30,"time":1706443008217,"pid":7,"hostname":"db21ed7f-whatsapper","reqId":"req-c","req":{"method":"GET","url":"/favicon.ico","hostname":"homeassistant.local:3456","remoteAddress":"192.168.69.103","remotePort":52300},"msg":"incoming request"} {"level":30,"time":1706443008219,"pid":7,"hostname":"db21ed7f-whatsapper","reqId":"req-c","msg":"Route GET:/favicon.ico not found"} {"level":30,"time":1706443008225,"pid":7,"hostname":"db21ed7f-whatsapper","reqId":"req-c","res":{"statusCode":404},"responseTime":7.172524988651276,"msg":"request completed"}

baldarn commented 7 months ago

hi, thanks for the issue.

webui on the / path is not present.

you can navigate to /chats to see a little webui.

for not the app is intended to be used through post at /command api :)

Xornop commented 7 months ago

Going to homeassistant.local:4000/chats gives me:

{"error":"Client not initalized"}

Please update the installation and usage instructions for dummies like me. For example: how do i send a message from HA?

baldarn commented 7 months ago

for HA I created this https://github.com/baldarn/whatsapper-ha-integration

is also in the process of being merged in hacs, hopefully ;)

Xornop commented 7 months ago

Going to homeassistant.local:4000/chats still gives me: {"error":"Client not initalized"} Please help.

baldarn commented 7 months ago

how are you starting the app? have you scanned the qr code?

Xornop commented 7 months ago

Does the qr code change after every restart? I rescanned the qr code and now it works 👍 Is there no way to make it remember the token?

baldarn commented 7 months ago

yes, I thought that was already done, but I was wrong ;)

I'll try to implement that.

https://github.com/baldarn/whatsapper/issues/2

baldarn commented 7 months ago

@Xornop fixed here

https://github.com/baldarn/whatsapper/issues/2