Some problems in logged in my wsl.log

108 views
Skip to first unread message

Paolo

unread,
Mar 1, 2014, 6:50:56 AM3/1/14
to webso...@googlegroups.com
I'm using Trunk 1699 on Raspberry PI.

Wondering if these errors logged in my wsl.log are related to partial display of my weather data (no sun info):



20140301 121009 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [65] :: Trying to get property of non-object
20140301 121009 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [65] :: Trying to get property of non-object
20140301 122305 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/WeatherService.php [98] :: Undefined variable: device
20140301 122305 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/WeatherService.php [98] :: Trying to get property of non-object
20140301 122305 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/WeatherService.php [98] :: Undefined variable: device
20140301 122305 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/WeatherService.php [98] :: Trying to get property of non-object
20140301 122305 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/WeatherService.php [122] :: Undefined variable: sumTemp
20140301 122306 debug   onDebug - OTHER error (4096) in /usr/share/nginx/www/websolarlog/classes/Util.php [413] :: Argument 1 passed to Util::beaufortScale() must be an instance of float, double given, called in /usr/share/nginx/www/websolarlog/classes/services/WeatherService.php on line 137 and defined
20140301 122306 debug   onDebug - OTHER error (4096) in /usr/share/nginx/www/websolarlog/classes/Util.php [413] :: Argument 1 passed to Util::beaufortScale() must be an instance of float, double given, called in /usr/share/nginx/www/websolarlog/classes/services/WeatherService.php on line 138 and defined
20140301 122306 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/WeatherService.php [153] :: Undefined variable: countTemp
20140301 122306 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/SummaryService.php [101] :: Undefined index: metering
20140301 122306 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/SummaryService.php [130] :: Undefined index: metering

Paolo

unread,
Mar 5, 2014, 5:35:24 PM3/5/14
to webso...@googlegroups.com
With latest trunk i solved my "no sun info" problem.

Still keep getting some warning/errors in my log and 0 equivalent trees.


20140305 230306 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/WeatherService.php [98] :: Undefined variable: device
20140305 230306 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/WeatherService.php [98] :: Trying to get property of non-object
20140305 230306 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/WeatherService.php [123] :: Undefined variable: sumTemp
20140305 230306 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/WeatherService.php [159] :: Undefined variable: countTemp
20140305 230306 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/SummaryService.php [130] :: Undefined index: metering

Marco

unread,
Mar 6, 2014, 4:03:05 AM3/6/14
to webso...@googlegroups.com
Good to hear and i will take a look at the debugging info.

Marco

unread,
Mar 6, 2014, 4:32:10 AM3/6/14
to webso...@googlegroups.com
Did some fixes;

Could you update to trunk 1735 and let me know if these lines are gone?

Paolo

unread,
Mar 6, 2014, 7:38:39 AM3/6/14
to webso...@googlegroups.com
Updated now (actually version is 1736).

Remaining issues + some more I never wrote before.
  1. Trees always 0.
  2. Misc.php page keeps "loading..." under the graph.
  3. "/etc/init.d/websolarlog stop" does not always stop wsl.sh, it keeps restarting. I need to kill wsl.sh.
Here are some more logs just captured:

20140306 131808 debug   onDebug -  QueueServer: start
20140306 131948 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/SummaryService.php [130] :: Undefined index: metering
20140306 132010 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/SummaryService.php [130] :: Undefined index: metering
20140306 132030 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/SummaryService.php [130] :: Undefined index: metering
20140306 132041 debug   onDebug - OTHER error (4096) in /usr/share/nginx/www/websolarlog/classes/services/EventService.php [42] :: Argument 1 passed to EventService::getArrayByDeviceAndType() must be an instance of Device, instance of stdClass given, called in /usr/share/nginx/www/websolarlog/server.php on line 146 and defined
20140306 132041 debug   onDebug - OTHER error (4096) in /usr/share/nginx/www/websolarlog/classes/services/EventService.php [42] :: Argument 1 passed to EventService::getArrayByDeviceAndType() must be an instance of Device, instance of stdClass given, called in /usr/share/nginx/www/websolarlog/server.php on line 178 and defined
20140306 132041 debug   onDebug - OTHER error (4096) in /usr/share/nginx/www/websolarlog/classes/services/EventService.php [42] :: Argument 1 passed to EventService::getArrayByDeviceAndType() must be an instance of Device, instance of stdClass given, called in /usr/share/nginx/www/websolarlog/server.php on line 179 and defined
20140306 132041 debug   onDebug - OTHER error (4096) in /usr/share/nginx/www/websolarlog/classes/services/EventService.php [42] :: Argument 1 passed to EventService::getArrayByDeviceAndType() must be an instance of Device, instance of stdClass given, called in /usr/share/nginx/www/websolarlog/server.php on line 146 and defined
20140306 132041 debug   onDebug - OTHER error (4096) in /usr/share/nginx/www/websolarlog/classes/services/EventService.php [42] :: Argument 1 passed to EventService::getArrayByDeviceAndType() must be an instance of Device, instance of stdClass given, called in /usr/share/nginx/www/websolarlog/server.php on line 178 and defined
20140306 132041 debug   onDebug - OTHER error (4096) in /usr/share/nginx/www/websolarlog/classes/services/EventService.php [42] :: Argument 1 passed to EventService::getArrayByDeviceAndType() must be an instance of Device, instance of stdClass given, called in /usr/share/nginx/www/websolarlog/server.php on line 179 and defined
20140306 132149 debug   onDebug - OTHER error (4096) in /usr/share/nginx/www/websolarlog/classes/services/EventService.php [42] :: Argument 1 passed to EventService::getArrayByDeviceAndType() must be an instance of Device, instance of stdClass given, called in /usr/share/nginx/www/websolarlog/server.php on line 146 and defined
20140306 132149 debug   onDebug - OTHER error (4096) in /usr/share/nginx/www/websolarlog/classes/services/EventService.php [42] :: Argument 1 passed to EventService::getArrayByDeviceAndType() must be an instance of Device, instance of stdClass given, called in /usr/share/nginx/www/websolarlog/server.php on line 178 and defined
20140306 132149 debug   onDebug - OTHER error (4096) in /usr/share/nginx/www/websolarlog/classes/services/EventService.php [42] :: Argument 1 passed to EventService::getArrayByDeviceAndType() must be an instance of Device, instance of stdClass given, called in /usr/share/nginx/www/websolarlog/server.php on line 179 and defined
20140306 132149 debug   onDebug - OTHER error (4096) in /usr/share/nginx/www/websolarlog/classes/services/EventService.php [42] :: Argument 1 passed to EventService::getArrayByDeviceAndType() must be an instance of Device, instance of stdClass given, called in /usr/share/nginx/www/websolarlog/server.php on line 146 and defined
20140306 132149 debug   onDebug - OTHER error (4096) in /usr/share/nginx/www/websolarlog/classes/services/EventService.php [42] :: Argument 1 passed to EventService::getArrayByDeviceAndType() must be an instance of Device, instance of stdClass given, called in /usr/share/nginx/www/websolarlog/server.php on line 178 and defined
20140306 132149 debug   onDebug - OTHER error (4096) in /usr/share/nginx/www/websolarlog/classes/services/EventService.php [42] :: Argument 1 passed to EventService::getArrayByDeviceAndType() must be an instance of Device, instance of stdClass given, called in /usr/share/nginx/www/websolarlog/server.php on line 179 and defined
20140306 132214 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/template/green/header.php [11] :: Undefined variable: config
20140306 132214 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/template/green/header.php [11] :: Trying to get property of non-object
20140306 132214 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/template/green/header.php [16] :: Undefined variable: config
20140306 132214 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/template/green/header.php [16] :: Trying to get property of non-object
20140306 132214 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/template/green/index.php [10] :: Undefined variable: config
20140306 132214 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/template/green/index.php [10] :: Trying to get property of non-object
20140306 132214 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/template/green/index.php [11] :: Undefined variable: config
20140306 132214 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/template/green/index.php [11] :: Trying to get property of non-object
20140306 132214 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/template/green/index.php [91] :: Undefined variable: config
20140306 132214 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/template/green/index.php [91] :: Trying to get property of non-object
20140306 132214 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/template/green/index.php [91] :: Undefined variable: config
20140306 132214 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/template/green/index.php [91] :: Trying to get property of non-object
20140306 132218 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1239] :: Undefined variable: cumKWH
20140306 132218 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1243] :: Undefined variable: cumKWH
20140306 132218 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1254] :: Undefined offset: 4
20140306 132218 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1254] :: Undefined offset: 5
20140306 132218 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1254] :: Undefined offset: 6
20140306 132218 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1254] :: Undefined offset: 7
20140306 132218 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1254] :: Undefined offset: 8
20140306 132218 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1254] :: Undefined offset: 9
20140306 132218 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1254] :: Undefined offset: 10
20140306 132218 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1254] :: Undefined offset: 11
20140306 132218 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1254] :: Undefined offset: 12
20140306 132218 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1453] :: Undefined index: Diff
20140306 132218 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1455] :: Undefined index: cumKWH
20140306 132218 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1456] :: Undefined index: cumDiff
20140306 132300 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/SummaryService.php [130] :: Undefined index: metering
20140306 132316 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/SummaryService.php [130] :: Undefined index: metering
20140306 132332 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/SummaryService.php [130] :: Undefined index: metering
20140306 132348 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/SummaryService.php [130] :: Undefined index: metering

Marco

unread,
Mar 6, 2014, 10:30:23 AM3/6/14
to webso...@googlegroups.com
Thanx for the feedback!

Just committed some changes to SourceForge, so if you update WSL i believe all warnings/error (that you posted) will be gone.

The loading in misc.php is a textual flaw and will take a look at it.

Concerning wsl.sh;
Recently we recieved some changes for wsl.sh which we need to test. When this is done, we will take a look at your findings.
wsl.sh is "the hart" of wsl and we do not want to mess that up :)

Concerning the 0 trees;
could you check if the CO2 value for Trees is set in Admin::Advanced ?


Paolo

unread,
Mar 6, 2014, 11:10:13 AM3/6/14
to webso...@googlegroups.com
Thanx for your effort! :)

Some more feedbacks:
  1. Almost all warnings are gone, see below
  2. Keeps loading, will wait a fix, no problem
  3. Will wait for wsl.sh too. If I will find something more I'll let you know.
  4. Trees always 0, values seems default ones. See capture 1.
  5. Version trunk build is always wrong. See capture 2.
  6. I was never be able to update using web interface. See Capture 3

Capture 1

Capture 2

Capture 2

Log:

20140306 164552 debug   onDebug -  QueueServer: start
20140306 164925 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1239] :: Undefined variable: cumKWH
20140306 164926 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1243] :: Undefined variable: cumKWH
20140306 164926 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1454] :: Undefined index: Diff
20140306 164926 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1456] :: Undefined index: cumKWH
20140306 164926 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1457] :: Undefined index: cumDiff
20140306 164942 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1239] :: Undefined variable: cumKWH
20140306 164942 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1243] :: Undefined variable: cumKWH
20140306 164942 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1454] :: Undefined index: Diff
20140306 164942 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1456] :: Undefined index: cumKWH
20140306 164942 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1457] :: Undefined index: cumDiff
20140306 165007 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [47] :: Undefined offset: 0
20140306 165008 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [47] :: Trying to get property of non-object
20140306 165008 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [47] :: Trying to get property of non-object
20140306 165008 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [48] :: Undefined offset: 0
20140306 165008 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [48] :: Trying to get property of non-object
20140306 165008 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [48] :: Trying to get property of non-object
20140306 165008 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [49] :: Undefined offset: 0

Marco

unread,
Mar 6, 2014, 11:33:38 AM3/6/14
to webso...@googlegroups.com
1. i will take a look again
2. ok :)
3. ok :)
4. ok, is your WSL connected to the WWW and could a take a look at it? (you could send me the URL to my private email if you don't want it to be public)
5. How did you do the updates?
6. why are you not able to run it through the gui? 


Paolo

unread,
Mar 6, 2014, 12:04:17 PM3/6/14
to webso...@googlegroups.com
Il giorno giovedì 6 marzo 2014 17:33:38 UTC+1, Marco ha scritto:
4. ok, is your WSL connected to the WWW and could a take a look at it? (you could send me the URL to my private email if you don't want it to be public)
5. How did you do the updates?
6. why are you not able to run it through the gui? 

4. Actually my WSL is only connected to my LAN. If you absolutely need it, I can publish it. ;) :)
5. I upgrade manually using "svn update". Only way that works. :) :(

6.I installed on my Raspberry Pi using the online instructions (http://www.websolarlog.com/index.php/installation-manual-for-websolarlog/) that later found not so "fresh". But I was able to install and run it. :)

My first install was done using:
sudo svn checkout http://svn.code.sf.net/p/websolarlog/code/trunk /usr/share/nginx/www/websolarlog

The only option that works on web interface is to install "stable version". Don't know why, but there should be something wrong somewhere. :( I also checked my db content with a fresh install, but I found nothing  wrong in it.


Marco

unread,
Mar 6, 2014, 12:47:43 PM3/6/14
to
Again solved some warnings/errors
The warnings/errors from WeatherOWM.php are strange, because the suggest that the WeatherAddon doesn't receive temperature values from OpenWeatherMap. Does these w/e are frequent or just ones in the X hours/days? Its very possible that in some cases OWM doesn't have temp. data available for your location and WSL runs into these warnings.

4. Its always handy to see whats happenings, so we could prevent misunderstandings. For now direct access to your WSL is not neccessarry.
5 & 6. did you try to click the link "I understand and want to see the update options!" on the rights site of the screen? If you do that, you should get the options to upgrade to Beta or Trunk. When you check the trunk checkbox, you should get the actual trunk data in the center and updating is just 2 clicks away. And the trunk number is only updated when you update with the updater, so its "normal" that the trunk number is not updated when you update from the console with the svn command.



Paolo

unread,
Mar 6, 2014, 2:06:07 PM3/6/14
to webso...@googlegroups.com
OMG, I missed that that underlined phrase with "trunk" should be clicked even if is not an url! :D Well, I would have changed it in a button or option or something like that to not confuse someone like me! :D LOL Finally I'm updating WSL right! BTW, why is trunk option to be clicked every time? ;)

About WeatherOWM.php error, now I think it's gone :). Could be latest build or janitor lauched after "normal" update. I never saw janitor, after updating manually. 

Always missing tree value and have loading under graph. Will wait patiently. ;)

See my log now: I Like it! :) BTW, latest warnings show when I enter misc.php.

20140306 193923 debug   onDebug -  QueueServer: stop
20140306 193931 debug   onDebug -  QueueServer: start
20140306 193936 info    onInfo - Janitor checking the database.
20140306 193936 debug   onDebug - DeviceService janitor DB Check
20140306 193936 debug   onDebug - EnergyService janitor DB Check
20140306 193936 debug   onDebug - Run GraphService::janitorDbCheck->installGraph
  checkOldSerieray ( )  onDebug - graph->json:true
20140306 193936 debug   onDebug - LiveService janitor DB Check
20140306 193936 debug   onDebug - LiveSmartMeterService janitor DB Check
20140306 193936 debug   onDebug - DeviceService janitor DB Check
20140306 193936 debug   onDebug - HistorySmartMeterService janitor DB Check
20140306 193936 debug   onDebug - HistorySmartMeter object not found
20140306 195214 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1242] :: Undefined variable: cumKWH
20140306 195214 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [1246] :: Undefined variable: cumKWH

Paolo

unread,
Mar 6, 2014, 3:19:17 PM3/6/14
to webso...@googlegroups.com
Update, WeatherOWM.php is there again. Could be related to polling, but in my dashboard weather temp are shown... I compared them to another online WSL and no info is missing in weather (dashboard).

20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [47] :: Undefined offset: 0
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [47] :: Trying to get property of non-object
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [47] :: Trying to get property of non-object
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [48] :: Undefined offset: 0
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [48] :: Trying to get property of non-object
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [48] :: Trying to get property of non-object
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [49] :: Undefined offset: 0
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [49] :: Trying to get property of non-object
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [49] :: Trying to get property of non-object
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [50] :: Undefined offset: 0
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [50] :: Trying to get property of non-object
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [50] :: Trying to get property of non-object
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [51] :: Undefined offset: 0
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [51] :: Trying to get property of non-object
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [51] :: Trying to get property of non-object
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [52] :: Undefined offset: 0
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [52] :: Trying to get property of non-object
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [52] :: Trying to get property of non-object
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [64] :: Undefined offset: 0
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [64] :: Trying to get property of non-object
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [64] :: Trying to get property of non-object
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [65] :: Undefined offset: 0
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [65] :: Trying to get property of non-object
20140306 210016 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [65] :: Trying to get property of non-object
20140306 210502 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [47] :: Undefined offset: 0
20140306 210502 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [47] :: Trying to get property of non-object
20140306 210502 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [47] :: Trying to get property of non-object
20140306 210502 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [48] :: Undefined offset: 0
20140306 210502 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [48] :: Trying to get property of non-object
20140306 210502 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [48] :: Trying to get property of non-object
20140306 210502 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [49] :: Undefined offset: 0
20140306 210503 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [49] :: Trying to get property of non-object
20140306 210503 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [49] :: Trying to get property of non-object
20140306 210503 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [50] :: Undefined offset: 0
20140306 210503 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [50] :: Trying to get property of non-object
20140306 210503 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [50] :: Trying to get property of non-object
20140306 210503 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [51] :: Undefined offset: 0
20140306 210503 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [51] :: Trying to get property of non-object
20140306 210503 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [51] :: Trying to get property of non-object
20140306 210503 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [52] :: Undefined offset: 0
20140306 210503 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [52] :: Trying to get property of non-object
20140306 210503 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [52] :: Trying to get property of non-object
20140306 210503 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [64] :: Undefined offset: 0
20140306 210503 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [64] :: Trying to get property of non-object
20140306 210503 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [64] :: Trying to get property of non-object
20140306 210503 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [65] :: Undefined offset: 0
20140306 210503 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [65] :: Trying to get property of non-object
20140306 210503 debug   onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [65] :: Trying to get property of non-object

Marco

unread,
Mar 6, 2014, 3:40:45 PM3/6/14
to webso...@googlegroups.com
the w/e come from the backend class that receives the Weather data from OWM.
It looks like the received data is not always 100% correct of maybe we don't receive any data.

The GUI is seperated from the backend and the GUI retrieves the most recent weather data from the database.
Theoretically this could result in that the backend is not receiving data for 2 days and the GUI presents data that is 2 days old.

Now i'm saying this, it would be nice to see the timestamp of the weather data in the GUI.

Just committed a small code change that should prevent these w/e lines in wsl.log


Buu Tam Le

unread,
Mar 7, 2014, 7:32:44 AM3/7/14
to webso...@googlegroups.com
Hi Marco,

I got the same problem concerning the 0 trees, everything is set correctly in Admin::Advanced. This function was working before (don't remember how long ago but it was many updates ago).

Marco

unread,
Mar 7, 2014, 7:58:32 AM3/7/14
to
Just fixed the "0 trees" bug :)

I also added the timestamp of the most recent received weather data to the "weather" text title. Hover the "weather" text above the weather section.

Buu Tam Le

unread,
Mar 7, 2014, 8:05:02 AM3/7/14
to webso...@googlegroups.com
Confirmed "0 trees" bug is fixed :)

Paolo

unread,
Mar 12, 2014, 7:23:09 PM3/12/14
to webso...@googlegroups.com
version: trunk (build 1771)

When i hover on weather text I read "0", weather info are working. Now my inverter is shutdown, don't know if it's related to. Trees are working now.

Should I try with a longer timeout in weather communication device?

I keep getting lot of warning & errors in debug log. Here is some of errors I get, I'm reporting only single lines, not full log that has several of them inside.

Most frequent logged error:

20140312 233000 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/Session.php [131] :: Array to string conversion

Other mixed errors:

20140313 000328 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/Session.php [131] :: Array to string conversion
20140313 000328 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/EnergyService.php [70] :: Trying to get property of non-object
20140313 000328 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/EnergyService.php [71] :: Trying to get property of non-object
20140313 000328 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/EnergyService.php [72] :: Trying to get property of non-object
20140313 000328 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/EnergyService.php [73] :: Trying to get property of non-object
20140313 000328 debug onDebug - OTHER error (2) in /usr/share/nginx/www/websolarlog/classes/services/WeatherService.php [132] :: Division by zero
20140313 000328 debug onDebug - OTHER error (2) in /usr/share/nginx/www/websolarlog/classes/services/WeatherService.php [135] :: Division by zero
20140313 000328 debug onDebug - OTHER error (2) in /usr/share/nginx/www/websolarlog/classes/services/WeatherService.php [136] :: Division by zero
20140313 000328 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/WeatherService.php [144] :: Undefined variable: bean
20140313 000329 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/Session.php [131] :: Array to string conversion

20140313 000505 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/Session.php [131] :: Array to string conversion
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [50] :: Undefined offset: 0
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [50] :: Trying to get property of non-object
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [50] :: Trying to get property of non-object
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [51] :: Undefined offset: 0
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [51] :: Trying to get property of non-object
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [51] :: Trying to get property of non-object
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [52] :: Undefined offset: 0
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [52] :: Trying to get property of non-object
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [52] :: Trying to get property of non-object
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [53] :: Undefined offset: 0
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [53] :: Trying to get property of non-object
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [53] :: Trying to get property of non-object
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [54] :: Undefined offset: 0
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [54] :: Trying to get property of non-object
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [54] :: Trying to get property of non-object
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [55] :: Undefined offset: 0
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [55] :: Trying to get property of non-object
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [55] :: Trying to get property of non-object
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [67] :: Undefined offset: 0
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [67] :: Trying to get property of non-object
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [67] :: Trying to get property of non-object
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [68] :: Undefined offset: 0
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [68] :: Trying to get property of non-object
20140313 000506 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/devices/WeatherOWM.php [68] :: Trying to get property of non-object
20140313 000508 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/Session.php [131] :: Array to string conversion

20140313 000511 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/Session.php [153] :: Array to string conversion
20140313 000511 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [321] :: Array to string conversion
20140313 000511 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [321] :: Array to string conversion
20140313 000511 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [392] :: Array to string conversion
20140313 000511 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [392] :: Array to string conversion
20140313 000511 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/DeviceService.php [93] :: Array to string conversion
20140313 000511 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/DeviceService.php [93] :: Array to string conversion
20140313 000511 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [395] :: Array to string conversion
20140313 000511 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/PDODataAdapter.php [395] :: Array to string conversion
20140313 000511 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/DeviceService.php [79] :: Array to string conversion
20140313 000511 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/services/DeviceService.php [79] :: Array to string conversion
20140313 000511 debug onDebug - OTHER error (8) in /usr/share/nginx/www/websolarlog/classes/Session.php [155] :: Array to string conversion

Paolo

unread,
Mar 12, 2014, 7:51:38 PM3/12/14
to webso...@googlegroups.com
Just got "4-3-2014 0:40:00" with hover, but I expected something like "13-3-2014 0:40:00". Wrong formatting or real old weather info?

André M.

unread,
Mar 12, 2014, 7:53:20 PM3/12/14
to webso...@googlegroups.com
I have these errors too with trunk 1765.
The temperatures I get sometimes are totally wrong, yesterday it jumped between 2.4 and 12.9 in 5 minutes!
How can you still get errors in debug.log, there is only wsl.log in newer trunks ...

Marco

unread,
Mar 13, 2014, 5:00:14 AM3/13/14
to webso...@googlegroups.com
Just did a commit with some changes/fixes.
This fix should "fix" the  "Array to string conversion" warnings, but because of the fixes allot of linenumbers are shifted which make debugging on linenumber very difficult. Could you therefore, about a few hours,  post another logfile?

Also i made some changes on the OWM code. It looks like we where polling OWM faster then the want to. OWM's advice is to poll max 1 time an hour and we did it once every X minutes. I now "hardcoded" that the OWM device will poll every 15 min for new weather data. Hopefully this solves the old data, because maybe OWM is blocking devices which are polling to many times a hour.

Let me know the results :)

Paolo

unread,
Mar 14, 2014, 4:33:47 PM3/14/14
to webso...@googlegroups.com
Il giorno giovedì 13 marzo 2014 10:00:14 UTC+1, Marco ha scritto:
Also i made some changes on the OWM code. It looks like we where polling OWM faster then the want to. OWM's advice is to poll max 1 time an hour and we did it once every X minutes. I now "hardcoded" that the OWM device will poll every 15 min for new weather data. Hopefully this solves the old data, because maybe OWM is blocking devices which are polling to many times a hour.

Let me know the results :)

Yeah. It works much better now. :) Almost no error logged.

I think that residuals come from timeout or empty reply from OWM webservice. BTW, I also changed my URI in openweather config in: 

BTW I tested a manual SVN update after a web update, but some conflicts appeared. Probably there is something to fix in update process. More, I see updating to 100% on webpage but update is not finished (I see it in wsl.log). I tried to refresh page but I got timeout. Waited more and finally update completed appeared in wsl.log.

This is my svn status output after the "check" svn update.

D     C classes/RedBeanPHPPlugins
      >   local unversioned, incoming add upon update
D       classes/RedBeanPHPPlugins/RedBeanWSLBackup.php
D     C classes/converters/SmartMeterAmpyConverter.php
      >   local unversioned, incoming add upon update
D     C classes/devices/SmartMeterAmpyRemote.php
      >   local unversioned, incoming add upon update
Summary of conflicts:
  Tree conflicts: 3

Marco

unread,
Mar 15, 2014, 5:07:06 AM3/15/14
to webso...@googlegroups.com
OWM is very unstable and we need to see what OWM brings us for the future. Is clear they do not (re)act on there bug tracker....

SVN Conflicts?
How did you test this (which commands)?

Have you tried to update WSL another time through the admin and then again checked for conflicts?

D     C classes/RedBeanPHPPlugins
      >   local unversioned, incoming add upon update
D       classes/RedBeanPHPPlugins/RedBeanWSLBackup.php 
This file is added a about 2 weeks ago and not actively used by WSL and more a test/proof of concept file

D     C classes/converters/SmartMeterAmpyConverter.php
      >   local unversioned, incoming add upon update
This file is remove in one of the most recent trunks

D     C classes/devices/SmartMeterAmpyRemote.php
      >   local unversioned, incoming add upon update
This file is remove in one of the most recent trunks


Paolo

unread,
Mar 15, 2014, 5:34:47 AM3/15/14
to webso...@googlegroups.com
OWM is very unstable and we need to see what OWM brings us for the future. Is clear they do not (re)act on there bug tracker....

No problem here, what's working now is enough for me. I would make update interval configurable. I think that 30 min or 1h is far enough... :)
 
SVN Conflicts?
How did you test this (which commands)?

Found a solution that works. Now my "manual" svn status is clean: http://muddyazian.blogspot.it/2012/04/fix-local-unversioned-incoming-add-upon.html

Probably this is not a WSL fault.

Marco

unread,
Mar 15, 2014, 5:45:53 AM3/15/14
to webso...@googlegroups.com
The update interval was configurable, but in the range of 1-180 seconds. Standard it was on 5 secs and that creates unnecessary load on WSL and OWM. In the past a had a heated discussion about the configurable interval(s). We believe that we need to prevent loads on WSL and external services. With the main reason that we prevent problems with services/API's of others and complains from WSL users.
About OWM interval; i think we first need to wait for OWM to become stable again and then we could fix/(re)create the interval for OWM. When we recreate the interval, my suggestion is to make a interval range between 1 and 60 minutes.

SVN:
Let us know when you agian see/experience this issue.

André M.

unread,
Mar 15, 2014, 7:12:40 AM3/15/14
to webso...@googlegroups.com
Where did the Ampy go?
This is the first time I see files for the Ampy meter :-)

Marco

unread,
Mar 15, 2014, 7:13:46 AM3/15/14
to webso...@googlegroups.com
to > /dev/null


André M.

unread,
Mar 15, 2014, 7:34:42 AM3/15/14
to webso...@googlegroups.com
Tx, owner is root, less easy to view them.
Reply all
Reply to author
Forward
0 new messages