Hello,
I want to send machine status notifications for specific times to another chat application without using web dev module.
So, how to possibale to sent the notification without using web dev module?
Hello,
I want to send machine status notifications for specific times to another chat application without using web dev module.
So, how to possibale to sent the notification without using web dev module?
It's not what the webdev module is for anyway.
Do you have an API you can call ? If so, use system.net.httpClient
How to configure in ignition?
Read the doc, try to do it, and if you can't figure it out come back with a specific question. I can't do your project for you.
I understood it. But, It's new for me. that's why I ask you.
Is any other module required for the notification except web dev module for performing this type task?
If you have an API you can call to send that notification, all you need is the http client. No module required.
If you want to notify alarms, you may want the "alarm notification pipeline" module. I'm not sure if it's included by default, I don't deal with licensing.
If you want to notify events, then where you put your code will depend on the trigger.
If you want to avoid scripting, you might find this free module helpful:
I implement that GitHub YAML file in the ignition gateway. But it's failed. Not executed.
YAML file configuration. I copy that YAML file code from GitHub and add it in the ignition.
Yes, you can by using platform specific API or third-party libraries.
I implement the http.post fucntion in the gateway event script using tag change function. when change the tag value at that time value goes to specific URL which assigned in the script. But, when check the value in the URL and it's found {} this format. No value displayed.
Script
Your event is disabled.
I've temporarily disabled the event because many times I've changed the value it's triggered on and it goes to the URL.
remove the '
around the payload. It shouldn't be a string.
Now It's working.
Value pass in the URL.
Good! Don't forget to mark Pascal's answer as "Solution".
Currently value pass from the tag provider to the URL.
Script
Value receive this format in the URL : {"test_provider":"234.0"}
But, I want to only value should be goes to in the URL instead of the provider name.
So, Is it possibale?
Please post code - not pictures of code and make sure you format it properly. See Wiki - how to post code on this forum. We can't see the whole of the url =
line.
You're mixing everything together and not being very descriptive, so it's seriously difficult to understand what's up.
For your own sake, cut things up into little pieces, describe them, figure out what they should be, what they actually are, what they should do, what they actually do... etc.
Then we'll piece everything back together, once every part is functional.
I want to send the machine status as a notification to the URL with a specific time and format.
For example:
Here, we define a two-time series.
Working Hours: 10:00 AM to 7:00 PM
Non-Working Hours: 7:00 PM to 10:00 AM
Machine data needs to be sent to the URL during non-working hours. When machine value triggers 1 (bool) on non-working hours. (7:00 PM to 10:00 AM)
After getting machine status = 1 a notification should be sent to the URL every hour until the machine status value changes. A notification should not be sent to the URL when a machine status value of 0 is found.
Value format: with timestamp [1 = Machine no.1]
The requires only the value instead of the entire tag path name. Currently, notifications are found in URLs as per this format.
{"test_provider":"234.0"}
test_provider: path name
234.0: value
Only value should be sent in URL.(value format : 234.0)