d1mini Tasmota

MqttPassword xxxx

MqttUser xxxx

MqttHost x.x.x.x

Configure Other, template

{“NAME”:”Wemos D1 Mini ESP32″,”GPIO”:[0,0,1,0,1,1,0,0,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0],”FLAG”:0,”BASE”:1}

setoption1 1

setoption73 1

{“SwitchMode”:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}

Raspberry Pi disk errors 3

more temp fs stuff for /etc/fstab
stolen from zdnet:
tmpfs /tmp tmpfs defaults,noatime,nosuid,size=100m 0 0
tmpfs /var/tmp tmpfs defaults,noatime,nosuid,size=30m 0 0
tmpfs /var/log tmpfs defaults,noatime,nosuid,mode=0755,size=100m 0 0
tmpfs /var/run tmpfs defaults,noatime,nosuid,mode=0755,size=2m 0 0
tmpfs /var/spool/mqueue tmpfs defaults,noatime,nosuid,mode=0700,gid=12,size=30m 0 0

Raspberry PI disk errors two

Just unmount the dos partition, fix and remount while the pi is running?

#aptitude install dosfstools
#mount
#umount /dev/mmcblk0p1
#dosfsck -t -a -w /dev/mmcblk0p1
#mount /dev/mmcblk0p1

root@weather:~# dosfsck -t -a -w /dev/mmcblk0p1
fsck.fat 3.0.27 (2014-11-12)
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
Automatically removing dirty bit.
Performing changes.
/dev/mmcblk0p1: 58 files, 79271/100792 clusters
root@weather:~# dosfsck -t -a -w /dev/mmcblk0p1
fsck.fat 3.0.27 (2014-11-12)
/dev/mmcblk0p1: 58 files, 79271/100792 clusters
root@weather:~# mount /dev/mmcblk0p1

And so I know it is fixed:
root@pi-sprinkler:~# echo “Fixed the DOS FS today” > /dev/kmsg

pi firmware

root@weather:~# /opt/vc/bin/vcgencmd version
Jan 20 2015 18:10:55
Copyright (c) 2012 Broadcom

version b95d88a52e7948aa6036ee43cff39d28fe1a54bd (clean) (release)
root@raspberrypi2:~# rpi-update
*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
*** Performing self-update
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10185 100 10185 0 0 31602 0 --:--:-- --:--:-- --:--:-- 40098
*** Relaunching after update
*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
*** We're running for the first time
*** Backing up files (this will take a few minutes)
*** Backing up firmware
*** Backing up modules 3.18.11-v7+
#############################################################
WARNING: This update bumps to rpi-4.0.y linux tree
Be aware there could be compatibility issues with some drivers
Discussion here:
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=113753
##############################################################
Would you like to proceed? (y/N)

root@raspberrypi2:~# /opt/vc/bin/vcgencmd version
Apr 21 2015 14:42:19
Copyright (c) 2012 Broadcom
version 2d5ad04b63af4233440c3f7c8587108223201102 (clean) (release)

now the weather pi and the pi2 are at
Jun 26 2015 13:37:00
Copyright (c) 2012 Broadcom
version ccd74887d783fb00f92c3126859ec69b8b2f21d5 (clean) (release)

Raspberry PI disk errors

this version on the pi2 seems to clean up on reboot. from pi2

[ 2.474555] mmcblk0: p1 p2
[ 2.499110] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[ 2.508125] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[ 3.213253] EXT4-fs (mmcblk0p2): recovery complete
[ 3.227194] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 15.604242] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 15.855481] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

root@raspberrypi2:~# uname -a
Linux raspberrypi2 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux

on the b+ pi the FAT partition often needs cleanup. Not on ups due to location of weather station.

[ 2.520520] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[ 2.529772] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[ 2.971006] EXT4-fs (mmcblk0p2): orphan cleanup on readonly fs
[ 3.030760] EXT4-fs (mmcblk0p2): 5 orphan inodes deleted
[ 3.038370] EXT4-fs (mmcblk0p2): recovery complete
[ 3.076741] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 8.902682] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 11.672354] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

root@weather:~# uname -a
Linux weather 3.18.3+ #739 PREEMPT Tue Jan 20 17:45:32 GMT 2015 armv6l GNU/Linux

Debian weewx install

Creating a test weewx instance on the Model B Raspberry Pi.


root@raspberry-pi:/sys/bus/i2c# apt-get install python-configobj python-cheetah python-imaging python-usb ftp tcpdump rsync vim python-dev python-pip zip

root@raspberry-pi:pip install pyephem

No password login


root@raspberry-pi:~# cat /etc/ssh/sshd_config | grep ^Password
PasswordAuthentication no

root@raspberry-pi:~# /etc/init.d/ssh restart
[ ok ] Restarting OpenBSD Secure Shell server: sshd.
root@raspberry-pi:~#

Raspberry Pi Firmware Update

Firmware:

 

root@raspberry-pi:~# uname -a
Linux raspberry-pi 3.12.25+ #700 PREEMPT Thu Jul 24 17:51:46 BST 2014 armv6l GNU/Linux

root@raspberry-pi:~# aptitude install git

sudo wget https://raw.github.com/Hexxeh/rpi-update/master/rpi-update -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update

root@raspberry-pi:~# rpi-update

root@raspberry-pi:~# reboot && exit

root@raspberry-pi:~# uname -a
Linux raspberry-pi 3.18.13+ #785 PREEMPT Mon May 18 17:39:07 BST 2015 armv6l GNU/Linux