Broadband-Hamnet™ Forum :: Applications
Welcome Guest   [Register]  [Login]
«StartPrev123NextEnd»
 Subject :HamChat Server.. 2012-11-18- 02:22:34 
VE3NKL
Member
Joined: 2012-10-11- 19:05:25
Posts: 3
Location

I had a chance to connect my node to a small mesh network during the YRARC Hamfest in Markham, ON. It was exciting. However, I realized that the biggest issue with mesh network is at the application level. We got connected and now what ? Can I pick up the mic and start talking ? VOIP is great but I thought that having some simple way of communicating right after connecting would be extremely useful.

What I came up with is a simple chat server that can run on the router itself and does not require any special client software except the regular web browser. So far I tested it with IE 6, 7 and firefox 13. Feel free to give it a try. Your feedback is always welcome.

Nikolai



Attachments
 hamchat.zip [8 KB]
IP Logged
Last Edited On: 2012-11-18- 09:24:31 By VE3NKL for the Reason
 Subject :Re:HamChat Server.. 2013-01-08- 03:59:58 
n7wwk
Member
Joined: 2012-12-02- 12:37:42
Posts: 9
Location: Putnam Co Fl - EL99EP
 

Works Great Easy to set up very small foot print. Time stamp would be nice.


73 Bob n7wwk

IP Logged
 Subject :Re:Re:HamChat Server.. 2013-01-26- 20:44:09 
K1NDT
Member
Joined: 2013-01-27- 01:34:55
Posts: 1
Location

For a quick and dirty time stamp I change line 157 in the hamchat.pl file to the following:

printf FILE '<p><span class="callsign">' . $name . ':</span><span class="date">' . localtime() . ':</span><span class="message">'. special_chars($msg) . '</span></p>' . "\r\n";

I then added the following to the styles.css file to make the time stamp slightly smaller and a different color:

.date {

padding-left: 2px;

padding-right: 5px;

font-family: "arrial-narrow", arial, sans-serif;

font-size: 14px;

color: #FF00FF;

}


If your router is connected to the internet it will pick up utc time while booting, if not, it will be some random time.  If the correct time is important you will need to ssh into the router and change it manually as there is no way to do it from the web interface. The command is: date MMddhhmmyyyy (Month, day, hour, minute, year)

This is how the time stamp will appear in the chat server as well:

K1NDT: Sun Jan 27 09:06:11 2013: testing

Hope this helps.

This worked well on Safari on my Mac as well as IE9 on a windows 7 machine.

Many thanks to VE3NKL for this.

Scott K1NDT 



[n7wwk 2013-01-08- 03:59:58]:

Works Great Easy to set up very small foot print. Time stamp would be nice.


73 Bob n7wwk


IP Logged
 Subject :Re:HamChat Server.. 2013-02-01- 09:09:22 
KD4E
Member
Joined: 2012-07-29- 13:39:05
Posts: 55
Location: Nevils in SE-Georgia, USA
 

For some reason Quick Reply always fails with Request Forbidden, sigh.

Hamchat is a really important event in the life of HSMM-Mesh- especially when trying to demo the value-added potential.


Two apps that would be uniquely suited to the bandwidth and resilience of HSMM-Mesh:


1. Image transfer (single images good, streaming video a bonus).

2. 2-Way streaming audio (for SSB rig operation - linked to a control app like flrig)

Thanks!

IP Logged
Last Edited On: 2013-07-23- 12:34:52 By KD4E for the Reason
 Subject :Re:HamChat Server.. 2013-02-01- 17:23:05 
K5KTF
Admin
Joined: 2010-01-18- 23:04:04
Posts: 266
Location: 5' from this webserver
  

If you use Rusty's IRCD pckage and IRC chat, you can send files and photos through it's interface. And it fits on any version hardware.

Im trying to figure out good duplex audio myself, as I now have TWO USB nodes, each with a USB sound card attached ($3.50 for both slo-boat-from-china specials). I would like to be able to tx/rx audio from my 897, since I can control it via ser2net and HRD over serial/USB.  Just need the audio solution.


73

KTF


IP Logged
B-) Jim K5KTF EM10bm Cedar Park, TX :star:
 Subject :Re:HamChat Server.. 2013-02-02- 09:20:52 
VE3NKL
Member
Joined: 2012-10-11- 19:05:25
Posts: 3
Location

I agree, having audio application sounds like the next natural step. I did some research on what could be used here and my first choice was looking at ECHOLINK. Imaging that we have a local ECHOLINK directory server on one of the routers. In this case every PC connected to the mesh network could run an ECHOLINK client the same way it is done on the actual global ECHOLINK network.

Unfortunately, their server software is not open-source as well as the protocol they use is not published. There was an old ECHOLINK linux-based client (which I tried on the actual ECHOLINK system with a great success): QTEL. You can google for SVXLINK for more information on it. I wrote a small function-limited directory server that supports a small subset of the ECHOLINK directory protocol, enough for QTEL to communicate with it. The server is written in LUA (I could not get it done in micro-pearl). LUA can be installed on the router without any problems, it has a fairly small footprint. When the server is running on the router QTEL clients could connect to it and see all who is currently connected. Then you can initiate a two-way audio connection with any of the connected clients.

Note that the server is not necessary as as far as I remember you could use an IP address of the target client directly. However, the server makes it much more convenient to use. Unfortunately, it does not support more sophisticated clients like ECHOLINK for windows, etc.

May be we can start a new thread on this if anyone has interest in it and some good ideas.

73, Nikolai

VE3NKL

IP Logged
 Subject :Re:HamChat Server.. 2013-02-06- 12:05:21 
KD4E
Member
Joined: 2012-07-29- 13:39:05
Posts: 55
Location: Nevils in SE-Georgia, USA
 
Wow, another exciting piece of progress! Any thoughts as to how you might tie-in control-data e.g. as found in flrig (remote rig app) to switch bands, modes, rx volument, and PTT and to display the rig-interface on the host PC?
IP Logged
 Subject :Re:HamChat Server.. 2013-05-02- 17:44:56 
w5cwt
Member
Joined: 2013-04-12- 14:16:38
Posts: 7
Location: Henderson, Texas
Really like the HamChat idea. I had played ith this idea, but gave up and installed an IRC server. But I still like the idea of a simple chat interface that requires nothing additional like config fields or client software. Installed it on my node and works great. Made the time stap modification per K1NDT but I used substr() to limit it only to the time. Also changed it to a gray which I liked better than purple. But that's just me! Also modified the node's status page with a link directly to the hamchat script so users could just click and not have to type in the long-form address. I placed it between the help link and the refresh button.
IP Logged
 Subject :Re:HamChat Server.. 2013-05-02- 18:08:44 
K5KTF
Admin
Joined: 2010-01-18- 23:04:04
Posts: 266
Location: 5' from this webserver
  

If you look under Applications, I did it.

Basically, I used ser2net on the node, Perle TruePort on a Windoze box (serial to IP driver), then tell Ham Radio Deluxe to use that serial port.

For Audio, I basically built a phone patch with an ATA adapter on it at the rig, tied to my Asterisk system, for the audio. I call that extension and it auto-answers and voila... full duplex audio.

HRD has a TX button, so I could TX/ RX, control the rig completely, and have voice.

73!

KTF


IP Logged
B-) Jim K5KTF EM10bm Cedar Park, TX :star:
 Subject :Re:HamChat Server.. 2013-06-03- 06:13:53 
KC7NEC
Member
Joined: 2012-02-07- 11:50:40
Posts: 17
Location
I just installed this and having some problems.... I can pull up the page but the chat box just flashes and never will print any text?
IP Logged
 Subject :Re:HamChat Server.. 2013-06-29- 05:48:45 
KY6M
Member
Joined: 2012-03-02- 11:44:43
Posts: 9
Location

I just wanted to say thanks for the awesome chat room! (and to others who donated additional info for this app.) I am trying encourage others to make a mesh in my area and this provides a quick high value addition to spur interest.


Jim

IP Logged
Last Edited On: 2013-06-29- 06:13:05 By KY6M for the Reason
 Subject :Re:HamChat Server.. 2013-06-29- 06:14:12 
K5KTF
Admin
Joined: 2010-01-18- 23:04:04
Posts: 266
Location: 5' from this webserver
  
To the right of the port forwarding, you type in the name of what the link will be/show (I have IRC CHAT as mine), then check the box to make it a clickable link, then irc before the ://NODENAME and finally after the : 6667 for the port, leaving the box after the last / blank KTF
IP Logged
B-) Jim K5KTF EM10bm Cedar Park, TX :star:
 Subject :Re:HamChat Server.. 2013-06-30- 18:22:43 
ae5ae
Member
Joined: 2010-10-27- 00:47:17
Posts: 144
Location: Van Alstyne, TX
Actually, you can place a channel/room name in the last box to go directly to a specific channel. The default config sets up a persistent chat channel of #mesh and thus it will always be available. Just put 'mesh' (no quotes and no octathorpe/hash/pound sign) in the last box. -Rusty-
IP Logged
 Subject :Re:HamChat Server.. 2013-07-01- 04:40:19 
KY6M
Member
Joined: 2012-03-02- 11:44:43
Posts: 9
Location

Thanks for the reply Jim and Rusty. I finally figured it out after some additional hacking. The room option is cool also, maybe a future alteration.

IP Logged
Last Edited On: 2013-07-01- 04:44:51 By KY6M for the Reason
 Subject :Re:HamChat Server.. 2013-07-23- 12:03:01 
KB2NEA
Member
Joined: 2013-07-19- 01:07:41
Posts: 8
Location
I was going to try Lan Messenger (http://lanmsngr.sourceforge.net/) over a mesh. It's supposedly P2P without need for a central server. But I am wondering if your ham chat code is an even simpler solution. As far as voice, I'm wondering about Mumble. But that generally would need a centralized server.
IP Logged
 Subject :Re:HamChat Server.. 2013-07-23- 12:42:46 
KD4E
Member
Joined: 2012-07-29- 13:39:05
Posts: 55
Location: Nevils in SE-Georgia, USA
 
I'm a little concerned about Ham Radio Deluxe for MS versions of windows users as it's a proprietary commercial app - in mission-critical ARES/emcomm contexts one does not need to be troubled by licensing hassles should hardware fail & need to be substituted in the field. It sure would be nice to have a 100% open source platform-independent solution - as difficult as that goal may seem. Meanwhile, it's encouraging to see these solutions, even if they include an occasional - and optional - non-open source app. Also, I'm interested to hear what KB2NEA discovers re. Lan Messenger and Mumble as I'm unfamiliar with either. 73, David KD4E
IP Logged
 Subject :Re:HamChat Server.. 2013-07-28- 08:47:51 
KB2NEA
Member
Joined: 2013-07-19- 01:07:41
Posts: 8
Location
STUPID QUESTION: I am inferring that the files inside the zip have to be uploaded to the memory of the router? How does one do that? FTP? SSH? something like that? What path should they reside? Thanx! KB2NEA
IP Logged
 Subject :Re:HamChat Server.. 2013-08-04- 13:24:18 
VE3MIC
Member
Joined: 2013-08-03- 14:08:50
Posts: 3
Location: Grid FN04
I believe that I am experiencing the same issue as KC7NEC. That is, we can enter our callsign, and then a chat page is displayed. However, typing text into the text box at the bottom of the screen doesn't appear to do anything. I'm thinking that I may have missed a step. Any suggestions would be most appreciated. Thanks. -Mike
IP Logged
 Subject :Re:Re:HamChat Server.. 2013-08-05- 04:06:06 
KY6M
Member
Joined: 2012-03-02- 11:44:43
Posts: 9
Location







[VE3MIC 2013-08-04- 13:24:18]:

I believe that I am experiencing the same issue as KC7NEC. That is, we can enter our callsign, and then a chat page is displayed. However, typing text into the text box at the bottom of the screen doesn't appear to do anything. I'm thinking that I may have missed a step. Any suggestions would be most appreciated. Thanks. -Mike


------------------------------------------
Did you change the file attributes on the files it said to? (also known as permissions)
IP Logged
 Subject :Re:HamChat Server.. 2013-08-05- 04:41:46 
VE3MIC
Member
Joined: 2013-08-03- 14:08:50
Posts: 3
Location: Grid FN04
Thanks for the reply. I had used chmod to set the permissions on the two files after I copied them. I'll check them again. 73 de Mike
IP Logged
«StartPrev123NextEnd»
Page # 


Powered by ccBoard


SPONSORED AD: