Integration with IFTTT

General Discussion

Integration with IFTTT

Postby monnerie » Thu Dec 01, 2016 4:42 pm

Hello, I'm testing the integration of the WEB Application on a Raspberry PI with IFTTT. It seems to be working, except for an issue with the timestamp format. I'm using the Makers web API in IFTTT, which requires JSON data in a body of a GET or POST request. I'm passing 2 values in the JSON data: value1 is {{timestamp}} and value 2 is {{message}}. In IFTTT, the message is parsed properly but the timestamp is in unix time format. Here is a sample email I received from IFTTT:
Sender: Maker via IFTTT <action@ifttt.com>
Subject: Alarm occurred
What: The alarm system has been disarmed.
When: 1480639237.715948

I would have expected to see instead:
When: 12/1/2016, 5:40:37 PM GMT-7:00

Any suggestion?
monnerie
newt
newt
 
Posts: 4
Joined: Wed Nov 30, 2016 8:39 pm

Re: Integration with IFTTT

Postby kevin » Thu Dec 01, 2016 9:47 pm

I'll change this in the next code release, I believe the thought was the endpoint would parse the timestamp into whatever format but yeah I would agree that in most cases it should be human readable from the get-go.
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Integration with IFTTT

Postby kevin » Fri Dec 02, 2016 10:45 am

Just posted a change to our local git repo for inclusion into the next release happening here any time, we are just finalizing a new image and testing.

Here is an example format of the new timestamp replacement text: 2016-12-02 10:33:19 PST
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Integration with IFTTT

Postby monnerie » Sat Dec 03, 2016 9:48 am

Sounds good. Looking forward to the next release!
monnerie
newt
newt
 
Posts: 4
Joined: Wed Nov 30, 2016 8:39 pm


Return to General

Who is online

Users browsing this forum: No registered users and 5 guests

cron