Mill-International-AS / Generation_3_REST_API

Local REST API documentation
37 stars 6 forks source link

How to get access to local API? #11

Open olavt opened 1 year ago

olavt commented 1 year ago

When adding the Mill heater (glass panel gen 3) using the Mill app, I selected the advanced option "Connect to cloud and enable local API".

I can open the web page against the heater using the 'http://localIPaddress'.

But when I try to issue a request against it (like 'http://localIPaddress>/control-status' using Postman, I get:

Request method for this URI is not handled by server (405Method Not Allowed)

How can I get the heater to accept requests from the local network?

ismarslomic commented 1 year ago

I suggest you import the Mill API (json) in Postman and make sure you set correct IP address of the heater. http://control-status/ is not correct URL

olavt commented 1 year ago

suggest you import the Mill API (json) in Postman and make sure you set correct IP address of the heat

The URL was not displayed correctly due to how Github markup displayed it. I think I'm using the correct URL.

ismarslomic commented 1 year ago

You need to find the IP address of the heater. You might see it in your admin interface of wireless router. You could also try doing a GET request with curl and copy paste the command in this issue if it fails.

olavt commented 1 year ago

Looks like the issue was using POST in stead of GET in Postman. Default was set to POST.

Seems to work now using GET.

ismarslomic commented 1 year ago

You would avoid this issue if you imported Mill API in Postman. See the Readme file for more info