Continuous warning after upgrade to 1.8.x

aurora protocol http://www.curtronics.com/Solar/
lacchini
Posts: 15
Joined: Sun Jun 16, 2019 3:40 pm

Re: Continuous warning after upgrade to 1.8.x

Post by lacchini » Tue Jun 18, 2019 5:18 pm

i am up to date, the version is yet 1.8.3.2

pi@MONITOR:/var/www/123solar/data/invt1/msgqueue $ ls
1560872640M.txt 1560872940M.txt 1560873240M.txt 1560873540M.txt 1560873840M.txt 1560874140M.txt 1560874440M.txt

pi@MONITOR:/var/www/123solar/data/invt1/msgqueue $ cat 1560874440M.txt
18/06/2019 18:14:04 20190618-18:14:57 311.276489 1.522584 473.944641 310.746674 1.529029 475.140656 222.855026 4.149342 918.443298 50.000000 96.771416 48.567005 45.537472 OK

jeanmarc
Posts: 1858
Joined: Thu Aug 29, 2013 7:16 am

Re: Continuous warning after upgrade to 1.8.x

Post by jeanmarc » Tue Jun 18, 2019 5:55 pm

thanks, what more /srv/http/123solar/config/config_invt1.php | grep FILTER return ?

jeanmarc
Posts: 1858
Joined: Thu Aug 29, 2013 7:16 am

Re: Continuous warning after upgrade to 1.8.x

Post by jeanmarc » Tue Jun 18, 2019 6:16 pm

:idea: Could you also try this script php test.php (correct /dev and stop 123s)

Code: Select all

<?php

$filter = "W011,W001,E011";
exec("aurora -a 2 -A /dev/solar", $ALARM);

/// no edit
print_r($ALARM);
$ALARM = implode(PHP_EOL, $ALARM);
$found = false;
if (trim($ALARM) && !strpos($ALARM, 'W0') && !strpos($ALARM, 'No Alarm')) {
	$MESSAGE = $ALARM;
} else {
	$MESSAGE = null;
}

if (!strpos($ALARM, 'W0')) {
	$ALARM = null;
}
echo "alarm : $ALARM message : $MESSAGE \n";

if (isset($MESSAGE)) {
	$found = false;
	$stringData = preg_split('/,/', $filter);
	foreach ($stringData as $word) { // filter
		if (strstr($MESSAGE, $word)) {
			$found = true;
		}
	}
	if (!$found) {
		echo "got a msg $MESSAGE";
	}
} // if message

?>

jeanmarc
Posts: 1858
Joined: Thu Aug 29, 2013 7:16 am

Re: Continuous warning after upgrade to 1.8.x

Post by jeanmarc » Thu Jun 20, 2019 6:28 pm

If you don't give me feedback i won't be able to find your problem. If it's too complicated for you, could you send me in PM a temporary access to your logger via ssh ?

lacchini
Posts: 15
Joined: Sun Jun 16, 2019 3:40 pm

Re: Continuous warning after upgrade to 1.8.x

Post by lacchini » Fri Jun 21, 2019 11:12 am

jeanmarc wrote:
Tue Jun 18, 2019 5:55 pm
thanks, what more /srv/http/123solar/config/config_invt1.php | grep FILTER return ?
sorry for being late, I've been away from home for work.

pi@MONITOR:~ $ sudo su -
root@MONITOR:~# cd /var/www/123solar/
root@MONITOR:/var/www/123solar# more /var/www/123solar/config/config_invt1.php | grep FILTER
$FILTER1="W011,W001,E011";
root@MONITOR:/var/www/123solar#

lacchini
Posts: 15
Joined: Sun Jun 16, 2019 3:40 pm

Re: Continuous warning after upgrade to 1.8.x

Post by lacchini » Fri Jun 21, 2019 11:17 am

jeanmarc wrote:
Tue Jun 18, 2019 6:16 pm
:idea: Could you also try this script php test.php (correct /dev and stop 123s)

Code: Select all

<?php

$filter = "W011,W001,E011";
exec("aurora -a 2 -A /dev/solar", $ALARM);

/// no edit
print_r($ALARM);
$ALARM = implode(PHP_EOL, $ALARM);
$found = false;
if (trim($ALARM) && !strpos($ALARM, 'W0') && !strpos($ALARM, 'No Alarm')) {
	$MESSAGE = $ALARM;
} else {
	$MESSAGE = null;
}

if (!strpos($ALARM, 'W0')) {
	$ALARM = null;
}
echo "alarm : $ALARM message : $MESSAGE \n";

if (isset($MESSAGE)) {
	$found = false;
	$stringData = preg_split('/,/', $filter);
	foreach ($stringData as $word) { // filter
		if (strstr($MESSAGE, $word)) {
			$found = true;
		}
	}
	if (!$found) {
		echo "got a msg $MESSAGE";
	}
} // if message

?>
root@MONITOR:/var/www# php test.php
Array
(
[0] =>
[1] => Alarm 1: No Alarm
[2] => Alarm 2: No Alarm
[3] => Alarm 3: No Alarm
[4] => Alarm 4: No Alarm
[5] =>
)
alarm : message :

lacchini
Posts: 15
Joined: Sun Jun 16, 2019 3:40 pm

Re: Continuous warning after upgrade to 1.8.x

Post by lacchini » Fri Jun 21, 2019 11:22 am

jeanmarc wrote:
Thu Jun 20, 2019 6:28 pm
If you don't give me feedback i won't be able to find your problem. If it's too complicated for you, could you send me in PM a temporary access to your logger via ssh ?
thank you but i just tested everything and check the code before open a ticket :)

my opinion is no alarm or warning from inverter but digest send automatically in every case

the message contains no errors but only an OK, maybe there is a reason that starts the digest related to the rpinotify configuration? I have not looked at the code of this module but i didn't find any other possibility

jeanmarc
Posts: 1858
Joined: Thu Aug 29, 2013 7:16 am

Re: Continuous warning after upgrade to 1.8.x

Post by jeanmarc » Fri Jun 21, 2019 1:14 pm

That's ok, thanks for the feedback, I've notice a bug in the aurora_checks code though.
This test code is the same as 123s (with the correction).

For the message part, you can (un)/comment $ALARM, you see there a "sending a msg", that will send the rpi notification later on in the code.
I don't where your data come from, don't know where to look at now.. :think:
Could you enable "Log all measures" and return data/invt1/infos/checks_status.txt ?

Code: Select all

<?php

$filter = "W011,W001,E011";
//exec("aurora -a 2 -A /dev/solar", $ALARM);
$ALARM = Array('','Alarm 1: No Alarm','Alarm 2: No Alarm','Alarm 3: No Alarm','Alarm 4: No Alarm','');
//$ALARM = Array('','Alarm 1: E028','Alarm 2: E028','Alarm 3: E028','Alarm 4: E028','');
//$ALARM = Array('','Alarm 1: W004','Alarm 2: W004','Alarm 3: W004','Alarm 4: W004','');
//$ALARM = Array('','Alarm 1: W011','Alarm 2: W011','Alarm 3: W011','Alarm 4: W011','');

///
//print_r($ALARM);
$ALARM = trim(implode(PHP_EOL, $ALARM));
if (strpos($ALARM, 'W0')) {
	$MESSAGE = $ALARM;
} else {
	$MESSAGE = null;
}
if (!strpos($ALARM, 'E0')) {
	$ALARM = null;
}

echo "alarm :\n$ALARM \nmessage :\n$MESSAGE \n";

if (isset($MESSAGE)) {
	$found = false;
	$stringData = preg_split('/,/', $filter);
	foreach ($stringData as $word) { // filter
		if (strstr($MESSAGE, $word)) {
			$found = true;
		}
	}
	if (!$found) {
		echo "\nsending a msg!\n";
	} else {
		echo "\nfiltered, no sending msg\n";
	}
} else {
	echo "\nno sending msg\n";
} // if message

?>

lacchini
Posts: 15
Joined: Sun Jun 16, 2019 3:40 pm

Re: Continuous warning after upgrade to 1.8.x

Post by lacchini » Fri Jun 21, 2019 2:45 pm

I did many tests with the new code but without finding any errors or problems

I have enabled log all measures

How long does it take to get the checkstatus file?
for now i only see events and info

attached the configurations of 123solar, maybe there may be something wrong

https://photos.app.goo.gl/GhSrjCFWZjD8Vxmy7

jeanmarc
Posts: 1858
Joined: Thu Aug 29, 2013 7:16 am

Re: Continuous warning after upgrade to 1.8.x

Post by jeanmarc » Fri Jun 21, 2019 3:30 pm

the file will be updated each 5min as you check each 5min. Make sure you have permission to write and restart 123s

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest