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
#!/bin/bash | |
while true; do | |
TIME=`date +%Y:%m:%d:%H:%S` | |
TEMP=`cat /sys/bus/w1/devices/28-000004b57f7c/w1_slave | grep t= | cut -c30-34 ` | |
echo $TIME $TEMP | |
sleep 30 | |
done |
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
#!/bin/bash | |
TIMESTAMP=`date` | |
raspistill -t 0 -w 640 -h 480 -q 70 -ex sports -o "image.jpg" | |
url=`curl http://temploggerweb.appspot.com/imageapi?url=get` | |
curl $url -X POST -F imageFile=@"image.jpg" -o imageuploadresult.txt | |
#curl http://temploggerweb.appspot.com/imageapi -X POST -F myFile=@"image.jpg" |
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
import time | |
import subprocess | |
import RPi.GPIO as io | |
io.setmode(io.BCM) | |
pir_pin = 18 | |
io.setup(pir_pin, io.IN) # activate input |
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
auto lo | |
iface lo inet loopback | |
iface eth0 inet dhcp | |
allow-hotplug wlan0 | |
#iface wlan0 inet manual | |
iface wlan0 inet dhcp | |
wpa-ssid "my_network_name" | |
wpa-psk "my_password" |
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
private String getPath(Class cls) { | |
String cn = cls.getName(); | |
String rn = cn.replace('.', '/') + ".class"; | |
String path = getClass().getClassLoader().getResource(rn).getPath(); | |
int ix = path.indexOf("!"); | |
if(ix >= 0) { | |
return path.substring(0, ix); | |
} else { | |
return path; | |
} |
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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
} | |
project.ext { | |
wsdlDir = file("wsdl") | |
generatedWsdlDir = file("build/generated-sources") |
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
project.ext{ | |
cxfVersion = '2.5.1' | |
generatedWsdlDir = file("build/generated-sources") | |
wsdlDir = file("wsdl") | |
wsdlsToGenerate =[ | |
['-xjc', '-b', "$wsdlDir/serializable_binding.xml", "$wsdlDir/mywsdl1.wsdl.xml"], | |
['-xjc', '-b', "$wsdlDir/some_binding.xml", "$wsdlDir/mywsdl2.xml"], | |
['-xjc', '-b', "$wsdlDir/joda_binding.xml", "$wsdlDir/mywsdl3.wsdl.xml"], | |
// 55 more wsdls | |
] |
NewerOlder