Mm it sounds like emonHub cannot communite with your RFM12B. Was the your RFM12B connected?
Could you try and see if you can view serial data directly from the modue using minicom:
sudo service emonhub stop
minicom -D /dev/ttyAMA0 -b9600
To exit minicom use [CTRL + A] then [X] then select yes
Glyn
I can confirm I have emonSD-30Oct18 running well with old hardware:
emonBase
RFM12Pi v2.6 with RFM12B
Raspberry Pi 1 model B
emonTX v3.2 (RFM12B)
It took me some time to figure out the radio connection. Minicom used as advised would return garbarge. I thought I had a hardware problem, but the Green light on the RFM12B was flashing regularly suggesting it was working. I played around and changed the baud rate on minicom to 38400 and it worked. I went back to my emonhub.conf, and changed the baud from 9600 (where its been for 4yrs!) to 38400, and it came back to life.
I canāt really explain. In my messing around, I did reflash the firmware on the RFM12B:
sudo avrdude -v -p atmega328p -c arduino -P /dev/ttyAMA0 -b 38400 -U flash:w:/home/pi/RFM2Pi/firmware/RFM69CW_RF_Demo_ATmega328/RFM12_Demo_ATmega328.cpp.hex:i
anyway, all working
2018-12-09T00:00:00Z
2 Likes
I noticed no US based download repo. I might be able to host for you if interested.
That would be great, thanks. Please post a link to your mirror and I will add it to the download page.
Ian999
(Ian Rogers)
16 January 2019 19:48
59
I have just installed this version on a new SD Card, expanded the card to the full 16Gb and then restored my backup from the old card.
When I click emonpi update, the EmonCMS > Writer status then changes to: Daemon is not running, start it at ~/scripts/feedwriter.
Update log attached.
Thanks
Ian
emonpiupdate.txt (7.8 KB)
borpin
(Brian Orpin)
16 January 2019 20:15
60
Did you enable SSH? If so try
sudo systemctl status feedwriter.service
(and please post output) then
sudo systemctl start feedwriter.service
followed by the status.
I wonder if the backup is taking a setting, the update changes it, but the restore overwrites it. @glyn.hudson @TrystanLea
I note this line in the log
restarting service-runner
service-runner: no process found
use the commands above on service-runner
to check itās status.
On the admin page next to the Server Information there is a copy to clipboard button. Please press that then paste the result into a message - no other formatting required.
Ian999
(Ian Rogers)
16 January 2019 20:22
61
After Clicking Update:
ā feedwriter.service - LSB: feedwriter script daemon
Loaded: loaded (/etc/init.d/feedwriter; generated; vendor preset: enabled)
Active: active (exited) since Wed 2019-01-16 20:01:21 UTC; 18min ago
Docs: man:systemd-sysv-generator(8)
CGroup: /system.slice/feedwriter.service
Jan 16 20:01:14 emonpi systemd[1]: Starting LSB: feedwriter script daemonā¦
Jan 16 20:01:14 emonpi feedwriter[1200]: Log is turned off
Jan 16 20:01:14 emonpi feedwriter[1200]: Starting RPI
Jan 16 20:01:21 emonpi systemd[1]: Started LSB: feedwriter script daemon.
ā service-runner.service - Emoncms service-runner Input Script
Loaded: loaded (/var/www/emoncms/scripts/services/service-runner/service-runner.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-01-16 20:19:35 UTC; 1min 54s ago
Main PID: 2828 (python)
CGroup: /system.slice/service-runner.service
āā2828 /usr/bin/python /var/www/emoncms/scripts/services/service-runner/service-runner.py
Jan 16 20:19:35 emonpi systemd[1]: Started Emoncms service-runner Input Script.
Jan 16 20:19:35 emonpi service-runner[2828]: Starting service-runner
Jan 16 20:19:35 emonpi service-runner[2828]: Connected to redis-server
then After sudo systemctl restart feedwriter.service:
ā service-runner.service - Emoncms service-runner Input Script
Loaded: loaded (/var/www/emoncms/scripts/services/service-runner/service-runner.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-01-16 20:19:35 UTC; 4min 36s ago
Main PID: 2828 (python)
CGroup: /system.slice/service-runner.service
āā2828 /usr/bin/python /var/www/emoncms/scripts/services/service-runner/service-runner.py
Jan 16 20:19:35 emonpi systemd[1]: Started Emoncms service-runner Input Script.
Jan 16 20:19:35 emonpi service-runner[2828]: Starting service-runner
Jan 16 20:19:35 emonpi service-runner[2828]: Connected to redis-server
Server Information
Emoncms
Version
low-write 9.9.5
Modules
Administration : App v1.2.0 : Backup v1.1.6 : EmonHub Config v1.0.0 : Dashboard v1.3.1 : Device v1.2.0 : 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
GitHub - emoncms/emoncms: Web-app for processing, logging and visualising energy, temperature and other environmental data
Git Branch
* stable
Buffer
loadingā¦
Writer
Daemon is not running, start it at ~/scripts/feedwriter
Server
OS
Linux 4.14.79-v7+
Host
emonpi emonpi (10.101.0.254)
Date
2019-01-16 20:20:17 UTC
Uptime
20:20:17 up 19 min, 1 user, load average: 0.16, 0.15, 0.15
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
2019-01-16 20:20:17 (UTC 00:00āā)
Stats
Uptime: 1149 Threads: 3 Questions: 1110 Slow queries: 0 Opens: 30 Flush tables: 1 Open tables: 24 Queries per second avg: 0.966
Redis
Version
3.2.6
Host
localhost:6379 (127.0.0.1)
Size
143 keys (762.49K)
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.
DA17602B
Temperature
CPU: 49.93Ā°C - GPU: 49.9āC
Release
emonSD-30Oct18
File-system
Current: read-write - Set root file-system temporarily to read-write, (default read-only)
Memory
RAM
Used: 20.78% Total: 976.74 MB Used: 202.92 MB Free: 773.82 MB
Swap
Used: 0.00% Total: 100 MB Used: 0 B Free: 100 MB
Disk
Mount
Stats
/
Used: 47.16% Total: 3.81 GB Used: 1.8 GB Free: 1.84 GB
/boot
Used: 51.78% Total: 42.52 MB Used: 22.02 MB Free: 20.5 MB
/home/pi/data
Used: 1.19% Total: 10.66 GB Used: 129.98 MB Free: 9.99 GB
PHP
Version
7.0.33-0+deb9u1 (Zend Version 3.0.0)
Modules
apache2handler : calendar v7.0.33-0+deb9u1 : Core v7.0.33-0+deb9u1 : ctype v7.0.33-0+deb9u1 : curl v7.0.33-0+deb9u1 : date v7.0.33-0+deb9u1 : dom v20031129 : exif v7.0.33-0+deb9u1 : fileinfo v1.0.5 : filter v7.0.33-0+deb9u1 : ftp v7.0.33-0+deb9u1 : gd v7.0.33-0+deb9u1 : gettext v7.0.33-0+deb9u1 : hash v1.0 : iconv v7.0.33-0+deb9u1 : igbinary v2.0.1 : json v1.4.0 : libxml v7.0.33-0+deb9u1 : mbstring v7.0.33-0+deb9u1 : mcrypt v7.0.33-0+deb9u1 : mosquitto v0.4.0 : mysqli v7.0.33-0+deb9u1 : mysqlnd vmysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $ : openssl v7.0.33-0+deb9u1 : pcre v7.0.33-0+deb9u1 : PDO v7.0.33-0+deb9u1 : pdo_mysql v7.0.33-0+deb9u1 : Phar v2.0.2 : posix v7.0.33-0+deb9u1 : readline v7.0.33-0+deb9u1 : redis v4.1.1 : Reflection v7.0.33-0+deb9u1 : session v7.0.33-0+deb9u1 : shmop v7.0.33-0+deb9u1 : SimpleXML v7.0.33-0+deb9u1 : sockets v7.0.33-0+deb9u1 : SPL v7.0.33-0+deb9u1 : standard v7.0.33-0+deb9u1 : sysvmsg v7.0.33-0+deb9u1 : sysvsem v7.0.33-0+deb9u1 : sysvshm v7.0.33-0+deb9u1 : tokenizer v7.0.33-0+deb9u1 : wddx v7.0.33-0+deb9u1 : xml v7.0.33-0+deb9u1 : xmlreader v7.0.33-0+deb9u1 : xmlwriter v7.0.33-0+deb9u1 : xsl v7.0.33-0+deb9u1 : Zend OPcache v7.0.33-0+deb9u1 : zlib v7.0.33-0+deb9u1
Client Information
HTTP
Browser
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.2 Safari/605.1.15
Screen
Resolution
1440 x 900
Window
Size
1440 x 730
borpin
(Brian Orpin)
16 January 2019 20:34
62
Ah Ok that branch is on the older feedwriter cron job (strangely came across this this week).
I think first check the cron job
crontab -l
Ian999
(Ian Rogers)
16 January 2019 20:42
63
Seems like crontab is default
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
borpin
(Brian Orpin)
16 January 2019 20:49
64
One last try then Iām out of ideas (not familiar with the older feedwriter service)ā¦
The command in the script to restart it is
sudo /etc/init.d/feedwriter restart
Ian999
(Ian Rogers)
16 January 2019 20:53
65
That works, but reboot of the feedwriter.service worked too!
sudo /etc/init.d/feedwriter restart
Log is turned off
Restarting feedwriter (feedwriter.php was not running...)
Still doesnāt explain/help as to why the feed writer is not restarted after emonpi update button is pressed.
1 Like
borpin
(Brian Orpin)
16 January 2019 20:57
66
Iāve raised it as an Issue.
opened 08:57PM - 16 Jan 19 UTC
closed 09:16PM - 29 Jan 20 UTC
Discussion https://community.openenergymonitor.org/t/new-emonsd-release-emonsd-3ā¦ 0oct18-raspbian-stretch-pi3b-compatible/9005/59 refers.
pb66
(Paul)
16 January 2019 21:05
68
But also note what the actual emoncms buffer status is, it changes on the live server info, but the copy and paste version always says āloadingā¦ā so itās effectively meaningless.
opened 09:55AM - 18 Aug 18 UTC
closed 02:33PM - 11 Jul 19 UTC
bug
See https://community.openenergymonitor.org/t/rpi-3b-getting-hot-redis-high-cpu-ā¦ usage/8263?u=pb66
Whilst the admin page says "0 feed points pending write" in the Emoncms/buffer section
![image](https://user-images.githubusercontent.com/5606042/44298091-c6fc7380-a2d4-11e8-94da-62cba641341b.png)
the information copied by the "copy to clipboard" button reports "loading"
![image](https://user-images.githubusercontent.com/5606042/44298114-16db3a80-a2d5-11e8-988a-da248f0a289e.png)
I suspect one or the other is telling porkies
Ian999
(Ian Rogers)
16 January 2019 21:11
69
When the line below is showing, the buffer will continue increasing with a number of points to write.
Daemon is not running, start it at ~/scripts/feedwriter
1 Like
borpin
(Brian Orpin)
16 January 2019 22:43
70
Yes but I do not think that is fixable because of the way the Ajax call works. Just one to be lived with I suspect unless you could make a special call to the function and append the data at the end of the text buffer.
pb66
(Paul)
16 January 2019 23:01
71
I wasnāt aware of that.
No one has commented on the issue I raised.
If it canāt be reported (copied) accurately, it shouldnāt included. So the best fix would be to remove it I guess, even if only temporarily. Simples!
Greebo
(Greebo)
16 January 2019 23:04
72
I donāt think feedwriter was ever cron basedā¦ it changed from SystemV Init based startup to systemd based startupā¦ Youāre thinking of service-runner (which was initially cron and changed to systemd)
1 Like
borpin
(Brian Orpin)
16 January 2019 23:09
73
Not as simple as that I suspect. The output HTML is copied by using a class ID
within that copied area is the ajax call to update the number in the buffer
I suspect removing this section when copied might be well nigh impossible (but Iām no expert).
Ah yes - getting myself confused.
Bill.Thomson
(Bill Thomson)
Split this topic
22 January 2019 15:27
74
2 posts were split to a new topic: MQTT not working after restore