Giter Club home page Giter Club logo

rpi_remote_mqtt's Introduction

rpi_remote_mqtt

sudo pacman -S python-paho-mqtt mosquitto_sub -h HOST -p PORT -u USER -P PASS -v -t "#" mosquitto_pub -h HOST -p PORT -u USER -P PASS -t 'device_outdoor/input/light' -m '0'

sudo pacman -S python-periphery sudo pacman -S bindW

https://ozzmaker.com/i2c/ sudo pacman -S i2c-tools /etc/modules-load.d/raspberry_i2c.conf i2c-dev i2c-bcm2708

/boot/config.txt dtparam=i2c_arm=on dtparam=i2c1=on

groupadd gpio sudo gpasswd -a alarm wheel sudo gpasswd -a alarm network sudo gpasswd -a alarm gpio

/etc/udev/rules.d/alarm-gpio.rules SUBSYSTEM=="gpio", ACTION=="add", PROGRAM="/bin/sh -c 'chgrp -R gpio /dev/gpiochip* && chmod -R g+rw /dev/gpiochip*'"

/etc/udev/rules.d/alarm-i2c.rules SUBSYSTEM=="i2c-dev", ACTION=="add", PROGRAM="/bin/sh -c 'chgrp -R gpio /dev/i2c* && chmod -R g+rw /dev/i2c*'"

connect to rpi using usb tethering

  • adb devices
  • adb tcpip 5555
  • adb connect IP
  • turn on usb tethering
  • adb shell
  • ip -4 addr show rndis0
  • for i in seq 255; do ping -c 1 192.168.135.$i | grep "time="; done for i in seq 255; do ping -c 1 ip -4 addr show dev rndis0 | grep inet | tr -s " " | cut -d" " -f3 | head -n 1 | cut -d "." -f 1,2,3.$i | grep "time="; done

/etc/systemd/system/[email protected]/override.conf [Service] ExecStart= ExecStart=-/usr/bin/agetty --autologin username --noclear %I $TERM

systemctl enable getty@tty1 ?

/etc/polkit-1/rules.d/50-org.freedesktop.NetworkManager.rules polkit.addRule(function(action, subject) { if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("network")) { return polkit.Result.YES; } });

/boot/config.txt dtoverlay=w1-gpio ls /sys/bus/w1/devices/ cat /sys/bus/w1/devices/28-051693ec41ff/w1_slave

rpi_remote_mqtt's People

Contributors

schef avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.