Notification error

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
FrankR
Posts: 33
Joined: 23 Nov 2015 22:03

Notification error

Post by FrankR »

Hi,
since yesterday evening (18:30) my WeatherUnderground App reported that it was unable to reach the host. So far so good, hosts can be away. That shouldn't really matter.
These errors occurred every hour at half past and were always followed by
"Notification: error (module): "

Extract from my z-way-server.log:
[2016-01-29 23:30:47.617] [core] [WeatherUnderground] Update error
[2016-01-29 23:30:47.619] [core] {"status":-1,"statusText":"Couldn't resolve host name"}
[2016-01-29 23:30:47.626] [core] Notification: error (module):

The browser log looked like this:
[attachment=0]2016-01-30 19_06_37-Z-Wave Smart Home.jpg[/attachment]

During the morning I realised that I couldn't connect to RaZberry from my iphone App "ZWay Control". I couldn't even start a ssh-connection to my pi and had to restart it by switching it off an on!

My questions are now:
1. What can I do agoinst the "Notification error"
2. Is there a connection between lots of errors on the z-way-server and my pi being nearly frozen.

best regards
Frank
Attachments
2016-01-30 19_06_37-Z-Wave Smart Home.jpg
2016-01-30 19_06_37-Z-Wave Smart Home.jpg (28.94 KiB) Viewed 11665 times
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Notification error

Post by pz1 »

FrankR wrote:since yesterday evening (18:30) my WeatherUnderground App reported that it was unable to reach the host.
I don't know this specific App. In the past I had lockout problems within OpenRemote that I polled the service too often for the free account. I don't know the current limitations of the service. Every 10 minutes should be fine if I remember correctly
Since 29-12-2016 I am no longer a moderator for this forum
FrankR
Posts: 33
Joined: 23 Nov 2015 22:03

Re: Notification error

Post by FrankR »

Hi pz1,
cannot believe that too many polls are the problem. I am polling wunderground once an hour (checked my wunderground account statistics) while I have 500 polls per day for free.
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Notification error

Post by pz1 »

Can you get the data in a browser with e.g

Code: Select all

http://api.wunderground.com/api/YOURKEY/conditions/forecast/q/nl/schiphol.json
YOURKEY= the key given to you
FrankR
Posts: 33
Joined: 23 Nov 2015 22:03

Re: Notification error

Post by FrankR »

Yes, pz1, no problem and my WeatherUnderground app is running fine since I restarted my pi:

{
"response": {
"version":"0.1",
"termsofService":"http://www.wunderground.com/weather/api/d/terms.html",
"features": {
"conditions": 1
,
"forecast": 1
}
}
, "current_observation": {
"image": {
"url":"http://icons.wxug.com/graphics/wu2/logo_130x80.png",
"title":"Weather Underground",
"link":"http://www.wunderground.com"
},
"display_location": {
"full":"Schiphol, Netherlands",
"city":"Schiphol",
"state":"",
"state_name":"Netherlands",

...

"maxwind": {
"mph": 35,
"kph": 56,
"dir": "W",
"degrees": 275
},
"avewind": {
"mph": 26,
"kph": 42,
"dir": "W",
"degrees": 275
},
"avehumidity": 70,
"maxhumidity": 0,
"minhumidity": 0
}
]
}
}
}


But that wasn't my question. My questions were:
1. Can too many errors from any app lock me out from z-way-server an my pi?
2. What can I do against the "Notification: error" or empty error messages?

Maybe my first question has been answered by another thread that I found accidentally an hour ago:
https://forum.z-wave.me/viewtopic.php?f ... 1&start=10

My pi is running a wlan module and that - according to the thread - might cause problems and lock me out. I will try to restart networking by a cronjob every night.

But it is still sad that the Weather Underground app causes a notification error and therefore forced my to have a look into the logfile instead of seeing the error through my ZWay app or ZWay browser log.
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Notification error

Post by pz1 »

But it is still sad that the Weather Underground app causes a notification error and therefore forced my to have a look into the logfile instead of seeing the error through my ZWay app or ZWay browser log.
May be good to do a short response with a link to this thread directly in the WeatherUnderground Recipe.
I do not have "Couldn't resolve host name"-problems with my own (more limited) version of Wunderground
FrankR
Posts: 33
Joined: 23 Nov 2015 22:03

Re: Notification error

Post by FrankR »

That's definitely a good idea :)
maros
Posts: 103
Joined: 05 Apr 2014 11:21

Re: Notification error

Post by maros »

Hi,
the empty notification errors are just a small glitch in my weather modules: the translation for the error messages is simply missing. Apart from that this seems entirely like a network error caused by the OS/Raspberry/hardware/wifi/... and is not related to the WeatherUnderground module. The module is simply reporting that the API cannot be reached.
Given your previous posts it is hard to say what was causing the network issues.
Z-Way 2.2.4 on Raspi B | My Zway GitHub repos | Amazon Wishlist to support module development
FrankR
Posts: 33
Joined: 23 Nov 2015 22:03

Re: Notification error

Post by FrankR »

Hi maros,

thanx for your reply. How can I fix the translation error?

You are right: the initial problem was not related to your app! It was caused by some raspi wifi problems. Wifi connected raspis seem to freeze from time to time. I have three raspis, two with wifi connection and one with LAN. These two freeze while the kan conncted bever had sny problem. I hope I fixed the wifi problem with a sinple cronjob that checks network connections every 10 minutes and reboots my raspi when connection is lost.

Sadly this solution led me to the following problem: viewtopic.php?f=3419&t=22795
Post Reply