I’m not sure how much the Admin →Update function replaces - it’s never been clear to me, @Trystan should be able to tell you. I think you might have replaced the JeeLib software in the “emon” part of your emonPi with the LPL software, which needs a RFM69CW radio module to work, Failing that, to the JeeLib software but with the RFM69 flag set.
What you need to do first is check which RFM you have in your emonPi. The pictures here RFM12B & RFM69CW Wireless Transceiver Modules — OpenEnergyMonitor 0.0.1 documentation should tell you.
Then you need to get & compile the appropriate sketch for the “emon” part of the emonPi. If it really is a RFM12B, I think you’ll need to dig deep into Github to find the appropriate sketch, or change a RFM69CW sketch back to work the RFM12B. If it’s a RFM69CW, things are a lot easier.
Start reading here Firmware — OpenEnergyMonitor 0.0.1 documentation
I DON’T recommend loading platfomio on your normal computer - when I tried it, it screwed up and moved my files around, and broke my scripts for updating from Github etc. It might be OK if it’s sandboxed in the RPi.
I use the Arduino IDE on my laptop, always.
For what it’s worth, here is my script for updating the emonPi front end software, after compiling it on this laptop using the Arduino IDE.
Be sure to check it carefully and change what applies to you before you try to use it. I don’t know if there’s a standard/preferred temporary place for the file in the Pi (and if there is, I’ve never found where it’s documented), so the directory I’ve used seemed a good idea at the time!
[You don’t need to set up the pair of key files, you could type the commands & passwords instead. I find it a lot easier to have this laptop rather than me authorised to communicate.]
#!/bin/bash
# Needs SSH enabling on emonPi / emonBase. For emonPi only, use front panel LCD menu & pushbutton. For both, add an empty file named "SSH" in the root partition.
#
# Generate a SSH key pair with "ssh-keygen" Don't set a password
# Keys are in /home/r/.ssh files are private key: id_rsa; public key: id_rsa.pub
# Copy to the Pi with "ssh-copy-id [remote id] e.g.remote-id = '[email protected]', password "emonpi2016" is required ]
# Needs SSH & SCP on source machine. Avrdude should exist on the Pi.
#
# Old RFM12Pi with RFM69CW has 38400 baud rate for serial comms, or possibly 9600. The rest: 115200
# Programming baud rate is always 115200
remotemachine='[email protected]'
sourcefile='/home/r/OpenEnergy/Software/rfmNATIVE/EmonPiCM/emonPiFrontEndCM/emonPiFrontEndCM.ino.standard.hex'
targetfile='/opt/openenergymonitor/emonpi/firmware/compiled/emonPiFrontEndCM.ino.standard.hex'
echo This can take about 45 seconds to complete
echo
echo Remote machine is $remotemachine
echo
scp $sourcefile $remotemachine:$targetfile
ssh $remotemachine sudo service emonhub stop
ssh $remotemachine avrdude -v -c arduino -p ATMEGA328P -P /dev/ttyAMA0 -b 115200 -U flash:w:$targetfile
ssh $remotemachine sudo service emonhub start
exit