Hamachi Web Status Images

Update…

Unfortunately, LogMeIn figured out they forgot about that page, I guess when people started reading this post and hitting it on their servers. They have removed the text status as well as all the others, and I can’t figure out why they would do such a thing.

I’m also not sure what they’re offering as an alternative either. So if you know, please leave a comment below. Thanks.

Depreciated Process…

A while back, I started a project called tsn.lcl or tsnlocal, but gave up on it when my electricity bill hit $400 in a month.

Today, I decided to fix up the domain name and get it back on the internet – at least to remove it from GoDaddy’s Parking Page – where they’re making money, not me, off of it.

When I got it published I noticed that none of the Hamachi Web Status images worked anymore, and that the link to such an image, redirected to their login page for your Hamachi Management Dashboard. However, upon further investigation, I found that there was not only an Image version of those status instances, but also a text version.

I really wanted to show the online status of all my machines again, so I wrote my own php script to parse that text data, and created some simple images to show on the website based on the returned status.

So here’s the code so you can do the same thing…

The PHP Function

{code type=php}<?php
function hamachiImg($ip) {
$url = “https://my.hamachi.cc/status/text.php?$ip”;
$status = file_get_contents($url);
$status = preg_replace(‘/\d*\.\d*\.\d*.\d* /’, ”, $status);
$image_url = “./images/$status.png”;
return $image_url;
}
?>{/code}
This code creates a $url variable with the address to the text status, based on the $ip that is passed to it. Then it requests the data, removes the ip address and the trailing space, leaving only the status text. On the server, I have a collection of images with the 4 different statuses as their file name, and with that an $image_url is created to be returned.

The 4 possible statuses are:

  • – online
  • – offline
  • – unknown
  • – error

The HTML Code and PHP Function Call

Once you have your php function in the page (I stuck mine before the first <html> tag), you can use the php function to insert the image url when you pass it an IP…
{code type=html}<table>
<tr>
<td style=”width: 100%”>[[Neo]]:</td>
<td style=”width: 100%”> <img src=”<?php echo hamachiImg(’5.37.117.104′); ?>”></td>
</tr>
</table>{/code}
hamachi-exampleOnce you’ve done that, assuming you have entered a valid hamachi IP address, the results should look something like the image at right.

Technorati Tags: , , , ,

ShoZu and Picasa Web Albums

So, I downloaded ShoZu for my cell phone to upload pics to the intarwebs…and I’m not excited about it. I put it on the phone to upload pics to Picasa Web Albums, and I think that works fine…but it’s the crap that it tacks on to the end of the description to put its spam out there for people to get it too. I’m not a fan of forced promotion in my things by someone else’s software. If I want to link you, I’ll link you.

On the other hand, I have a slightly better experience to report with Picasa Web Albums – More space and more albums allowed than flickr. The only down side, is the un-integrated mobile uploading…and that you have to use their software. I’m hoping that they get sub-categories as well in there, because that would clean up my album’s front page, and help keep things organized. I’ve only used it for one day though so far, but I have uploaded nearly 350MB of pictures. I’m using it as a backup storage for my photos on my computer. I’ve already lost the pictures of my friends once when my computer hard drive crashed. That ended an era in my life, and I had to start over. I don’t want that to happen again.

I’ll probably write more when I find something new, or a better way to do something with these two apps.

Technorati Tags: , , , , , , , , , , ,

[[Oracle]] and tsnlocal.net

I’ve spent the last two weeks working on getting [[Oracle]] into the role she was designed to play…but have found it to be a bit more involved than I realized.

Originally, I set up the server to be a web server with php and sql capabilities. Then I realized I needed to FTP files to the web server, so I installed FileZilla Server. Once that was done, I started working on the webpage for tsnlocal.net. I got it up, and then wanted to play around with some other type of server, and decided on a Jabber server for instant messaging. I installed Wildfire.

Wildfire is extremely easy to setup and install – so once I finished that, I looked for a Jabber client. My first choice was a VoIP client called Jabbin, but I couldn’t get it to connect to the server – probably because I don’t have a VoIP Protocol on the server to support it. So I went with what we use at work, Exodus. It’s a fairly functional Jabber client – with chat rooms, IM rosters, subscriptions, and file transfer…and a bunch of other stuff, including plugins.

Once the Jabber service was set up, and I figured out how to connect to it, I realized that telling people to use my dyndns domain name was not going to work. So I had to figure out how to get my Godaddy.com domain name to link directly to my IP address. But, come to find out, I have to have a Top Level Domain for an IP address, or my dyndns must be a nameserver registered with the NS Registry, in order to use it as a nameserver. I spent 2 days setting up BIND on Windows XP (because there was very little help on the internet for how to do it). Then I jacked around with the Total DNS control settings on godaddy, and got the webserver to work like it should – almost.

So now you can join the jabber server with yourname@jabber.tsnlocal.net. Now that I had that working, I noticed that there were email settings like pop.tsnlocal.net and smtp.tsnlocal.net that could be set up, so I decided to look into running my own email server. I got in #bloodshotgamer on irc.gamesurge.net and asked some of the tecky people I talk to in there what they’d recommend. Duck-Lap recommended qmail for linux, but mentined MailEnable for Windows. I was hoping for an IMAP service so I could run the webpage side of it, but that was not included with this. I might upgrade the service to something new later on, but for now, this was easy to install, and has easy administration, which is what I’m looking for since most of these other services aren’t critical to the function of the server. BIND was about the only thing that was hell to configure…everything else was easily figured out once I had the info and a general grasp of what it does and how it does it.

So now, [[Oracle]] does these things:
- Web Server (Apache, PHP, MySQL)
- FTP Server
- DNS Server
- Email Server
- Jabber Server
- TeamSpeak Voicechat Server
- Hamachi server
- Google Desktop distributed indexing server for the hamachi shares (the essence of tsnlocal)
- and a keep-alive for the dyndns service linking my IP to the dynamic domain

That’s a lot for a little box…but I’m not done yet – I need to put ssh on it so I can telnet into it. I’m sure there are other things that I will find to do with it as time goes on too.

Technorati Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,