Blueforcer / awtrix3

Custom firmware for the Ulanzi Smart Pixel clock or self made awtrix. Getting started is easy as 1-2-3
https://blueforcer.github.io/awtrix3/
Other
1.27k stars 110 forks source link

[BUG] API doesn't work #558

Closed Goldsucher closed 4 months ago

Goldsucher commented 4 months ago

Bug report

Describe the bug

I have a fresh installation of awtrix on my ulanzi clock but the API doesn't work. If I try

curl -d '{"force":true,"text":"Awesome","icon":1,"color":[0,255,255],"count":2}' -H "Content-Type: application/json" -X POST http://192.168.250.60:7000/api/v3/notify

I get curl: (7) Failed to connect to 192.168.250.60 port 7000 after 135 ms: Couldn't connect to server

I really have no idea why this is the case. I can connect with the Awtrix iOS App and mqtt is also working. There is no firewall or strange network configuration. Ping is working

nc -zv 192.168.250.60 7000 gives me: nc: connectx to 192.168.250.60 port 7000 (tcp) failed: Connection refused

Additional information

To Reproduce

Install Awtrix. Send curl / http request

Expected behavior

Text is shown on clock

Blueforcer commented 4 months ago

Some json keys doesn't exist and also port 7000 doesn't exist. Please stick to the documentation

Goldsucher commented 4 months ago

sorry but that is exactly what your documentation says: https://awtrixdocs.blueforcer.de/#/en-en/api

what would be the correct Port?

Blueforcer commented 4 months ago

That's a different and old project. It's not linked to this repo in any way. Use the documentation of this AWTRIX 3 Repo

Goldsucher commented 4 months ago

Oh sorry, I must have mixed it up. Thanks for the clarification! 🙏