This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Save a camera snapshot when motion is detected | |
description: Save a camera snapshot with archive when motion is detected | |
domain: automation | |
source_url: https://gist.github.com/webmasterkai/6011ff64fc1a236b8025181a535dbf87 | |
input: | |
motion_sensor: | |
name: Motion sensor | |
description: The sensor wich triggers the snapshot creation | |
selector: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/twitter_pull.class.inc b/twitter_pull.class.inc | |
index 623fdc3..670c2d1 100644 | |
--- a/twitter_pull.class.inc | |
+++ b/twitter_pull.class.inc | |
@@ -54,7 +54,7 @@ class twitter_puller { | |
// if the first character is @, then consider the key a username | |
elseif ($prefix == "@") { | |
$key = drupal_substr($this->twitkey, 1); | |
- $url = 'http://api.twitter.com/1/statuses/user_timeline.json?screen_name='. urlencode($key) .'&include_rts=true&count='. $num; | |
+ $url = 'http://dong.cape.io/api/twitter/innovadotmu?tweets=3' . urlencode($key) . '?tweets=' . $num; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name img.l; | |
root /var/www/cache/store/ns365; | |
index index.html; | |
# This requests the original file from itself and then resizes the image. | |
location ~ /resize/(\d+)x(\d+)/(.*) { | |
proxy_pass http://img.l/$3; | |
image_filter resize $1 $2; | |
image_filter_jpeg_quality 90; |