NMA exceeded the maximum number of API calls per hour allowed

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post
Post Reply
HenFre
Posts: 20
Joined: Thursday 12 May 2016 15:48
Target OS: Raspberry Pi
Domoticz version: 3.8771
Location: Sweden
Contact:

NMA exceeded the maximum number of API calls per hour allowed

Post by HenFre » Thursday 28 December 2017 20:13

Version : 3.8771
Platform : Raspberry Pi3 / Debian

Without sending a single message Domoticz reports that "Your IP exceeded the maximum number of API calls per hour allowed" ant that is 800.
When there is something to send it will be sent!

I don't understand this. It seem like this syntax count upp even if it isn't true and not sent:
2017-12-28  NMA.JPG
2017-12-28 NMA.JPG (211.53 KiB) Viewed 315 times

This is the error messages in the log:
2017-12-28 17:44:27.590 Error: NMA: Your IP exceeded the maximum number of API calls per hour allowed.
2017-12-28 17:44:27.590 Error: Notification sent (nma) => Failed
2017-12-28 17:44:28.829 Error: NMA: Your IP exceeded the maximum number of API calls per hour allowed.
2017-12-28 17:44:28.829 Error: Notification sent (nma) => Failed
Domoticz on Raspberry PI 3 since 2016.

User avatar
dk78
Posts: 31
Joined: Monday 07 March 2016 16:50
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Veldhoven
Contact:

Re: NMA exceeded the maximum number of API calls per hour allowed

Post by dk78 » Sunday 31 December 2017 17:44

I have also issues with NMA with Domoticz version 3.8796. Same error.

User avatar
Denny64
Posts: 31
Joined: Friday 03 February 2017 12:34
Target OS: Raspberry Pi
Domoticz version: 3.5877
Location: Italy
Contact:

Re: NMA exceeded the maximum number of API calls per hour allowed

Post by Denny64 » Sunday 31 December 2017 20:15

Up to a month ago NMA was perfect, then started to give me the error of exceeding limit.

Nothing has changed in Domoticz (update) and Python script aren't used to send NMA notification. Only swich tab and events notification.

Domoticz 3.5877 on RPi3.

Now i'm testing Pushover and it works very well.

zicht
Posts: 182
Joined: Sunday 11 May 2014 11:09
Target OS: Windows
Domoticz version: 3.8xxx
Location: NL
Contact:

Re: NMA exceeded the maximum number of API calls per hour allowed

Post by zicht » Monday 01 January 2018 13:06

Hi

I see the same errors.
Discovered by accident that when i do a manual http get with a different application name (see api) the message is delivered while domoticz stil returns err 402

Version: 3.8796
Build Hash: 2d99bbbc
Compile Date: 2017-12-24 07:06:53
dzVents Version: 2.3.0
Platform win10
Rpi & Win x64. Using : cam's,Nest,RFXCom,Kaku,LaCrosse,RFY,IsAlive,Dummy,Wether Underground, standard Lua, Curl on windows,Domoticz Android App & Tasker,

"The only source of knowledge is experience (A.Einstein)"

HenFre
Posts: 20
Joined: Thursday 12 May 2016 15:48
Target OS: Raspberry Pi
Domoticz version: 3.8771
Location: Sweden
Contact:

Re: NMA exceeded the maximum number of API calls per hour allowed

Post by HenFre » Saturday 13 January 2018 2:13

Now I have found out what creates the problem. It is not LUA and it is not dzVents.

When I replace this:
2018-01-13 NMA 1.JPG
2018-01-13 NMA 1.JPG (151.49 KiB) Viewed 155 times

with this:
2018-01-13 NMA 2.JPG
2018-01-13 NMA 2.JPG (64.03 KiB) Viewed 155 times
The problem disappears.
Domoticz on Raspberry PI 3 since 2016.

zicht
Posts: 182
Joined: Sunday 11 May 2014 11:09
Target OS: Windows
Domoticz version: 3.8xxx
Location: NL
Contact:

Re: NMA exceeded the maximum number of API calls per hour allowed

Post by zicht » Saturday 13 January 2018 10:20

HenFre wrote:
Saturday 13 January 2018 2:13
Now I have found out what creates the problem. It is not LUA and it is not dzVents.
The problem disappears.
Well i only use Lua, (no notification are set at all on switches or sensors) :

Code: Select all

				commandArray[#commandArray + 1] = {['SendNotification'] = notific }
Still have the problem.
If i use the NMA site to send a notification (premium unlimted account !) i have no problems at all
When i look a the api and construct an URL request with another APP name than domoticz it works fine.
When i do the same with APP name domoticz sometimes it works, sometimes i get the code for exceed max number notifications.
Maybe something has changed on the backend of NMA ?

QUite anoying.
So i am working in spare time to transfer NMA messages to LUA with curl to get some reliability again.

something like this works in plain lue (=not dzevents)

Code: Select all

		local Link = "https://www.notifymyandroid.com/publicapi/notify?apikey="
		local apikey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
		local Application="MySmartHome"  --header
		local Event=Subject
		local Description=notific
		local Priority="0"
		local url=Link..apikey.."&application="..Application.."&event="..Event.."&description="..Description.."&priority="..Priority
	    	local feedback=assert(io.popen('start /b /realtime curl.exe "'..url..'" &'))
No errors whatsoever till now. It is not the best way to do, but as a quick&dirty solution fine for me.
Rpi & Win x64. Using : cam's,Nest,RFXCom,Kaku,LaCrosse,RFY,IsAlive,Dummy,Wether Underground, standard Lua, Curl on windows,Domoticz Android App & Tasker,

"The only source of knowledge is experience (A.Einstein)"

micha_pr
Posts: 414
Joined: Friday 24 October 2014 12:26
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Germany, Berlin
Contact:

Re: NMA exceeded the maximum number of API calls per hour allowed

Post by micha_pr » Saturday 13 January 2018 21:34

I had same errors with free account since December about.
Additional there was no way to pay for a premium account - so I have tested Pushover - without any problems.
So I have purchased the unlimited version for small money...

Additional - for a free solution I can suggest "Telegram" - this is working very nice.
Michael Pruefer
----------------------------
http://www.zwave-review.com (German only)
http://www.SmartHome.Work (German only)

User avatar
Denny64
Posts: 31
Joined: Friday 03 February 2017 12:34
Target OS: Raspberry Pi
Domoticz version: 3.5877
Location: Italy
Contact:

Re: NMA exceeded the maximum number of API calls per hour allowed

Post by Denny64 » Sunday 14 January 2018 17:28

Due to the NMA problem, i also decided to move to Pushover and for now it works wery well.

I also tested Telegram and it is perfect, but i failed to use different sounds for different priority level.

Has anyone succeeded?

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests