I'd like to use NodeBrain as a server like in the tutorial, but I'd like to use a client which is not NodeBrain, currently it would be Python...
First of all, is that possible at all?
Second, what kind of connection should I use in Python (generally in the client language) to be able to give the key to connect to the server?
Thanks,
Gergő Pintér
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
While it would be possible to write a client for the NodeBrain Peer module server, I don't recommend it for these reasons: 1) it is not a standard protocol, 2) the Peer module will probably switch to TLS, which would impact your client, and 3) there is most likely an easier way to communicate with NodeBrain to address your need.
I can probably recommend an alternative, but first let's make sure I understand your requirement.
1) Would your Python client need to connect to a remote NodeBrain agent, or would the client be on the same server as the agent?
2) Does your client just need to supply information to your NodeBrain agent, or do you need an interactive session like you get when using NodeBrain as the client?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In a nutshell, I need a rule based server, and a remote client which sends data. According to the rules defined in the server side I need to "answer" and log.
This client is an end-user app, that will be written in a general purpose language: Java, C# or whatever, it is not decided yet.
This project is in analysis phase now, I'm just searching for a suitable solution. NodeBrain may not be designed for that kind of task I want to use, but it seems suitable for me according to the language reference and I really like the possibility to call any system command when a rule is fired.
A standard protocol would be better, because I don't like the idea to use NodeBrain on client side controlled by another application. Though, the inverse is not so bad: writing a client based on some standard protocol and also write a server side application which communicates with the client and somehow fowards the data to NodeBrain.
To answer your questions directly:
1) I need a remote connection.
2) I beleive I need an interactive connection.
Regards,
Gergő
Last edit: Ed Trettevik 2013-04-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In that case, take a look at the Webster node module. It will enable you to communicate with NodeBrain via HTTPS. NodeBrain is not currently designed to provide structured answers to questions, so you will have to "scrape" the HTML returned if you need you program to consume it. You can try the Webster tutorial using a browser as your client. Then, if it seems like a reasonable approach, you can build your Python client using HTTPS.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey,
I'd like to use NodeBrain as a server like in the tutorial, but I'd like to use a client which is not NodeBrain, currently it would be Python...
First of all, is that possible at all?
Second, what kind of connection should I use in Python (generally in the client language) to be able to give the key to connect to the server?
Thanks,
Gergő Pintér
While it would be possible to write a client for the NodeBrain Peer module server, I don't recommend it for these reasons: 1) it is not a standard protocol, 2) the Peer module will probably switch to TLS, which would impact your client, and 3) there is most likely an easier way to communicate with NodeBrain to address your need.
I can probably recommend an alternative, but first let's make sure I understand your requirement.
1) Would your Python client need to connect to a remote NodeBrain agent, or would the client be on the same server as the agent?
2) Does your client just need to supply information to your NodeBrain agent, or do you need an interactive session like you get when using NodeBrain as the client?
In a nutshell, I need a rule based server, and a remote client which sends data. According to the rules defined in the server side I need to "answer" and log.
This client is an end-user app, that will be written in a general purpose language: Java, C# or whatever, it is not decided yet.
This project is in analysis phase now, I'm just searching for a suitable solution. NodeBrain may not be designed for that kind of task I want to use, but it seems suitable for me according to the language reference and I really like the possibility to call any system command when a rule is fired.
A standard protocol would be better, because I don't like the idea to use NodeBrain on client side controlled by another application. Though, the inverse is not so bad: writing a client based on some standard protocol and also write a server side application which communicates with the client and somehow fowards the data to NodeBrain.
To answer your questions directly:
1) I need a remote connection.
2) I beleive I need an interactive connection.
Regards,
Gergő
Last edit: Ed Trettevik 2013-04-18
In that case, take a look at the Webster node module. It will enable you to communicate with NodeBrain via HTTPS. NodeBrain is not currently designed to provide structured answers to questions, so you will have to "scrape" the HTML returned if you need you program to consume it. You can try the Webster tutorial using a browser as your client. Then, if it seems like a reasonable approach, you can build your Python client using HTTPS.
Thank yo,, I'll try it.
Gergő