Fulltextové výsledky:
- Nové SpiHOME
- d [[https://github.com/ehorohorin/SDM630|odtud]] <file | sdm630-mqtt.py> #!/usr/bin/env python3 # -*- co... configparser as ConfigParser import time CONFIG_FILE = '/usr/local/bin/sdm630_mqtt/sdm630-mqtt.conf' ... v) == 3) and sys.argv[1] == '-c'): CONFIG_FILE = sys.argv[2] logging.info("Reading config...") c... rser.ConfigParser() confread = config.read(CONFIG_FILE) logging.info("Read config {}".format(confread))
- OPIone - Světla
- ni kontrolu, ze vsechny svetla nabehnou. </WRAP> <file bash relaystart.sh> #! /bin/sh # /etc/init.d/rela... 5 out && gpio write 5 0 sleep 1 gpio write 5 1 </file> Pokud nam vse funguje pres commandlajnu, muzeme ... her.conf.example prejmenujeme na launcher.conf: <file>logfile = 'logfile' mqtt_broker = 'ip-brokera' # default: 'localhost' mqtt_port = 1883
- Carnet
- l</code> <code bash>nano /etc/wvdial.conf</code> <file conf wvdial.conf> [Dialer Defaults] Modem = /dev/... =1,"IP","internet" Phone = *99# Stupid Mode = 1 </file> vyzkousime wvdial pak do /etc/network/interface... trebujeme xl2tp: upravit /etc/xl2tpd/xl2tpd.conf <file conf xl2tpd.conf> [global] access control = no auth file = /etc/ppp/chap-secrets debug avp = no debug netw
- OPIone - Senzory
- zku a soubory humid a temp, ktere volam zabixem <file python humid.py> from pyA20.gpio import gpio from... lt.humidity) break # time.sleep(100) </file> pro mqtt ze skriptu "tomqtt" FIXME <file bash tomqtt.sh> #! /bin/sh PATH=/usr/local/sbin:/usr/local... --retain -h 10.133.1.41 -t humid/kuch -m $HUMI </file> a do cronu co 10min <code bash>*/10 * * * * /u
- Node-RED
- Node-RED ====== ===== autoupdate skript ===== <file bash autoupdate.sh>apt-get -y -qq update apt-get ... -red # npm outdated npm -s update npm -s rebuild</file> ===== Best practices ===== * pouzivame **libr