Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dxdc authored Jun 1, 2020
1 parent 2694574 commit a30e3d7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ if (triggerDate > todaySunlight.sunrise && triggerDate < todaySunlight.sunset) {
}
```

3. If you want to use specific hours (i.e., not sunset/sunrise), here is an example of how that can be done. The `filter.js` code can be adapted to support any variation/combination you'd like.

```js
var currentHour = Meta.currentUserTime.hour();
if (currentHour >= 20 || currentHour < 5 ) {
// add action here
}
```

## Notes

- I experienced poor latency (up to 10 minutes in some cases) from IFTTT with this applet and moved on to other services
Expand Down

0 comments on commit a30e3d7

Please sign in to comment.