| Kanal | Alias | Protokoll | Id |
| 1 | Tvättstuga | temperaturehumidity | 135 |
| 1 | Ute | temperature | 136 |
| 2 | Vind Norr | temperaturehumidity | 151 |
| 3 | Vind Syd | temperaturehumidity | 167 |
| 4 | Badrum Ovanvåning | temperaturehumidity | 183 |
| (random) | Kök | temperature | 5 |
| (random) | Entre | temperature | 110 |
| (random) | Bar | temperature | 225 |
torsdag 8 november 2018
433mhz Sensorer
tisdag 12 juni 2018
Raspberry Pi Media Center
#Update Raspbian
sudo apt-get update && sudo apt-get upgrade -y
#Install Samba
sudo apt-get install -y samba samba-common-bin
#List all discs
lsblk
#Unmount auto-mount
sudo umount /media/pi/Elements
#Install ntfs-3g, ntfs is readonly without it
sudo apt-get install ntfs-3g
#Create mount point
sudo mkdir /media/usbdisc
#Configure discs in fstab
nano /etc/fstab
/dev/sda1 /media/usbdisc ntfs defaults 0 0
#Reboot, "mount -a" seems to not work here?
#mount -a
#Sources
#https://eltechs.com/raspberry-pi-nas-guide/
#https://www.raspberrypi.org/forums/viewtopic.php?t=192499
sudo apt-get update && sudo apt-get upgrade -y
#Install Samba
sudo apt-get install -y samba samba-common-bin
#List all discs
lsblk
#Unmount auto-mount
sudo umount /media/pi/Elements
#Install ntfs-3g, ntfs is readonly without it
sudo apt-get install ntfs-3g
#Create mount point
sudo mkdir /media/usbdisc
#Configure discs in fstab
nano /etc/fstab
/dev/sda1 /media/usbdisc ntfs defaults 0 0
#Reboot, "mount -a" seems to not work here?
#mount -a
sudo reboot
sudo nano /etc/samba/smb.conf
[usbdisc$]
comment = USB Disc
browseable = yes
path = /media/usbdisc
writeable = Yes
create mask = 0777
directory mask = 0777
[Media]
comment = Media
browseable = yes
path = /media/usbdisc/media
writeable = Yes
create mask = 0777
directory mask = 0777
#guest ok = no
## Kodi
sudo apt-get install kodi
sudo nano /etc/samba/smb.conf
[usbdisc$]
comment = USB Disc
browseable = yes
path = /media/usbdisc
writeable = Yes
create mask = 0777
directory mask = 0777
[Media]
comment = Media
browseable = yes
path = /media/usbdisc/media
writeable = Yes
create mask = 0777
directory mask = 0777
#guest ok = no
## Kodi
sudo apt-get install kodi
##Transmission
sudo apt-get install -y transmission-daemon
sudo usermod -a -G pi debian-transmission
sudo apt-get install -y transmission-daemon
sudo usermod -a -G pi debian-transmission
#Sources
#https://eltechs.com/raspberry-pi-nas-guide/
#https://www.raspberrypi.org/forums/viewtopic.php?t=192499
#https://www.addictivetips.com/media-streaming/kodi/install-transmission-raspberry-pi-torrent/
fredag 16 mars 2018
My Pi's
My Pi's
| Host | Revision | Model | Mem | Usage | Hardware |
|---|---|---|---|---|---|
| pi01 | 0002 | B | 256MB | Retired | |
| pi02 | 000e | B | 512MB | Storage, database | 500GB HDD |
| 000e | B | 512MB | Greenhouse Automation | Pumps and sensors | |
| pi04 | 000e | B | 512MB | Home Automation: Z-Wave | RaZberry |
| PI3 | c03111 | 4B | 4GB | Home Automation: Logic | |
| a02082 | 3B | 1GB | Web/Proxy | ||
| pi07 | a02082 | 3B | 1GB | Unifi Controller | |
| a020d3 | 3B+ | 1GB | (ol-results) ToBe: Beer | ||
| pi09 | 9000c1 | Zero W | 512MB | Home Automation: Bedroom Blinds | Bofu tubular motors |
| pi10 | 9000c1 | Zero W | 512MB | Home Automation: Plejd/Shellies | |
| pi11 | 9000c1 | Zero W | 512MB | Home Automation: Tellstick | Tellstick Duo |
| pi12 | c03111 | 4B | 4GB | Media center | 2TB HDD |
cat /proc/cpuinfo
https://elinux.org/RPi_HardwareHistory#Which_Pi_have_I_got.3F
Regular upgrade:
sudo apt-get update && sudo apt-get -y dist-upgrade
Upgrade stretch to buster:
https://pimylifeup.com/upgrade-raspbian-stretch-to-raspbian-buster/
Upgrade Node-REDbash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
https://nodered.org/docs/getting-started/raspberrypi
torsdag 1 februari 2018
Z-Way on Raspbian
#Z-Way does not work on Raspbian Stretch yet.
#https://github.com/Z-Wave-Me/z-way-issues/issues/133
#Temporary fix:
#https://forum.z-wave.me/viewtopic.php?f=3417&t=26138
#Old releases can be found here:
#http://downloads.raspberrypi.org/raspbian/images/
#Fix for raspbian stretch:
wget -q -O - support.zwave.eu/libs | sudo bash
wget -q -O - razberry.z-wave.me/install | sudo bash
http://192.168.1.xx:8083
#https://github.com/maros/Zway-BaseModule/
Install BaseModule
#https://github.com/Edubits/Zway-MQTT
Install MQTT
lördag 27 januari 2018
Mosquitto
#***************************************************
#********** INSTALL **********#***************************************************
#Install
sudo apt-get install mosquitto
#If /var/log is in tmpfs, also add:
#Add user
# -c means also create file
sudo mosquitto_passwd [-c ]/etc/mosquitto/mosquitto.passwd [user]
#***************************************************
#********** CONFIG **********
#***************************************************
#My additions to default config file
#/etc/mosquitto/mosquitto.conf
allow_anonymous false
password_file /etc/mosquitto/mosquitto.passwd
listener 1883
protocol mqtt
listener 8000
protocol websockets
#***************************************************
#********** Misc **********
#Restart
sudo service mosquitto restart
#Run in console mode:
#Autostart not super clear, on by default but had other problems?, GOOGLE IT and try!
#********** INSTALL **********#***************************************************
#Install
sudo apt-get install mosquitto
#If /var/log is in tmpfs, also add:
#777 is needed since mosquitto runs as user mosquitto
tmpfs /var/log/mosquitto tmpfs defaults,noatime,nosuid,mode=0777,size=100m 0 0
#Add user
# -c means also create file
sudo mosquitto_passwd [-c ]/etc/mosquitto/mosquitto.passwd [user]
#***************************************************
#********** CONFIG **********
#***************************************************
#My additions to default config file
#/etc/mosquitto/mosquitto.conf
allow_anonymous false
password_file /etc/mosquitto/mosquitto.passwd
listener 1883
protocol mqtt
listener 8000
protocol websockets
#***************************************************
#********** Misc **********
#***************************************************
#Restart
sudo service mosquitto restart
#Run in console mode:
sudo /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
#Autostart not super clear, on by default but had other problems?, GOOGLE IT and try!
#https://github.com/eclipse/mosquitto/issues/310
sudo update-rc.d mosquitto defaults
sudo systemctl enable mosquitto.service
tail -f -n 20 /var/log/mosquitto/mosquitto.log
sudo systemctl enable mosquitto.service
tail -f -n 20 /var/log/mosquitto/mosquitto.log
Prenumerera på:
Inlägg (Atom)
