Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 101645

Best way to request data from outside API on demand

$
0
0

@ih8gates wrote:

I’m giving the fairly-new Obihai component a try. I’m replacing a pretty janky perl script that I currently have polling the Obi’s admin page.

One of the things I like about my perl script is that I have the caller’s name looked up via OpenCNAM. They have a nice, inexpensive API to turn phone numbers into CID names.

I’d like to strip the phone number part out of the Obi data and get the name from OpenCNAM. It doesn’t look like RESTFul comands keep the response.

Is my best bet to use a shell_comand, make the OpenCNAM call, then use HA’s API to put the returned value into an input_text or similar? Or is there a better way?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 101645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>