Does life 360 use HE servers?
Curl just calls URLs... what would that serve to accomplish? Whatever URLs HE does have (like MakerAPI endpoints) you can certainly call via curl running on any PC
There isn't really anything you could do from Linux. Hmm, stop the platform, reboot...
Everything doable can be done through the web ui.
I use curl to send email through my SMTP server over SSL. Right now it goes through a telnet connection to my NAS, and my NAS performs the curl command.
So you're saying you want HE to execute a curl command to something on the outside? I know you said you haven't played with groovy yet, but that'll be like 4 lines of code. Setup a schedule() - basically a cron, and call httpGet or httpPost or whatever method you need. And if you don't want to do code, RM can be used to create a rule to call an http endpoint.
Email? Yuck. It isn't 1995.
Yeah I saw that, but don't have sendmail running, and I can use curl. I planned to look through that code and get it to connect to my SMTP server (not local) over SSL, but haven't had the energy ever since my telnet hack worked.
I like getting my notifications by SMS (okay, so I'm old!). And there's still email2sms gateways running .....
Emails could be treated as weekly reports.
I know, I was being a bit of a smart arse.
I will say, though, FOR ME if it doesn't come as an SMS or pushed notification then I'm never going to look at it.
Can you give me an example (like paste the curl) of what you're doing? I feel like RM can do exactly what you want all through a UI, no coding.
Yup. Same here.
Yes--I'll put it right here in a sec.
Here's the section that sends the curl command via telnet:
def emlRcpts = emlTo.split(', *') //support multiple comma-delimited recipients
String mailRcpts = ''
emlRcpts.each {
mailRcpts = mailRcpts + "--mail-rcpt '${it}' "
}
def sndCommand = "echo 'To: ${emlTo}\nSubject: ${emlSubject}\nFrom: ${emlFrom}\nContent-Type: text/plain;\n${state.EmailBody}' | curl --url 'smtps://${emlServer}:${emlPort}' --ssl-reqd --mail-from '${emlFrom}' ${mailRcpts}--upload-file '-' --user '${emlUsername}:${emlPassword}'"//WARNING: username and password on command line! >:(
hubCmd = sendHubCommand(new hubitat.device.HubAction(sndCommand, hubitat.device.Protocol.TELNET))
log.info("Notification sent to ${emlTo}: ${state.EmailBody}")
The actual curl command is like:
echo 'To: email1@to.com,email2@to.com
Subject: Subject
From: email@from.com
Content-Type: text/plain;
This is the email body' | curl --url 'smtps://mail.server.com:465' --ssl-reqd --mail-from 'email@from.com' --mail-rcpt 'email1@to.com' --mail-rcpt 'email2@to.com' --upload-file '-' --user 'username:password'
Life360 the platform does not. But the integration with HE presumably goes through the hubitat cloud as @ogiewon explained above:
Off topic, but I wonder how Home Assistant does it... It has Life360 integration, too, and I don't think it has cloud endpoints (?). Or maybe it does, I've never really thought about it, I just know it works (Life360 integration in HA - not HA in general ) .
If there were a way to get cloud integrations that could (securely) communicate directly with the hub that'd be pretty cool. Then we really wouldn't have to care if Hubitat went belly up .
Thank you Bruce. Well said.
So does Node-RED. I'm guessing its through some kind of polling ......