I have a Dlink camera that I can easily enable or disable motion detection with a simple URL. The URL is not accessible from outside the home network just like my SONOS speakers. So I am sure that I can get this working but for some reason I just cant get things to connect.
How can I from the API connect to an inside network address? are there any tutorials on how to do this?
I was hoping I did not have to use that autodiscover function. I need to see what I can find that the cameras will respond with that I can use to identify them.
You don’t have to use auto discover, you can have the user input the IP address. Use the search button to search for foscam or Roomba to find examples.
For example, what if you have two buttons, each executing a chain of 2 or more local http calls. Each http call requires data from the previous call response.
The user mashes button one and it starts firing the local calls, each one being handled by parse(). In the middle the user mashes button 2, and it starts sending things to parse(). All the sudden in parse() you have no idea what response you are getting back, and what should happen next.
We need something synchronous for local calls, just like httpPostJson is for external calls! @twack@pstuart
Do you have a device that you can’t get working or that you currently have this issue with our is this pure speculation with out any experience? It sounds like you are making up issues that don’t exist.
Recreate this in a device type using a local ip. Also it should not be able to be interrupted by another function using calls to the same ip. Good luck!
Thx for the function… I think… it doesn’t tell me what device this is other than blue iris. If you want help and your ready to be serious about it, then let me know. Until then i have better things to do with my time.
It seems that you can use the normal commands (httpPost, httpGet) in a device type in a synchronous manner, but local ips are blacklisted. So close, yet so far away.
The whole hubaction/parse pattern seems a really bizzare choice…as if they are trying to fit http traffic fit into a zigbee/zwave pattern.
I think you should be able to recognize the issue from my comments and the code. If you think you know of a strategy, then explain it, otherwise you have just been detracting from the conversation.
@sidjohn1 I think his point is that you cannot use httpPostJson against local ip addresses and this function would be precarious to recreate using hubAction.