bluetooth scale by nbit informatik

This commit is contained in:
2018-05-19 17:04:00 +02:00
parent 053bbacb01
commit f1c6115c03
15 changed files with 523 additions and 117 deletions
-1
View File
@@ -1 +0,0 @@
@reboot root /home/beieli/root-bin/gsm_poweron.py
+12 -6
View File
@@ -1,8 +1,14 @@
[gammu]
# Please configure this!
port = /dev/ttyAMA0
device = /dev/ttyUSB0
name = Phone on USB serial port HUAWEI HUAWEI_Mobile
connection = at
[gammu1]
device = /dev/ttyUSB1
name = Phone on USB serial port HUAWEI HUAWEI_Mobile
connection = at
[gammu2]
device = /dev/ttyUSB2
name = Phone on USB serial port HUAWEI HUAWEI_Mobile
connection = at
# Debugging
#logformat = textall
logformat = errorsdate
#pin = 8296
+3 -2
View File
@@ -1,8 +1,9 @@
#imis/internet is the apn for idea connection
connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs -T gprs.swisscom.ch"
#connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs -T gprs.swisscom.ch"
connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs -T internet"
# For Raspberry Pi3 use /dev/ttyS0 as the communication port:
/dev/ttyAMA0
/dev/ttyUSB0
# Baudrate
115200
+1 -1
View File
@@ -1 +1 @@
beieli ALL=(ALL) NOPASSWD: /sbin/init,/home/beieli/root-bin/connect_to_internet,/home/beieli/root-bin/disconnect_from_internet,/home/beieli/root-bin/hotspot_on,/home/beieli/root-bin/hotspot_off,/home/beieli/root-bin/sync_time_with_internet
beieli ALL=(ALL) NOPASSWD: /sbin/init,/home/beieli/root-bin/connect_to_internet,/home/beieli/root-bin/disconnect_from_internet,/home/beieli/root-bin/hotspot_on,/home/beieli/root-bin/hotspot_off,/home/beieli/root-bin/sync_time_with_internet,/usr/bin/hcitool,/home/beieli/root-bin/get_balance.sh
@@ -0,0 +1,15 @@
[Unit]
Description=btmon service
After=syslog.target
After=network.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/home/beieli/bin
ExecStart=/home/beieli/bin/btmon.py
Restart=always
[Install]
WantedBy=multi-user.target