Will the raspi image version of emoncms ever catch up to emoncms.org?
I am running the raspi and the local version of emoncms,but also feeding data to emoncms.org.
And the visualisations and feed engines are not as comprehensive on the raspi?
It has taken me a little while but now i have the pi reading a currentcost monitor and feeding the data to local and internet using a perl script,with emonhub turned off.
Maybe time to take an image of the raspi sd card just in case !!!!!!!
Re: Emoncms local Vs Emoncms.org on the Raspi
The "image version" has certain features removed to give it the ability to run "low-write" enough to not damage the SD card.
The emoncms.org is more often than not a couple of releases behind the current release available on git as updates etc get added to git during development and then every so often marked as a new release.
eg we are currently on v8.3.5 on emoncms.org but v8.4.0 on git, so you could update your local emoncms and be ahead of the remote, but you will still be missing some features etc.
To get full functionality locally you could install emoncms to a hdd.
The repo's master branch is the "full fat" emoncms whilst the "low fat" emoncms included in the image is the bufferedwrite branch
it would be interesting to see your perl script, if there was a demand for it we may be able to incorporate something into emonhub down the line.
Paul
Re: Emoncms local Vs Emoncms.org on the Raspi
Paul
The script was originally on the currentcost forum,So i just fettled it to suit my needs.
I also had to install LWP and apt-get install libdevice-serialport-perl to get the serial to usb adaptor working.
The script is only working on one sensor at the moment but is easily modified for more (I just don't have any????).
Mark
my $key = "********************************";
my $key2 = "********************************";
my $PORT = "/dev/ttyUSB0";
my $Watts = 0;
my $temp = 0;
my $meas = 0;
my $node = 0;
my $ob = Device::SerialPort->new($PORT) || die "Can't open $PORT: $!\n";
$ob->baudrate(57600);
$ob->write_settings;
open(SERIAL, "+>$PORT");
while (my $line = <SERIAL>) {
# print $line;
if ($line =~ m!<tmpr>*([\-\d.]+)</tmpr><sensor>0</sensor>.*<ch1><watts>0*(\d+)</watts></ch1>!) {
my $Watts = $2;
my $temp = $1;
# print "SUCCESS (Sensor0) $meas,:$Watts, $temp\n";
$meas++;
if ($meas == 2) { #time to send
my $emon_ua = LWP::UserAgent->new;
my $emon_url = "http://192.168.2.7/emoncms/input/post.json?apikey=$key\&node=$node\&json={Total_Watts:$Watts,temp:$temp}";
# print "$emon_url\n";
my $emon_response = $emon_ua->get($emon_url);
my $emon_url2 = "http://emoncms.org/input/post.json?apikey=$key2\&node=$node\&json={Total_Watts:$Watts,temp:$temp}";
my $emon_response2 = $emon_ua->get($emon_url2);
# print "emon_url2\n";
$meas = 0
}
}
}
Re: Emoncms local Vs Emoncms.org on the Raspi
Did emoncms go down last night?
The local server on raspi continued fetching data.