Open meehab opened 3 months ago
Error between keyboard and chair.
Didnt realise I needed to set the config file location in the plugin settings.
I've set up a socketconfig.ini file here;
C:\Users\username\AppData\Roaming\TouchPortal\plugins\Websocket Plugin
I've set the URL and an event as follows;
[NodeRed] ## Specify the servers URL here, since this is a socketIO server this should begin with http:// socketURL = "http://192.168.1.199:1880/touchportal" [NodeRed.events.event1] eventName = "10secHeartbeat" eventParse = "time"
I would expect this to auto-connect when TouchPortal starts up and those events should appear in TP Events->Event Settings-?Event dropdown? None of this happens for me. Any tips?
(I also tried 'ws://' as the protocol as that's what I use inside the plugin on a button to successfully send a message. No joy).
It would be useful to include the location of the socketconfig.ini file inside the file as a comment.
In regards to sending a message to the http server, currently this is not possible, you can however send via websocket but that wont help in your scenario.
I am working on an update that can allow sending messages to it though.
When it comes to the config file, seems like you found a solution but I believe we should be able to have the config in other places so this is likely an error/issue that needs resolved in the next update as well.
No worries on http. I was just trying that protocol when WS wasn't working.
I made a boo boo in setting the config file location. I included the path within quotations and it broke my Touch Portal install. When I restarted, I got a message indicating there was no main page. Checking the newly created folder that contained the .ini file, I noticed that Touch Portal app was installing runtime directories there and 'lost' its link to the initial install directory. I found it odd that a misconfigured plug in setting could break the entire application like that! I'm just learning for now, so will eventually uninstall and reinstall.
So far, I've managed to connect to and have a button send a message to a WS listener I've built in Node Red. However, I'm having a devil of a time trying to send a message back. I cannot fathom how to have TouchPortal 'listen' for WS incoming messages.
Is there a clear, 1 page document somewhere that shows examples of how each pugin action is supposed to work? I'm currently trawliong through months and months of Discord messages, which is no fun at all.
unfortunately there is not any video created for this yet... Plugin was made one day randomly after a user requested such functionality and I just whipped it up :P
feel free to tag me in the discord and ask any questions you might have. We have a channel specifically for the websocket plugin
I've set up a socketconfig.ini file here;
C:\Users\username\AppData\Roaming\TouchPortal\plugins\Websocket Plugin
I've set the URL and an event as follows;
I would expect this to auto-connect when TouchPortal starts up and those events should appear in TP Events->Event Settings-?Event dropdown? None of this happens for me. Any tips?
(I also tried 'ws://' as the protocol as that's what I use inside the plugin on a button to successfully send a message. No joy).
It would be useful to include the location of the socketconfig.ini file inside the file as a comment.