This is the topic where i will put bugs and other problems i find while testing the Rpi 4 on my emonpi.
I already installed the rpi4 in my emonpi and everything went good. Just the faceplate does not fit by a few milimeters but the design is almost the same.
The other thing is emonpi lcd always show “raspberry pi booting”, the light stays on and the admin page says: Emonpilcd - activating: auto-restart.
The command systemctl status emonPiLCD.service guives the output:
At the this day, everything is working well but right after i opened the inputs page, i noticed the “power 2” input having a value of 812 and then changed to 0 after a second. I don’t have any CT connected to it, so, it could be a symptom of something. Need to check that.
The Rpi 4 info and shutdown/restart buttons are still missing. No temperatures showing too.
@glyn.hudson, i am wondering abou the power consumption of the new rpi. Does it need to change the adapter? From what i’ve read, the rpi 4 can use the old AC adapter but we can’t connect almost anything to it because it gives only 2.5A if i remember correctly.
The new AC adapter for Rpi4 gives 3.0A and is USBC.
Firstly, the connector style won’t matter as the emonpi add-on board supplies the Pi via the gpio, the power supply to the emonpi unit will remain a mini usb regardless of whether you use a Pi4 (USB-C) or any other Pi (micro USB).
The OEM supplied PSU’s are actually only 2A, this has come up many times in discussion, but the shop still uses the 2.0A PSU because of the interchangeable USB power leads, the emonPi being Mini USB and the emonBases being micro USB (and now the possibility of a Pi4 emonBase using a USB-C).
However, the spec for a 2.5A or 3.0A PSU (depending on Pi model) assumes that up to 1.2A could be drawn via the 4x USB sockets and that a display, mouse and keyboard may well be attached, plus other stuff potentially. The actual “Typical bare-board active current consumption” of a Pi 4 is only 600mA (ref Raspberry Pi Documentation)
So whilst it might be desirable to have more headroom, especially during start up, unless the emonpi add-on board and any attached sensors draw more than 1400mA you should be ok. It’s only with displays and spinning HDD’s etc that you are more likely to struggle.
you can test for under-voltage with this command
vcgencmd get_throttled
it should return
throttled=0x0
if all is well, if it returns anything else you can decode it with this info
The same.
// If installed on Emonpi, allow admin menu tools
$allow_emonpi_admin = true;
I am not sure since i installed emoncms using the script and on the top of desktop installation. But the path to the file (removing the sdcard and searching for it in my pc) is /rootfs/var/www/emoncms
Sorry for my late reply! I have been away from my project due to work.
Well, i can confirm it is working. I even buy another lcd and connected to rpi4 and is working fine. For the button (rpi4 not inside the emonpi case), i used a capacitive button as i can glue it to a plastic door or anything else that has a limit 5mm thick. No need to touch on the button and it works fine.
One issue i find is, in the admin page, it doesn’t show shutdown / reboot comands and no rpi4 hardware and temperature.
It heats up a little but nothing that makes me worried.
I am waiting for hdd/ssd boot but is taking too long to get support for it.
I am now looking for a 10" lcd to present my node-red dashboard with all the sensors, meteo, and energy/water/gas consumption.
Well, i did update it and still the same. I used the script to install emoncms on the top of Raspbian OS.
Starting update via service-runner-update.sh (v3.0) >
- emonSD version: emonSD-02Oct19
emonSD base image check passed...continue update
git pull /opt/openenergymonitor/EmonScripts
master
* stable
No ramo stable
Your branch is up to date with 'origin/stable'.
não há nada para submeter, árvore de trabalho limpa
Already up to date.
-------------------------------------------------------------
Main Update Script
-------------------------------------------------------------
Date: seg mar 23 13:28:11 WET 2020
EUID: 1000
openenergymonitor_dir: /opt/openenergymonitor
type: all
firmware: none
Hardware detected: EmonPi
Stopping emonPiLCD service
Display update message on LCD
I2C LCD DETECTED Ox27
git pull /opt/openenergymonitor/emonpi
* master
No ramo master
Your branch is up to date with 'origin/master'.
não há nada para submeter, árvore de trabalho limpa
A obter de origin
Already up to date.
git pull /opt/openenergymonitor/RFM2Pi
* master
No ramo master
Your branch is up to date with 'origin/master'.
não há nada para submeter, árvore de trabalho limpa
A obter de origin
Already up to date.
Start emonhub update script:
-------------------------------------------------------------
emonHub update
-------------------------------------------------------------
git pull /opt/openenergymonitor/emonhub
* emon-pi
No ramo emon-pi
Your branch is up to date with 'origin/emon-pi'.
não há nada para submeter, árvore de trabalho limpa
Already up to date.
Failed to restart .service.service: Unit .service.service not found.
- Service
Running emonhub automatic node addition script
[[5]]
Node 5 already present
[[6]]
Node 6 already present
[[7]]
Node 7 already present
[[8]]
Node 8 already present
[[9]]
Node 9 already present
[[10]]
Node 10 already present
[[11]]
Node 11 already present
[[12]]
Node 12 already present
[[13]]
Node 13 already present
[[14]]
Node 14 already present
[[15]]
Node 15 already present
[[16]]
Node 16 already present
[[19]]
Node 19 already present
[[20]]
Node 20 already present
[[21]]
Node 21 already present
[[22]]
Node 22 already present
[[23]]
Node 23 already present
[[24]]
Node 24 already present
[[25]]
Node 25 already present
[[26]]
Node 26 already present
Start emoncms update:
-------------------------------------------------------------
Update Emoncms Core
-------------------------------------------------------------
Checking status of /var/www/emoncms git repository
- git branch: stable
- no local changes
- running: git pull origin stable
A obter de origin
De https://github.com/emoncms/emoncms
* branch stable -> FETCH_HEAD
Already up to date.
Update Emoncms database
[]
-------------------------------------------------------------
Update Emoncms Services
-------------------------------------------------------------
emoncms_mqtt.service already installed
feedwriter.service already installed
service-runner.service already installed
Reloading systemctl deamon
Restarting Services...
- sudo systemctl restart feedwriter.service
--- ActiveState=active ---
- sudo systemctl restart emoncms_mqtt.service
--- ActiveState=active ---
- sudo systemctl restart emonhub.service
--- ActiveState=active ---
/opt/openenergymonitor/EmonScripts/sudoers.d/emoncms-rebootbutton: análise com sucesso
emonPi emoncms admin reboot button sudoers updated
-------------------------------------------------------------
Update Emoncms Modules
-------------------------------------------------------------
------------------------------------------
Updating /var/www/emoncms/Modules/app module
------------------------------------------
- git branch: stable
- git tags: 2.1.0
- no local changes
- running: git pull origin stable
A obter de origin
Já em 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.
------------------------------------------
Updating /var/www/emoncms/Modules/config module
------------------------------------------
- git branch: stable
- git tags: 2.0.2-9-g1bba25a
- no local changes
- running: git pull origin stable
A obter de origin
Já em 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.
------------------------------------------
Updating /var/www/emoncms/Modules/dashboard module
------------------------------------------
- git branch: stable
- git tags: 2.0.5
- no local changes
- running: git pull origin stable
A obter de origin
Já em 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.
------------------------------------------
Updating /var/www/emoncms/Modules/device module
------------------------------------------
- git branch: stable
- git tags: 2.0.4
- no local changes
- running: git pull origin stable
A obter de origin
Já em 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.
------------------------------------------
Updating /var/www/emoncms/Modules/graph module
------------------------------------------
- git branch: stable
- git tags: 2.0.8-2-g7df046d
- no local changes
- running: git pull origin stable
A obter de origin
Já em 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.
------------------------------------------
Updating /var/www/emoncms/Modules/setup module
------------------------------------------
- git branch: stable
fatal: Nenhum nome encontrado, não é possível descrever.
- git tags:
- no local changes
- running: git pull origin stable
A obter de origin
Já em 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.
------------------------------------------
Updating /var/www/emoncms/Modules/wifi module
------------------------------------------
- git branch: stable
- git tags: 2.0.0-29-g274bcd5
- no local changes
- running: git pull origin stable
A obter de origin
Já em 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.
/opt/openenergymonitor/EmonScripts/sudoers.d/wifi-sudoers: análise com sucesso
wifi sudoers entry updated
------------------------------------------
Updating /opt/emoncms/modules/backup module
------------------------------------------
- git branch: stable
- git tags: 2.2.1-9-g8b670a0
- no local changes
- running: git pull origin stable
Already up to date.
Já em 'stable'
Your branch is up to date with 'origin/stable'.
------------------------------------------
Updating /opt/emoncms/modules/demandshaper module
------------------------------------------
- git branch: stable
- git tags: 1.2.0-27-gfdfbf3d
- no local changes
- running: git pull origin stable
Already up to date.
Já em 'stable'
Your branch is up to date with 'origin/stable'.
------------------------------------------
Updating /opt/emoncms/modules/postprocess module
------------------------------------------
- git branch: stable
- git tags: 2.1.0-21-g0e2d78f
- no local changes
- running: git pull origin stable
Already up to date.
Já em 'stable'
Your branch is up to date with 'origin/stable'.
------------------------------------------
Updating /opt/emoncms/modules/sync module
------------------------------------------
- git branch: stable
- git tags: 2.0.3
- no local changes
- running: git pull origin stable
Already up to date.
Já em 'stable'
Your branch is up to date with 'origin/stable'.
------------------------------------------
Updating /opt/emoncms/modules/usefulscripts module
------------------------------------------
- git branch: stable
fatal: Nenhum nome encontrado, não é possível descrever.
- git tags:
- no local changes
- running: git pull origin stable
Already up to date.
Já em 'stable'
Your branch is up to date with 'origin/stable'.
--------------------------------------------
Backup module installation and update script
--------------------------------------------
- Loading EmonScripts config.ini
- Copying default.config.cfg to config.cfg
- Setting config.cfg settings
- Backup module symlink already exists
- PHP Version: 7.3
- Creating /etc/php/7.3/mods-available/emoncmsbackup.ini
post_max_size = 3G
upload_max_filesize = 3G
upload_tmp_dir = /var/opt/emoncms/backup/uploads
- phpenmod emoncmsbackup
- /var/opt/emoncms/backup already exists
- /var/opt/emoncms/backup/uploads already exists
- restarting apache
Update Emoncms database
[]
Starting emonPi LCD service..
-------------------------------------------------------------
emonPi update done: seg mar 23 13:29:00 WET 2020
-------------------------------------------------------------
restarting service-runner
By the way, i tryied to install emoncms on ssd and it worked very well. Just make sure you have enough power since the default emonpi power transformer is not able to power everything. To not able to complete boot at all, to wifi not working well or random caracters on emonpi lcd.
For those who want to try, i used the first post on the link: Rpi forum link for usb-ssd install
True.
Even using 3A power supply, my emonpi with rpi4 and ssd don’t work well. I am testing now again to see if is because i am using a desktop version on it that could suck more power from it.
Strange because the ssd only draws 500mah and that leaves me in trouble because i want to add a 13" lcd to it.
Tomorow i will have more news.
Sorry, i wrongly understood it was merged on stable.