Detailed information and installation instructions can be found here:
http://www.trevorsbench.com/meshchat-messaging-for-mesh-networks/
Installation is the same for v0.7b1 as in the blog post link above. Doc and blog post will be updated when beta is finished. Just change the files for these ones:
AREDN Node: https://s3.amazonaws.com/aredn/meshchat_0.7b1_all.ipk
Raspberry Pi: https://s3.amazonaws.com/aredn/meshchat_0.7b1_all.deb
This is a BETA version. Bugs guaranteed. Please try it and let me know what you find. This will place nicely with v0.6. v0.6 will display all messages regardless of channel from v0.7.
**** Raspberry Pi / Debian / Linux Users ****
After you install the package you need to edit this file:
/usr/lib/cgi-bin/meshchatconfig.pm
These 2 lines at the bottom:
our $pi_zone = 'MeshChat'; our $local_meshchat_node = 'k7fpv';
$pi_zone is the zone that mesh chat should sync with. Zones are described in the release notes below.
$local_meshchat_node is a AREDN node on your mesh running mesh chat v0.7. The Pi queries this node to get the node list it should poll for the zone it belongs too.
Once those config file changes are made, restart the daemon:
sudo /etc/init.d/meshchatsync stop sudo /etc/init.d/meshchatsync start
So to run mesh chat on a Pi you need to have the same version of mesh chat installed on a AREDN node somewhere on your mesh.
Release Notes:
Zones: You can now have segmented mesh chat databases on a single mesh. Mesh chat looks up the service name it has been given in OLSR. The default is MeshChat. It will only sync with other nodes / pi's that share the same service name. Now you can setup SoCalMeshChat, UtahMeshChat, etc and only the nodes with the same service name will sync with each other. Now when you tunnel into another mesh you won't dump your whole message db into their mesh chat, unless of course you share the same service name.
Change max message db size from bytes to 500 max messages: There was some issues when the db would get full, the whole db would get sent over every sync since the version did not match. To make things simple and robust all message db's are limited to 500 messages so when it is full, the quick version check works properly. Message db's are now stored in sorted order as part of this change too.
Added channels: You select or create a new channel when you send a message. You can select the drop down filter at the top of the message pane to select which messages to display. All message db's contain messages from all channels. They are filtered client side with the display filter.
Action scripts: Action scripts are only supported on the Pi version. This is pretty much done but needs more testing. If you feel adventurous you can add a line in /etc/meshchat_actions.conf You can read the comments in that file on what kind of matches you can do. I have a SMS gateway and archive working. More details and code to come.
minor rendering issue on the files page...
(Using the IPK file on AirRouter HP)
another wierd css issue. Looks normal on Chrome (OSX) and Safari (OSX), but, Firefox is cutting off the dropdown text:
I have one instance on an M2 node and one on the PI which is plugged into a different node (another M2 on the same mesh)
I have the PI zone as 'MeshChat' and the node that the Pi uses as the M2 unit mentioned above.
On the STATUS page I am seeing a different collection of stations between the two meshchat windows even though I have "everything" selected in both.
The M2 nodes has all lower case lettering whereas the PI has a mixture of upper case and lower case.
But the set of stations really is different between the two...and that is kind of reflected in the chat window.
Nothing I send in the PI new-message window comes out anywhere. I show up as a user only in the PI window. But I do not even see my own messages.
I note that the "Updated" number in the Status window always says 0 seconds.
What OS version are you running on your Pi? Do you know what user apache is running under?
ps aux | grep apache
That should tell you. If it is not www-data you will need to change the permission on the /var/www/htm/meshchat dir to that user like this:
chown -R <user> /var/www/html/meshchat
You can also check the apache error log in /var/log/apache2/error.log. Let me know if you see anything in there. Also try clearing your browser cache.
I had to: chown -R asterisk:asterisk /var/www/html/meshchat
Works great now!
I did the "chown" per K5LDQ and now things I send from the PI do appear. (I had done this on the previous version, but I guess the new install wiped that out).
I am running the standard FreePBX distro. http://www.raspberry-asterisk.org/
Reading the instructions for version 0.7 (duh) I see that the service name has to be the same for stations to talk to each other. So I fixed that and made both "MeshChat". I would note that the service name has two capital letters whereas the directory where the web page sits (what you have to use in the link) has all lower case. And, of course, case matters.
So that is a big improvement over last night.
Please note that the situation on the status page is the same: different sets of stations on the PI vs M2. PI is (nearly all capital letters).
and
"Updated:" is always zero (on both versions).
73
root@ke2n-raspbx:~# ps aux | grep apache
asterisk 3523 0.0 0.8 116492 8036 ? S 06:25 0:03 /usr/sbin/apache2 -k start
asterisk 3524 0.0 0.8 116492 8120 ? S 06:25 0:03 /usr/sbin/apache2 -k start
asterisk 3525 0.0 0.8 116516 8052 ? S 06:25 0:03 /usr/sbin/apache2 -k start
asterisk 3526 0.0 0.8 116508 8128 ? S 06:25 0:03 /usr/sbin/apache2 -k start
asterisk 3527 0.0 2.5 122364 24516 ? S 06:25 0:04 /usr/sbin/apache2 -k start
root 25252 0.0 2.5 116292 24324 ? Ss Mar04 0:03 /usr/sbin/apache2 -k start
root 30986 0.0 0.1 4832 1816 pts/0 S+ 09:27 0:00 grep apache
I also made b2 detect what the apache user is and do the permissions correctly.
let us know when b2 condenses out of the amazon cloud ....
I am about ready to give up on the PI. It did manage to send one message after reboot but nothing since. Another reboot did not help. I re-installed b2 and set the config again.I managed to send one message. Eventually I found if I repeated the:
"chown -R asterisk:asterisk /var/www/html/meshchat" instruction, I *might* be able to send one more message.
Then if I repeat the command again, maybe I can send send another message.
So Darryl is probably right about this being a permissions thing. But what is going on?
FWIW - from watching "top" asterisk runs as asterisk in FreePBX.
meshchat (when I can catch it) runs as asterisk.
meshchatsync runs as root.
ls -l /var/www/html/meshchat/db
chmod 666 /var/www/html/meshchat/db/messages.MeshChat
Let me know if that solves it.
no effect. Actually, at some point, I had tried making the entire directory mod 777.
Anyway - still not able to send after the "chmod 666 /var/www/html/meshchat/db/messages.MeshChat"
as before, if I execute chown -R asterisk:asterisk /var/www/html/meshchat
then I can send ONE message.
(sent message here)
https://s3.amazonaws.com/aredn/meshchat_0.7b3_all.deb
good job.
And before you ask
http://www.aredn.org/content/meshchat-v07b2-released
Thanks.
http://www.aredn.org/content/meshchat-v07b3-released
http://www.aredn.org/content/meshchat-v07b4-released-feature-complete