Community
OpenEnergyMonitor

Community

New emonSD release: emonSD-30Oct18 (Raspbian Stretch Pi3B+ compatible) 🎉

emonsd
announcement
raspberrypi3
stretch
Tags: #<Tag:0x00007f1be5a3e9d8> #<Tag:0x00007f1be5a3e6b8> #<Tag:0x00007f1be5a3e3e8> #<Tag:0x00007f1be5a3e208>

(Glyn Hudson) #1

Finally, our new Raspberry Pi pre-built image (emonSD) based on Raspbien Stretch is ready for release :tada:

This image has been the accumulation of many months of preparation and testing. Thanks to everyone who helped contribute. The image has undergone extensive testing. Please report any issues.

emonPi / emonBase units shipped via the OpenEnergyMonitor store will be using the new image by the end of this week.

We would recommend users update to the new image by using the Emoncms backup module to migrate data. See backup and restore user guide.

Here are the release notes duplicated from the emonPi WIki Download Page.


emonSD-30Oct18

Download (1.2GB)

(.img) MD5: eb24460efcd8af7bc568415002581649
(.zip) MD5: 0c6cbfc59403ba536ad7c0120bb687e5
  • Based on Debian Raspbian Stretch minimal
  • Compatible with Raspberry Pi 3 & 3B+ (minor change required for Pi2*)
  • No longer use read-only root file system
  • Emoncms data is logged to low-write ext2 partition mounted in ~/data
  • Log partition /var/log mounted as tmpfs, non persistent between boots
  • SSH access disabled by default, long press emonPi LCD push button for 5s to enable. Or create file /boot/ssh in FAT partition.
  • OpenHAB & NodeRED removed, can easily be installed via apt-get

* To use this image on Pi2 remove the following lines from /boot/config.txt :

arm_freq=1200
arm_freq_min=600

Kernel

$ uname -a
Linux emonpi 4.14.71-v7+ #1145 SMP Fri Sep 21 15:38:35 BST 2018 armv7l GNU/Linux
$ sudo /opt/vc/bin/vcgencmd version
Sep 21 2018 15:44:25 
Copyright (c) 2012 Broadcom
version 07f57128b8491ffdefcdfd13f7b4961b3006d9a9 (clean) (release)

File System

Note: the emonSD pre-loaded SD cards shipped via the OpenEnergyMonitor store or pre-loaded in emonPi / emonBase will be expanded to fill the 16GB card. The default download image is 8GB, if using a larger SD card follow the instructions near the top of this page to expand the data partition

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       3.9G  1.6G  2.2G  42% /
devtmpfs        484M     0  484M   0% /dev
tmpfs           489M     0  489M   0% /dev/shm
tmpfs           489M   13M  476M   3% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           489M     0  489M   0% /sys/fs/cgroup
tmpfs           1.0M     0  1.0M   0% /var/tmp
tmpfs            50M 1004K   50M   2% /var/log
tmpfs            30M     0   30M   0% /tmp
/dev/mmcblk0p1   43M   22M   21M  52% /boot
/dev/mmcblk0p3  3.3G  113M  3.0G   4% /home/pi/data
tmpfs            98M     0   98M   0% /run/user/1000

Emoncms

Note: On first boot the image will update to the latest Emoncms version (stable branch). This first boot will take place in the factory for emonBase / emonPi units therefore the actual version users will experiance will be the latest stable release.

Server Information (click to expand)
Emoncms Version low-write 9.9.3
Modules Administration : App v1.2.0 : Backup v1.1.5 : EmonHub Config v1.0.0 : Dashboard v1.3.1 : Device v1.1.1 : EventProcesses : Feed : Graph v1.2.1 : Input : Postprocess v1.0.0 : CoreProcess : Schedule : Network Setup v1.0.0 : sync : Time : User : Visualisation : WiFi v1.3.0
Git URL https://github.com/emoncms/emoncms.git
Git Branch * stable
Buffer loading…
Writer Daemon is running with sleep 60s
Server OS Linux 4.14.71-v7+
Host emonpi emonpi (192.168.86.36)
Date 2018-10-30 01:34:56 UTC
Uptime 01:34:56 up 27 min, 1 user, load average: 1.75, 1.59, 1.34
HTTP Server Apache/2.4.25 (Raspbian) HTTP/1.1 CGI/1.1 80
MySQL Version 5.5.5-10.1.23-MariaDB-9+deb9u1
Host 127.0.0.1 (127.0.0.1)
Date 2018-10-30 01:34:56 (UTC 00:00‌)
Stats Uptime: 1667 Threads: 3 Questions: 68 Slow queries: 0 Opens: 23 Flush tables: 1 Open tables: 17 Queries per second avg: 0.040
Redis Version 3.2.6
Host localhost:6379 (127.0.0.1)
Size 44 keys (840.02K)
Uptime 0 days
MQTT Server Version Mosquitto 1.4.10
Host localhost:1883 (127.0.0.1)
Pi Model Raspberry Pi 3 Model B Rev 1.2 - 1 GB (Stadium)
SoC Broadcom BCM2835
Serial num. 68D8124E
Temperature CPU: 49.39°C - GPU: 49.4’C
Release emonSD-30Oct18
File-system Current: read-write - Set root file-system temporarily to read-write, (default read-only)
Memory RAM Used: 15.91% Total: 976.74 MB Used: 155.45 MB Free: 821.29 MB
Swap Used: 0.00% Total: 100 MB Used: 0 B Free: 100 MB
Disk Mount Stats
/ Used: 39.77% Total: 3.81 GB Used: 1.52 GB Free: 2.12 GB
/boot Used: 51.69% Total: 42.52 MB Used: 21.98 MB Free: 20.54 MB
/home/pi/data Used: 3.43% Total: 3.21 GB Used: 112.78 MB Free: 2.93 GB
PHP Version 7.0.30-0+deb9u1 (Zend Version 3.0.0)
Modules apache2handler : calendar v7.0.30-0+deb9u1 : Core v7.0.30-0+deb9u1 : ctype v7.0.30-0+deb9u1 : curl v7.0.30-0+deb9u1 : date v7.0.30-0+deb9u1 : dom v20031129 : exif v7.0.30-0+deb9u1 : fileinfo v1.0.5 : filter v7.0.30-0+deb9u1 : ftp v7.0.30-0+deb9u1 : gd v7.0.30-0+deb9u1 : gettext v7.0.30-0+deb9u1 : hash v1.0 : iconv v7.0.30-0+deb9u1 : igbinary v2.0.1 : json v1.4.0 : libxml v7.0.30-0+deb9u1 : mbstring v7.0.30-0+deb9u1 : mcrypt v7.0.30-0+deb9u1 : mosquitto v0.4.0 : mysqli v7.0.30-0+deb9u1 : mysqlnd vmysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $ : openssl v7.0.30-0+deb9u1 : pcre v7.0.30-0+deb9u1 : PDO v7.0.30-0+deb9u1 : pdo_mysql v7.0.30-0+deb9u1 : Phar v2.0.2 : posix v7.0.30-0+deb9u1 : readline v7.0.30-0+deb9u1 : redis v4.1.1 : Reflection v7.0.30-0+deb9u1 : session v7.0.30-0+deb9u1 : shmop v7.0.30-0+deb9u1 : SimpleXML v7.0.30-0+deb9u1 : sockets v7.0.30-0+deb9u1 : SPL v7.0.30-0+deb9u1 : standard v7.0.30-0+deb9u1 : sysvmsg v7.0.30-0+deb9u1 : sysvsem v7.0.30-0+deb9u1 : sysvshm v7.0.30-0+deb9u1 : tokenizer v7.0.30-0+deb9u1 : wddx v7.0.30-0+deb9u1 : xml v7.0.30-0+deb9u1 : xmlreader v7.0.30-0+deb9u1 : xmlwriter v7.0.30-0+deb9u1 : xsl v7.0.30-0+deb9u1 : Zend OPcache v7.0.30-0+deb9u1 : zlib v7.0.30-0+deb9u1

Known Issues

  • Current bug in rpi-gpio 0.6.4 causes LCD push button to stop working, solution is to continue using 0.6.3 pip install RPi.GPIO==0.6.3. Open issue.
  • Mosquitto 1.4.10 is included in this release, this is a downgrade from 1.4.14 included in the previous image (emonSD-26Oct17). This is because 1.4.10 is the current stable Stretch apt release. Newer version can be manually installed if required https://mosquitto.org/download/

Beta Test emonSD-13Jun18 Stretch Image on Raspberry Pi 2B
OpenEnergyMonitor Development Plan Outline
[solved] No Inputs in input list
2018 Development Progress Update
(Glyn Hudson) #2

(Paul) #3

@glyn.hudson the server info “copy to clipboard” data is ready to paste, you do not need to use code fencing.

<details><summary>Server Information</summary><pre>

| | | |
| --- | --- | --- |
|Emoncms|Version|low-write 9.9.3
||Modules|Administration : App v1.2.0 : Backup v1.1.5 : EmonHub Config v1.0.0 : Dashboard v1.3.1 : Device v1.1.1 : EventProcesses : Feed : Graph v1.2.1 : Input : Postprocess v1.0.0 : CoreProcess : Schedule : Network Setup v1.0.0 : sync : Time : User : Visualisation : WiFi v1.3.0
||Git URL|https://github.com/emoncms/emoncms.git
||Git Branch|* stable
||Buffer|<span id="bufferused">loading...</span>
||Writer|Daemon is running with sleep 60s
|Server|OS|Linux 4.14.71-v7+
||Host|emonpi emonpi (192.168.86.36)
||Date|2018-10-30 01:34:56 UTC
||Uptime| 01:34:56 up 27 min,  1 user,  load average: 1.75, 1.59, 1.34
|HTTP|Server|Apache/2.4.25 (Raspbian) HTTP/1.1 CGI/1.1 80
|MySQL|Version|5.5.5-10.1.23-MariaDB-9+deb9u1
||Host|127.0.0.1 (127.0.0.1)
||Date|2018-10-30 01:34:56 (UTC 00:00‌)
||Stats|Uptime: 1667  Threads: 3  Questions: 68  Slow queries: 0  Opens: 23  Flush tables: 1  Open tables: 17  Queries per second avg: 0.040
|Redis|Version|3.2.6
||Host|localhost:6379 (127.0.0.1)
||Size|<span id="redisused">44 keys  (840.02K)</span>
||Uptime|0 days
|MQTT Server|Version|Mosquitto 1.4.10
||Host|localhost:1883 (127.0.0.1)
|Pi|Model|Raspberry Pi 3 Model B Rev 1.2 - 1 GB (Stadium)
||SoC|Broadcom BCM2835
||Serial num.|68D8124E
||Temperature|CPU: 49.39°C - GPU: 49.4'C
||Release|emonSD-30Oct18
||File-system|Current: read-write - Set root file-system temporarily to read-write, (default read-only) 
|Memory|RAM|Used: 15.91% Total: 976.74 MB Used: 155.45 MB Free: 821.29 MB
||Swap|Used: 0.00% Total: 100 MB Used: 0 B Free: 100 MB
|Disk|Mount|Stats
||/|Used: 39.77% Total: 3.81 GB Used: 1.52 GB Free: 2.12 GB
||/boot|Used: 51.69% Total: 42.52 MB Used: 21.98 MB Free: 20.54 MB
||/home/pi/data|Used: 3.43% Total: 3.21 GB Used: 112.78 MB Free: 2.93 GB
|PHP|Version|7.0.30-0+deb9u1 (Zend Version 3.0.0)
||Modules|apache2handler : calendar v7.0.30-0+deb9u1 : Core v7.0.30-0+deb9u1 : ctype v7.0.30-0+deb9u1 : curl v7.0.30-0+deb9u1 : date v7.0.30-0+deb9u1 : dom v20031129 : exif v7.0.30-0+deb9u1 : fileinfo v1.0.5 : filter v7.0.30-0+deb9u1 : ftp v7.0.30-0+deb9u1 : gd v7.0.30-0+deb9u1 : gettext v7.0.30-0+deb9u1 : hash v1.0 : iconv v7.0.30-0+deb9u1 : igbinary v2.0.1 : json v1.4.0 : libxml v7.0.30-0+deb9u1 : mbstring v7.0.30-0+deb9u1 : mcrypt v7.0.30-0+deb9u1 : mosquitto v0.4.0 : mysqli v7.0.30-0+deb9u1 : mysqlnd vmysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $ : openssl v7.0.30-0+deb9u1 : pcre v7.0.30-0+deb9u1 : PDO v7.0.30-0+deb9u1 : pdo_mysql v7.0.30-0+deb9u1 : Phar v2.0.2 : posix v7.0.30-0+deb9u1 : readline v7.0.30-0+deb9u1 : redis v4.1.1 : Reflection v7.0.30-0+deb9u1 : session v7.0.30-0+deb9u1 : shmop v7.0.30-0+deb9u1 : SimpleXML v7.0.30-0+deb9u1 : sockets v7.0.30-0+deb9u1 : SPL v7.0.30-0+deb9u1 : standard v7.0.30-0+deb9u1 : sysvmsg v7.0.30-0+deb9u1 : sysvsem v7.0.30-0+deb9u1 : sysvshm v7.0.30-0+deb9u1 : tokenizer v7.0.30-0+deb9u1 : wddx v7.0.30-0+deb9u1 : xml v7.0.30-0+deb9u1 : xmlreader v7.0.30-0+deb9u1 : xmlwriter v7.0.30-0+deb9u1 : xsl v7.0.30-0+deb9u1 : Zend OPcache v7.0.30-0+deb9u1 : zlib v7.0.30-0+deb9u1
</pre></details>

should appear as just

Server Information
Emoncms Version low-write 9.9.3
Modules Administration : App v1.2.0 : Backup v1.1.5 : EmonHub Config v1.0.0 : Dashboard v1.3.1 : Device v1.1.1 : EventProcesses : Feed : Graph v1.2.1 : Input : Postprocess v1.0.0 : CoreProcess : Schedule : Network Setup v1.0.0 : sync : Time : User : Visualisation : WiFi v1.3.0
Git URL https://github.com/emoncms/emoncms.git
Git Branch * stable
Buffer loading…
Writer Daemon is running with sleep 60s
Server OS Linux 4.14.71-v7+
Host emonpi emonpi (192.168.86.36)
Date 2018-10-30 01:34:56 UTC
Uptime 01:34:56 up 27 min, 1 user, load average: 1.75, 1.59, 1.34
HTTP Server Apache/2.4.25 (Raspbian) HTTP/1.1 CGI/1.1 80
MySQL Version 5.5.5-10.1.23-MariaDB-9+deb9u1
Host 127.0.0.1 (127.0.0.1)
Date 2018-10-30 01:34:56 (UTC 00:00‌)
Stats Uptime: 1667 Threads: 3 Questions: 68 Slow queries: 0 Opens: 23 Flush tables: 1 Open tables: 17 Queries per second avg: 0.040
Redis Version 3.2.6
Host localhost:6379 (127.0.0.1)
Size 44 keys (840.02K)
Uptime 0 days
MQTT Server Version Mosquitto 1.4.10
Host localhost:1883 (127.0.0.1)
Pi Model Raspberry Pi 3 Model B Rev 1.2 - 1 GB (Stadium)
SoC Broadcom BCM2835
Serial num. 68D8124E
Temperature CPU: 49.39°C - GPU: 49.4’C
Release emonSD-30Oct18
File-system Current: read-write - Set root file-system temporarily to read-write, (default read-only)
Memory RAM Used: 15.91% Total: 976.74 MB Used: 155.45 MB Free: 821.29 MB
Swap Used: 0.00% Total: 100 MB Used: 0 B Free: 100 MB
Disk Mount Stats
/ Used: 39.77% Total: 3.81 GB Used: 1.52 GB Free: 2.12 GB
/boot Used: 51.69% Total: 42.52 MB Used: 21.98 MB Free: 20.54 MB
/home/pi/data Used: 3.43% Total: 3.21 GB Used: 112.78 MB Free: 2.93 GB
PHP Version 7.0.30-0+deb9u1 (Zend Version 3.0.0)
Modules apache2handler : calendar v7.0.30-0+deb9u1 : Core v7.0.30-0+deb9u1 : ctype v7.0.30-0+deb9u1 : curl v7.0.30-0+deb9u1 : date v7.0.30-0+deb9u1 : dom v20031129 : exif v7.0.30-0+deb9u1 : fileinfo v1.0.5 : filter v7.0.30-0+deb9u1 : ftp v7.0.30-0+deb9u1 : gd v7.0.30-0+deb9u1 : gettext v7.0.30-0+deb9u1 : hash v1.0 : iconv v7.0.30-0+deb9u1 : igbinary v2.0.1 : json v1.4.0 : libxml v7.0.30-0+deb9u1 : mbstring v7.0.30-0+deb9u1 : mcrypt v7.0.30-0+deb9u1 : mosquitto v0.4.0 : mysqli v7.0.30-0+deb9u1 : mysqlnd vmysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $ : openssl v7.0.30-0+deb9u1 : pcre v7.0.30-0+deb9u1 : PDO v7.0.30-0+deb9u1 : pdo_mysql v7.0.30-0+deb9u1 : Phar v2.0.2 : posix v7.0.30-0+deb9u1 : readline v7.0.30-0+deb9u1 : redis v4.1.1 : Reflection v7.0.30-0+deb9u1 : session v7.0.30-0+deb9u1 : shmop v7.0.30-0+deb9u1 : SimpleXML v7.0.30-0+deb9u1 : sockets v7.0.30-0+deb9u1 : SPL v7.0.30-0+deb9u1 : standard v7.0.30-0+deb9u1 : sysvmsg v7.0.30-0+deb9u1 : sysvsem v7.0.30-0+deb9u1 : sysvshm v7.0.30-0+deb9u1 : tokenizer v7.0.30-0+deb9u1 : wddx v7.0.30-0+deb9u1 : xml v7.0.30-0+deb9u1 : xmlreader v7.0.30-0+deb9u1 : xmlwriter v7.0.30-0+deb9u1 : xsl v7.0.30-0+deb9u1 : Zend OPcache v7.0.30-0+deb9u1 : zlib v7.0.30-0+deb9u1

Until clicked to show or if you prefer to show the summary “open” (and click to close) instead, just add the word open to the <details open> html tag eg

Server Information
Emoncms Version low-write 9.9.3
Modules Administration : App v1.2.0 : Backup v1.1.5 : EmonHub Config v1.0.0 : Dashboard v1.3.1 : Device v1.1.1 : EventProcesses : Feed : Graph v1.2.1 : Input : Postprocess v1.0.0 : CoreProcess : Schedule : Network Setup v1.0.0 : sync : Time : User : Visualisation : WiFi v1.3.0
Git URL https://github.com/emoncms/emoncms.git
Git Branch * stable
Buffer loading…
Writer Daemon is running with sleep 60s
Server OS Linux 4.14.71-v7+
Host emonpi emonpi (192.168.86.36)
Date 2018-10-30 01:34:56 UTC
Uptime 01:34:56 up 27 min, 1 user, load average: 1.75, 1.59, 1.34
HTTP Server Apache/2.4.25 (Raspbian) HTTP/1.1 CGI/1.1 80
MySQL Version 5.5.5-10.1.23-MariaDB-9+deb9u1
Host 127.0.0.1 (127.0.0.1)
Date 2018-10-30 01:34:56 (UTC 00:00‌)
Stats Uptime: 1667 Threads: 3 Questions: 68 Slow queries: 0 Opens: 23 Flush tables: 1 Open tables: 17 Queries per second avg: 0.040
Redis Version 3.2.6
Host localhost:6379 (127.0.0.1)
Size 44 keys (840.02K)
Uptime 0 days
MQTT Server Version Mosquitto 1.4.10
Host localhost:1883 (127.0.0.1)
Pi Model Raspberry Pi 3 Model B Rev 1.2 - 1 GB (Stadium)
SoC Broadcom BCM2835
Serial num. 68D8124E
Temperature CPU: 49.39°C - GPU: 49.4’C
Release emonSD-30Oct18
File-system Current: read-write - Set root file-system temporarily to read-write, (default read-only)
Memory RAM Used: 15.91% Total: 976.74 MB Used: 155.45 MB Free: 821.29 MB
Swap Used: 0.00% Total: 100 MB Used: 0 B Free: 100 MB
Disk Mount Stats
/ Used: 39.77% Total: 3.81 GB Used: 1.52 GB Free: 2.12 GB
/boot Used: 51.69% Total: 42.52 MB Used: 21.98 MB Free: 20.54 MB
/home/pi/data Used: 3.43% Total: 3.21 GB Used: 112.78 MB Free: 2.93 GB
PHP Version 7.0.30-0+deb9u1 (Zend Version 3.0.0)
Modules apache2handler : calendar v7.0.30-0+deb9u1 : Core v7.0.30-0+deb9u1 : ctype v7.0.30-0+deb9u1 : curl v7.0.30-0+deb9u1 : date v7.0.30-0+deb9u1 : dom v20031129 : exif v7.0.30-0+deb9u1 : fileinfo v1.0.5 : filter v7.0.30-0+deb9u1 : ftp v7.0.30-0+deb9u1 : gd v7.0.30-0+deb9u1 : gettext v7.0.30-0+deb9u1 : hash v1.0 : iconv v7.0.30-0+deb9u1 : igbinary v2.0.1 : json v1.4.0 : libxml v7.0.30-0+deb9u1 : mbstring v7.0.30-0+deb9u1 : mcrypt v7.0.30-0+deb9u1 : mosquitto v0.4.0 : mysqli v7.0.30-0+deb9u1 : mysqlnd vmysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $ : openssl v7.0.30-0+deb9u1 : pcre v7.0.30-0+deb9u1 : PDO v7.0.30-0+deb9u1 : pdo_mysql v7.0.30-0+deb9u1 : Phar v2.0.2 : posix v7.0.30-0+deb9u1 : readline v7.0.30-0+deb9u1 : redis v4.1.1 : Reflection v7.0.30-0+deb9u1 : session v7.0.30-0+deb9u1 : shmop v7.0.30-0+deb9u1 : SimpleXML v7.0.30-0+deb9u1 : sockets v7.0.30-0+deb9u1 : SPL v7.0.30-0+deb9u1 : standard v7.0.30-0+deb9u1 : sysvmsg v7.0.30-0+deb9u1 : sysvsem v7.0.30-0+deb9u1 : sysvshm v7.0.30-0+deb9u1 : tokenizer v7.0.30-0+deb9u1 : wddx v7.0.30-0+deb9u1 : xml v7.0.30-0+deb9u1 : xmlreader v7.0.30-0+deb9u1 : xmlwriter v7.0.30-0+deb9u1 : xsl v7.0.30-0+deb9u1 : Zend OPcache v7.0.30-0+deb9u1 : zlib v7.0.30-0+deb9u1

(Glyn Hudson) #4

Awesome, I remember now. I’ll edit my post above :+1:


(Jon Senior) #5

Hi there. I’m trying to rebuild my somewhat defunct OEM system built around a RPi Model B (Part of the original pre-order batch). The old SD card died (despite have the system running on a USB flash drive) but my attempts to burn a new SD card have not met with success. It would appear that the new image is 8GB so no chance of squeezing it onto the 4GB cards that I had lying about waiting to be pressed into service, and I get the impression from the release notes that this release will not work on a Model B. Is this me mis-reading the above release or have the 1st gen Pis now been dropped?

Thanks


(Glyn Hudson) #6

3 posts were split to a new topic: Emoncms DietPi


(Glyn Hudson) #9

Are you referring to a Model B Pi V1 i.e pre Model 2?

I’ve not tested on a gen 1 Pi, but I see no reason why it should not work. You just need to remove the following lines from /boot/config.txt :

arm_freq=1200
arm_freq_min=600

You may also need to remove the line

dtoverlay=pi3-miniuart-bt

If possible I would recomend using at least a Pi2. There should be 2nd hand Pi2/3’s available at low cost online e.g ebay.


(Glyn Hudson) #10

Please let us know how you get on running it on a Pi Model B gen 1. I don’t have access to one to test. We have standardized on Pi3 since the on-board wifi is a very useful addition.


(Jon Senior) #11

I’m currently moving towards a test of the DietPi solution because it allows me to work with the hardware I have at hand. Getting a new Pi is not so much an issue of cost as one of need and a commitment to not throwing away something simply because it’s a little old. The original Pi 1 Model B has more than enough processing power to manage a house (if we could put a man on the moon with less processing power than a modern phone, I feel I ought to be able to turn on and off a few switches and track the power consumption with an SBC running at 700MHz.

Since power consumption tracking is a relatively small part of my usage, I’m probably now going to drop a local EmonCMS installation in favour of storing the data in some other system using MQTT. Prior to the crash which took out my old SD card about 1 year ago, my original installation of EmonCMS based on a vanilla install of the EmonSD, had run for about 12 months with no unplanned downtime. Sadly for most of that time it had just been logging temperature data and not electricity so it was somewhat pointless! :slight_smile:

Edit to add: Having pulled the Flash drive that was running the OS I can confirm that it was the May16 release of EmonSD and that it worked flawlessly on the Pi1.


(Glyn Hudson) #12

That’s good to hear. If you just want to run emonHub and not a local version of Emoncms then maybe DietPi could be a good solution. I’ve split out the DietPi discussion to a new topic.


(Glyn Hudson) #13

21 posts were split to a new topic: emonSDexpand on 30Oct18 Raspbian Stretch Image


emonSDexpand on 30Oct18 Raspbian Stretch Image
(Sean) #14

I just installed this image to work with my own custom version of the emonBase (some pins swapped, some features added/removed). Nice work!

One thing I noticed though is that there is an automatic firmware flasher. I don’t want my firmware flashed because emonPi’s firmware is not compatible with my custom board. Is there a way to stop the automatic updates from happening in the future?


(James Drummond) #15

Hi:
I would like to update the new software for 30Oct18. My version was an emonpi with emonSD-26Oct17.

Can I rebuild the SD card of the 30Oct18, start the system, and then do a emoncms-upload to get my data/dashboard, etc?

Thanks for any help…


emonSDexpand on 30Oct18 Raspbian Stretch Image
(Gerard MARTIN) #16

Hi,

I upgraded my emoncms to version 9.9.4 successfully with emonSD-26Oct17 image on my emonPi. I’m now wondering if it is possible to migrate to the emonSD-30Oct18 image directly from my computer through my wifi network, or if it is necessary to open the case of my emonPi to flash the SDcard with Etcher.

Regards

Gerard


emonSDexpand on 30Oct18 Raspbian Stretch Image
(Brian Orpin) #17

The key difference is that the new image’s base OS is a ‘Stretch’ image (old one was ‘Jessie’ i.e. different versions of Raspbian/Debian).

To make the upgrade, you do need to reflash the SD Card - personally, I’d buy a new card so you have a path back if it is not successful.

You will need to backup the data and the import it. As you have upgraded to 9.9.4 that should be less of a hassle.


(Brian Orpin) #18

I would suggest you

  • First update the existing setup to 9.9.4.
  • Backup / export data
  • Flash new image to (new) SD Card
  • Install card, get system up and running (wifi etc).
  • Update EmonCMS system (image is not on latest).
  • Restore data (which will include dashboards etc (hopefully…)

By using a new card, you have a route back to where you were if something goes wrong.


(James Drummond) #19

Thank you for the is list - I need to run through this list…

“First update the existing setup to 9.9.4.” - I have Version low-write 9.8.31 | 2018.06.21 - so I need to update. Should I use “emonpi Update” or “emonBase Update” button? I’m not clear what each does this instance. Alternative I could ssh and then a “.sh”?

Similarly the line “Update EmonCMS system (image is not on latest).” - does that also use “emonpi Update” or “emonBase Update” button? etc…


(Brian Orpin) #20

Yes ‘emonpi update’ is the best method in both instances. The emonbase update updates the firmware on the rflink (I think - not an emonpi user).

Take a backup first :smile: - there are a number of threads on baking up / exporting data.


(Robert Wall) #21

My crib notes say:

Update EmonPi Button or Update EmonBase Button?

And in rather more detail (all courtesy of @pb66)

Updating emonPi sketch:
If you do want to change the firmware, it’s best to compile the Arduino sketch on your PC then transfer the .hex to the emonPi and upload directly from the RaspberryPi using avrdude. Emonhub will need to be stopped to free up the serial port. See example script to upload .hex https://github.com/openenergymonitor/emonpi/blob/master/firmware/compiled/update

#!/bin/bash
sudo service emonhub stop
avrdude -v -c arduino -p ATMEGA328P -P /dev/ttyAMA0 -b 115200 -U flash:w:/home/pi/emonpi/firmware/compiled/latest.hex
sudo service emonhub start

Not updating the emonPi sketch:
EmonPi AC-AC input
“If you use the “update RFM69Pi” button rather than the “update emonPi” button it will update in exactly the same way but when it tries to upload the firmware at the wrong upload baud it will fail and the existing firmware will remain intact. This works as the 16MHz emonPi has a different bootloader to all the 8MHz RFM2Pi type devices.”

If you have an emonPi with a totally stock sketch you are best using “update emonpi” to keep up to date.
If you have an emonPi with a modified sketch you are best using “update emonbase” to avoid overwriting.
If you have an emonBase and you know your RFM2Pi or RFM69Pi is rfm69 based and has a totally stock sketch you are best using “update emonBase” to keep it updated
If you have an emonBase with a rfm69 based RFM2Pi or RFM69Pi running a modified sketch OR if you have a rfm12 based RFM2Pi OR you are unsure what RFM2Pi you have you should use “update emonpi” to avoid over-writing the firmware.
Aside from the firmware differences, there is no difference, both buttons fully update the emonSD used in both the emonPi and emonBases. There is no emonHub update button, emonhub is updated along with emoncms and other softwares in that same emonSD update.


(Gerard MARTIN) #22

Thanks for your advices. Buying a new card is probably a safer solution.