• Python <-> Synchronet

    From High Spirit@VERT to All on Sun Jan 5 00:01:18 2014
    Hey Everyone,

    My Synchronet system is running on one of my Raspberry Pi's. How easy would it be to have Python communicate with Synchronet and vice-versa? I was thinking of
    writing a old-school text based user interface for Synchronet. I also have a 2 line LCD screen with buttons that would be cool to communicate with through Python! :)

    Thanks in advance.

    High Spirit


    ---
    þ Synchronet þ Digital Creation BBS -- bbs.digitalcreationbbs.com
  • From echicken@VERT to High Spirit on Sun Jan 5 00:39:29 2014
    Re: Python <-> Synchronet
    By: High Spirit to All on Sun Jan 05 2014 00:01:18

    My Synchronet system is running on one of my Raspberry Pi's. How easy would it be to have Python communicate with Synchronet and vice-versa? I

    What do you want Synchronet to communicate to your Python application, and what do you want it to communicate to Synchronet? Anything's possible, but ease depends on the task in question (and how much you know about what will be required to complete it.)

    was thinking of writing a old-school text based user interface for Synchronet. I also have a 2 line LCD screen with buttons that would be cool to communicate with through Python! :)

    I'm guessing that you want to create some kind of sysop's console to work with this hardware, is that the case? What capabilities do you want it to have?

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Digital Man@VERT to High Spirit on Sat Jan 4 22:23:19 2014
    Re: Python <-> Synchronet
    By: High Spirit to All on Sun Jan 05 2014 12:01 am

    Hey Everyone,

    My Synchronet system is running on one of my Raspberry Pi's. How easy would it be to have Python communicate with Synchronet and vice-versa? I was thinking of writing a old-school text based user interface for Synchronet.
    I also have a 2 line LCD screen with buttons that would be cool to communicate with through Python! :)

    Your Python programs can use stdio to interface with the user and Synchronet's terminal server (Telnet, SSH, RLogin) supports redirection of stdio from native
    programs, so that'd work for shelling out from the BBS to a Python "door" type program. Is that what you had in mind?

    I have no idea what you want to do with the LCD screen or what that would have to do with Synchronet, but go for it!

    digital man

    Synchronet "Real Fact" #62:
    "Baja" (name of Synchronet PCMS compiler/languege) is pronounced "ba-ha". Norco, CA WX: 58.1øF, 67.0% humidity, 0 mph SSE wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Ragnarok@ragnarok@docksud.com.ar to High Spirit on Sun Jan 5 14:33:30 2014
    El 05/01/14 02:01, High Spirit escribió:
    Hey Everyone,

    My Synchronet system is running on one of my Raspberry Pi's. How easy would it
    be to have Python communicate with Synchronet and vice-versa? I was thinking of
    writing a old-school text based user interface for Synchronet. I also have a 2
    line LCD screen with buttons that would be cool to communicate with through Python! :)

    Thanks in advance.

    High Spirit


    ---
    � Synchronet � Digital Creation BBS -- bbs.digitalcreationbbs.com

    You can include python.h and create objects in C then, you can launch a
    python script from the sbbs process just like actual javascript
    implementation. The hard part is create again all sbbs objects to expose
    as python objects.


    i begin a project. but i have no time (as knowledge too) to continue .

    some code you can found here:

    http://code.google.com/p/pysbbs/source/detail?r=13
  • From High Spirit@VERT to echicken on Sun Jan 5 12:59:06 2014
    Re: Python <-> Synchronet
    By: echicken to High Spirit on Sun Jan 05 2014 12:39 am

    What do you want Synchronet to communicate to your Python application, and what do you want it to communicate to Synchronet? Anything's possible, but ease depends on the task in question (and how much you know about what will be required to complete it.)

    Well, for the LCD screen, showing status like # of callers (although these days, # of callers is not much...), if there is any feedback or mail to the sysop. Maybe able to have a way to turn off feature of the bbs. (ie. Sysop Available, New User Logons, etc).

    I'm guessing that you want to create some kind of sysop's console to work with this hardware, is that the case? What capabilities do you want it to have?

    Yeah, a sysop's console exacly. It would be nice to have it display bbs stats. Enable/disable bbs features. I have some ideas from old BBS consoles from years
    gone by that I'd like to implement.

    I was thinking that I could add a script that runs at user logoff that would create a text file with various information (caller data, posts, etc) and then call a Python script to read the values and process them from there (send to LCD or Sysop's console if it is running).

    High Spirit


    ---
    þ Synchronet þ Digital Creation BBS -- bbs.digitalcreationbbs.com
  • From Mro@VERT to High Spirit on Sun Jan 5 12:02:17 2014
    Re: Python <-> Synchronet
    By: High Spirit to All on Sun Jan 05 2014 12:01 am

    thinking of writing a old-school text based user interface for Synchronet.
    I also have a 2 line LCD screen with buttons that would be cool to communicate with through Python! :)



    should work find since you could redirect the output.
    what happens if someone exits out of the shell, though. would they be at your cli where they could do some damage?
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services
  • From High Spirit@VERT to Digital Man on Sun Jan 5 13:09:22 2014
    Re: Python <-> Synchronet
    By: Digital Man to High Spirit on Sat Jan 04 2014 10:23 pm

    Your Python programs can use stdio to interface with the user and Synchronet's terminal server (Telnet, SSH, RLogin) supports redirection of stdio from native programs, so that'd work for shelling out from the BBS to a Python "door" type program. Is that what you had in mind?

    Yeah, sounds about right. Think I am going to need to play around with BAJA and
    Javascript some to understand how everythig works. I did some BAJA when I was first playing with Synchronet back in 2008, but I don't remember much since then. :)

    I have no idea what you want to do with the LCD screen or what that would have to do with Synchronet, but go for it!

    Not completly sure either. I have been playing around with the Python script is
    uses to communicate with and doing quite a bit on the linux side, but thought it would be kinda cool to have it display last caller, # of messages or something else from the BBS. :)

    -- High Spirit

    ---
    þ Synchronet þ Digital Creation BBS -- bbs.digitalcreationbbs.com
  • From High Spirit@VERT to Ragnarok on Sun Jan 5 13:11:12 2014
    Re: Re: Python <-> Synchronet
    By: Ragnarok to High Spirit on Sun Jan 05 2014 02:33 pm

    You can include python.h and create objects in C then, you can launch a python script from the sbbs process just like actual javascript implementation. The hard part is create again all sbbs objects to expose
    as python objects.

    i begin a project. but i have no time (as knowledge too) to continue .
    some code you can found here: http://code.google.com/p/pysbbs/source/detail?r=13


    Thank you! Will definitly check this out! :)

    -- High Spirit

    ---
    þ Synchronet þ Digital Creation BBS -- bbs.digitalcreationbbs.com
  • From Fireball@VERT to Digital Man on Sun Jan 5 13:15:40 2014
    Re: Python <-> Synchronet
    By: High Spirit to All on Sun Jan 05 2014 12:01 am

    Hey Everyone,

    My Synchronet system is running on one of my Raspberry Pi's. How easy would it be to have Python communicate with Synchronet and vice-versa? I was thinking of writing a old-school text based user interface for Synchronet. I also have a 2 line LCD screen with buttons that would be cool to communicate with through Python! :)

    Your Python programs can use stdio to interface with the user and Synchronet's terminal server (Telnet, SSH, RLogin) supports redirection of stdio from native programs, so that'd work for shelling out from the BBS to a Python "door" type program. Is that what you had in mind?

    I have no idea what you want to do with the LCD screen or what that would have to do with Synchronet, but go for it!


    It kind of sounds like he wants to get some quick stats and.or get user
    connect messages from Sych through the LCD. At least, that's what I'd want to do with it.

    You can always build a local JSON server (not open to the net) and pull the info from there with python and shove it over to the LCD. Just a thought.

    -=Fireball=-

    ---
    þ Synchronet þ Fi