False alerts

More
7 years 2 months ago #3573 by mw0uzo
Replied by mw0uzo on topic False alerts
What software are you using to send the data?

Please Log in or Create an account to join the conversation.

More
7 years 2 months ago #3574 by ianatkin
Replied by ianatkin on topic False alerts

What software are you using to send the data?

I'm sending it from Node Red using this url:
http://radmon.org/radmon.php?function=submit&user=user&password=pass&unit=CPM&value={{{payload}}}
Where {{{payload}}} is the numerical value. Do I need to add additional parameters to the string?

Please Log in or Create an account to join the conversation.

More
7 years 2 months ago - 7 years 2 months ago #3576 by mw0uzo
Replied by mw0uzo on topic False alerts
Ok I have found why its not working.
The string {{{payload}}} is being sent as 33CPM instead of 33.
This causes the value to be evaluated as a string instead of a number, which screws up the comparison of the CPM against the alarm value, which is why radmon.org alarms on every value.

Change your code to eliminate the 'CPM'.
Last edit: 7 years 2 months ago by mw0uzo.

Please Log in or Create an account to join the conversation.

More
7 years 2 months ago #3577 by ianatkin
Replied by ianatkin on topic False alerts

Ok I have found why its not working.
The string {{{payload}}} is being sent as 33CPM instead of 33.
This causes the value to be evaluated as a string instead of a number, which screws up the comparison of the CPM against the alarm value, which is why radmon.org alarms on every value.

Change your code to eliminate the 'CPM'.

Well I feel stupid now... :oops:
Have changed the code and reverted back to the original account, can you delete the ianatkin2 account please

Sorry about that

Please Log in or Create an account to join the conversation.

More
7 years 2 months ago #3578 by mw0uzo
Replied by mw0uzo on topic False alerts
No worries, it had me scratching my head for a little while, as I had taken a look at the http request and overlooked the extra CPM. Didn't notice it until I went back and checked again.

Please Log in or Create an account to join the conversation.

Moderators: Gamma-Man
Time to create page: 0.229 seconds
Powered by Kunena Forum
Everything's free. Please support us by considering a donation. Log in first!
Solar powered Raspberry Pi 4 server stats: CPU 40% Memory 22% Swap 70% CPU temp=50.6'C Uptime 72 Days