Netro Inc
更新时间 2020-09-11 04:12:00 UTC

Dear Christophe, 


Netro IFTTT returns local time for convenience, where the time zone is determined by your device address. The API returns

1. date: local date

2. start_time: local start time, please use only the time part and ignore the date and time zone part if any. 

3. end_time: local end time, similar with above. 


We have checked the API, it seems OK. For example, you have a schedule on 2020/09/10, from 06:00am to 06:28am, the API returns:

{"device":"Pontaillac ","zone":1,"date":"2020-09-10","start_time":"2020-09-10T06:00:00.000Z","end_time":"2020-09-10T06:28:00.000Z","source":"SMART","status":"EXECUTED","meta":{"id":94827648,"timestamp":1599710400}}


Please note that "2020-09-10T06:28:00.000Z" is not UTC time, only use the "06:28:00" part, although system may add date and timezone part automatically. 


Please let us know if you have more concerns. 


浏览: 2238    点赞: 0


Christophe Benoit
2020-09-12 07:04:27 UTC  
Hello,

Please find below my log of IFTTT for the event you refer to.
As you can see the end time does not match with the time the event has been reported at (8:28 am vs. 6:28 am) as mentioned in my first post.

Please advice,
Christophe


Applet ran
Sep 10 - 6:28 AM
Netro
If a watering schedule of Pontaillac/Puit is finished, then report start time to Jeedom
Netro has just watered your yard.
Hide details
Trigger ingredients
Date
September 10, 2020
Device
Pontaillac
EndTime
September 10, 2020 at 08:28AM
Source
SMART
StartTime
September 10, 2020 at 08:00AM
Status
EXECUTED
Zone
1

Netro Inc
2020-09-14 04:59:31 UTC  
Could you let us know which applet are you using now, such that our R&D could invest the problem further? If could be IFTTT converts the time incorrectly.
Christophe Benoit
2020-09-15 12:23:02 UTC  
IF THIS netro schedules device Pont... zone 1
THEN THAT Make a web request method GET url https://xxx.yyy.net/core/api/zzzzzzz?api=1111111111111111111111111111111111111111111&value={{StartTime}}

Netro Inc
2020-09-16 01:37:47 UTC  
What's this, could you give use the applet link or name? Is it a applet provided by Netro or other?

Christophe Benoit
2020-09-19 22:29:51 UTC  
The name of the applet is "If a watering schedule of Pontaillac/Puit is finished, then report start time to Jeedom" by kcofoni. Not sure it is public since I did this simple composition by myself. What I tried to explain you, using the IFTT (If Then This Then That) formalism, is that I composed this applet the following way :

- test condition from the IFTTT Netro service "schedules"
- then do a http GET request using the IFTTT Webhooks service "Make a web request", using the start time as a value in the http request provided

Is that clearer ? Please advice.

Christophe

Netro Inc
2020-09-21 03:20:44 UTC  
If you did the applet by your self, please use the time part only. i.e. once you the start_time, you should ignore the date and timezone part.

Netro Inc
2020-09-21 03:21:23 UTC  
You could send more details to support@netrohome.com if you like.