False alerts
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.
7 years 2 months ago #3574
by ianatkin
Where {{{payload}}} is the numerical value. Do I need to add additional parameters to the string?
Replied by ianatkin on topic False alerts
I'm sending it from Node Red using this url:What software are you using to send the data?
http://radmon.org/radmon.php?function=submit&user=user&password=pass&unit=CPM&value={{{payload}}}
Please Log in or Create an account to join the conversation.
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'.
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.
7 years 2 months ago #3577
by ianatkin
Have changed the code and reverted back to the original account, can you delete the ianatkin2 account please
Sorry about that
Replied by ianatkin on topic False alerts
Well I feel stupid now...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'.
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.
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