Compare commits
No commits in common. "3723913631df1113bc22ea6e67694e0e2b267cd1" and "cbc0d80b992ef0de50c6a798fd04feadeaa4f62b" have entirely different histories.
3723913631
...
cbc0d80b99
Binary file not shown.
31
REAME.md
31
REAME.md
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
## Hardware
|
||||
- Raspberry Pi Zero W
|
||||
- 3G Stick Huawei E3533
|
||||
- 3G Stick Huawei E3531
|
||||
|
||||
## INSTALLATION
|
||||
|
||||
|
|
@ -44,6 +44,9 @@ Software installieren:
|
|||
# apt-get install python-bottle
|
||||
# apt-get install privoxy
|
||||
|
||||
Firmware-Update:
|
||||
# rpi-update
|
||||
|
||||
reboot
|
||||
```
|
||||
|
||||
|
|
@ -56,18 +59,8 @@ dtparam=audio=off
|
|||
|
||||
# Disable Bluetooth
|
||||
dtoverlay=pi3-disable-bt
|
||||
|
||||
# Disable the ACT LED on the Pi Zero.
|
||||
dtparam=act_led_trigger=none
|
||||
dtparam=act_led_activelow=on
|
||||
```
|
||||
|
||||
In /boot/cmdline.txt folgendes anhaengen:
|
||||
```
|
||||
dwc_otg.speed=1
|
||||
```
|
||||
|
||||
|
||||
Bluetooth Dienste disablen:
|
||||
```
|
||||
systemctl disable hciuart.service
|
||||
|
|
@ -87,11 +80,11 @@ network={
|
|||
}
|
||||
```
|
||||
|
||||
### USB Stick E3533
|
||||
### USB Stick E3531
|
||||
```
|
||||
Einrichten GSM:
|
||||
/etc/usb_modeswitch.d/12d1:157d:
|
||||
#Huawei E3533
|
||||
#Huawei E3531
|
||||
TargetVendor=0x12d1
|
||||
TargetProduct=0x1436
|
||||
MessageContent="55534243123456780000000000000011063000000000010000000000000000"
|
||||
|
|
@ -107,7 +100,7 @@ gammu sendsms TEXT 0765006123 -text "Halooo von beielipi"
|
|||
|
||||
/etc/privoxy/config anpassen:
|
||||
```
|
||||
debug 512
|
||||
debug 1024
|
||||
listen-address 192.168.255.1:8118
|
||||
```
|
||||
|
||||
|
|
@ -120,7 +113,7 @@ in /etc/privoxy/user.action folgendes anfuegen (am Ende):
|
|||
|
||||
# Jetzt kommt die Whitelist
|
||||
{ -block }
|
||||
www.nbit.ch/files/heartbeat.html
|
||||
www.sbb.ch
|
||||
*.autodesk.com
|
||||
js-agent.newrelic.com
|
||||
bam.nr-data.net
|
||||
|
|
@ -165,14 +158,6 @@ $ tar cvf /var/tmp/proxypi-git-files.tar .
|
|||
|
||||
# systemctl enable my_web_server
|
||||
# systemctl disable dhcpcd
|
||||
# systemctl disable avahi-daemon
|
||||
# systemctl disable triggerhappy
|
||||
|
||||
Cronjob einrichten:
|
||||
/etc/cron.d/send_sms:
|
||||
@reboot root sleep 30;/home/pi/root-bin/send_sms
|
||||
|
||||
|
||||
|
||||
Reboot:
|
||||
# init 6
|
||||
|
|
|
|||
|
|
@ -15,5 +15,4 @@ while ! ping -c 1 -W 1 8.8.8.8 &>/dev/null ; do
|
|||
fi
|
||||
x=$((x+1))
|
||||
done
|
||||
/usr/sbin/ntpdate 3.de.pool.ntp.org
|
||||
echo "$(date): Connected to Internet...- IP: $(/home/pi/root-bin/get_internet_ip)"
|
||||
|
|
|
|||
|
|
@ -1,24 +0,0 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Sendet mindestens einmal pro Halbjahr eine Test-SMS,
|
||||
# damit der Prepaid Account nicht wegen Nicht-Benutzung gesperrt
|
||||
# wird.
|
||||
#
|
||||
# 25.4.2018 - Joerg Lehmann
|
||||
#
|
||||
MONTH="$(date +%m)"
|
||||
STATE_DIR=/var/tmp
|
||||
|
||||
case ${MONTH} in
|
||||
0[1-6]) HY=1
|
||||
;;
|
||||
*) HY=2
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ ! -f ${STATE_DIR}/sms-sent.${HY} ]; then
|
||||
rm ${STATE_DIR}/sms-sent.* 2>/dev/null
|
||||
touch ${STATE_DIR}/sms-sent.${HY}
|
||||
echo "Sending Test SMS for Half-Year ${HY}..."
|
||||
gammu sendsms TEXT 0765006123 -text "Heartbeat from ProxyPi..."
|
||||
fi
|
||||
Loading…
Reference in New Issue