Forum Replies Created
-
AuthorPosts
-
Hennie_Kotze
ParticipantOk It seems like I figured it out…
When I get ID and name of the chat, it was my ID and Chat with the bot itself.
Once I added the bot to the group, I had to subscribe to the group as well.
I sent a command 2 with value 1 from the device in the communicator, and the subscription mode went to “on”. I then sent /START <Password> from my phone to the GROUP, not the bot… The group then added my subscription, and VOILA!!
Regards,
Hennie_Kotze
ParticipantGood Day,
If I may jump into this thread… I think my query is related…
1. I installed telegram and completed the setup.
2. I created the new bot, and added it to a new group
3. I received a bot token
4. I registered the driver
5. Received ID and Chat number using the messenger, then added that to the device configuration form
6. Created input and output channels for the device
7. upload configuration and restart services
8. Line state is running normal.Current device tags data
+——–+——————–+——-+———+
| Signal | Name | Value | Channel |
+——–+——————–+——-+———+
| 1 | Sent notifications | 0 | 301 |
+——–+——————–+——-+———+
| 2 | Subscription mode | Off | 302 |
+——–+——————–+——-+———+LINE LOG:
2022-01-27 06:34:46 Communication session with the Device 3 “TELEGRAM”, type: KpTelegram
Send request:
https://api.telegram.org/bot5130888050:AAHJ2DkMmBBclVW7nQ69YFM30SUpD2zOI5Y/getUpdates?offset=7504815&timeout=5&allowed_updates=message
Received response:
{“ok”:true,”result”:[]}9. I can send a standard command 2 with value 1, and then the subscription mode changes to “ON”. However, I dont know if this is correct, because the manual says this step is obsolete.
10. If I send a binary command stating the chat group name and the text ( <Chat group Name> ; Hello World ), then the commands show an error for each command I try to send.
Comm. sessions (total / errors) : 547 / 0
Commands (total / errors) : 2 / 1
Requests (total / errors) : 548 / 02022-01-27 06:44:13 Command to the Device 3 “TELEGRAM”, type: KpTelegram
Subscription with name telegram test group is missingAny Idea what I’m doing wrong here?
Regerds,
Hennie_Kotze
ParticipantThank you,
I’ll play around with it until I get it to work… At least now I’m on the right path!
Tell me, is there a way we can swop the direction of the event messages around? Instead of having the latest event appear at the bottom, can we change it to appear at the top?
Regards,
Hennie_Kotze
ParticipantMikhail,
I finally found the settings in the dictionaries, under the tabs “UNITS”, “EVENT TYPES”….
Now the event description is working!!
Please just give me an example of the formula used to change the state of a channel, so I can assign the correct colours to the events as well.
Regards,
Hennie_Kotze
ParticipantThanks Mikhail,
I’m making progress at least…. I created the channels and used the different states to change colour. It works well.
I just cant figure out how to create my own custom unit… I dont see any option for that… All options I see in the units table are the pre defined units, and they dont include a “Custom Unit” selection…
Do I have to create a seperate channel as TEXT format and use a formula to do it?
Regards,
Hennie_Kotze
ParticipantThanks for the advice,
But I’m still struggling with this one a bit…
I can edit the channel properties like this:
Quantity = STATE
Format = ENUM TEXT
Unit = ON / OFF
Upper Alarm Limit = 2The description indicates the following:
Channel Value = 3 / Event Description “Alarm High: ON” / Colour of text is green
Channel Value = 2 / Event Description “Normal: ON” / Colour of text is green
Channel Value = 1 / No Event
Channel Value = 0 / No EventIf I transition the channel value from 3 down to 0, then the description is “Normal:OFF” and it’s in red…
Is this correct, or did I not configure it correcty?
Perhaps I did not understand the point number 2 in your reply correctly??
Is there any way I can add my own text to display as the event description?
Regards,
Hennie_Kotze
ParticipantThanks,
Works like a charm! 🙂
Regards,
Hennie_Kotze
ParticipantThanks Mikhail,
It works like a charm.
Thanks for the help!
Regards,
Hennie_Kotze
ParticipantThanks Manjey,
I dont fully understand how to use that…. which channel do I use to run this formula?
Do I create a channel to the PC so I can insert the formula in that channel? I want to use the system date and time from the PC… How do I get a channel for it?
Regards,
Hennie_Kotze
ParticipantMikhail,
Thank You for the response.
Let me test it and I’ll revert back to you if I struggle.
Regards,
Hennie_Kotze
ParticipantThanks,
https://rapidscada.org/ is working perfectly.
Do you have any notes on requirements for URL’s to see camera feeds? Will RTSP stream URL’s work or not?
Regards,
Hennie_Kotze
ParticipantHi tranduong257,
Sorry I did not encounter any of those errors… I Whish I could be of more assistance but I cant, sorry.
Regards,
Hennie
Hennie_Kotze
ParticipantHi tranduong257,
I did manage to get it working yes, but I don’t have that project with me at the moment, I will have to create a new one if I want to remember how I did it.
What are you struggling with?
Regards,
Hennie_Kotze
ParticipantDear @arvxn01,
In my case I had to request my service provider (Vodacom) to change my restricted APN to UN-restricted. Even while using noip, it did not work through the restricted APN.
Hope it helps??…….
Regards,
February 25, 2020 at 6:45 am in reply to: simple Formula that compares an Integer or real and returns Boolean #6556Hennie_Kotze
ParticipantThank You Guys…
The channel 60 is defined as a REAL, but I’m actually just reading one modbus register. The value in this channel is just the decimal representation of the word, and is actually just an Integer….
The first code ” Val(60) == 33 ? 1 : 0; ” works like a charm!!
Thank you!!
-
AuthorPosts