Page 1 of 1

host probs, now running own server

Posted: Sat 16 Jul 2011 3:24 pm
by MickinMoulden
I was with 000.webhost.com for free, but my account has now been cancelled. Don't know why, I only found out after it had been down for sometime and I tried to log in. They didn't suport .txt files anyway.
I also run Yawcam. It can supply a URL so that others can see it. Unortunately this changes as I have a Dynamic IP address. So I now have signed up for no-ip.com so I now have a website and use my compter as the server ;)

I believe my no-ip address only goes for 60 days, then I reregister (or something), the
address is http://palmerston-weather.no-ip.org:8888 . It's not pretty, but at least it won't change like my DIP address does!
I've tested it on a Android smart phone, outside of my net work, and it works fine (laptop and main computer that holds the website are within the network and thus can't view the website using the normal way).
I had a previous problem where I had a link on my site so that you could view the live webcam, but of course the address would change so the link was useless.
So I'm pretty happy with myself so far. I have my website up and running, I can use text files, it didn't cost me anything and any links to my site/cam stay the same.

(EDIT-have taken photo out, not required)

One problem I noticed, the trends.htm page. It loads great, all the pictures are there and up to date. However, as soon as I click on a thumbnail it won't display the large graph?
All the pictures are available and updated every 10 minutes in the images folder (\.yawcam\www\images).
All the website is contained under the www folder (it's just how Yawcam had it). (see pic)
What's up with that?
Apart from that, everything works great! :D
.....now, must change my signature so that it doesn't point to my defunct address!

Re: host probs, now running own server

Posted: Sat 16 Jul 2011 3:50 pm
by steve
I've tried to connect to have a look, but can't connect. Server not responding. Have you configured your firewall to allow external access?

Your graph image problem is probably that your web server doesn't support the anti-caching trick on the trends page:

Code: Select all

<script type="text/javascript">
function changeImage(im) {
	document.images["graphs"].src = im + "?" + new Date().getTime();
}
</script>
If that's the problem, you'll have to change it to:

Code: Select all

<script type="text/javascript">
function changeImage(im) {
	document.images["graphs"].src = im;
}
</script>
But then you will have the problem that viewers may not get to see the latest version of the image if their browser has cached an older copy.

Re: host probs, now running own server

Posted: Sun 17 Jul 2011 1:02 am
by MickinMoulden
steve wrote:I've tried to connect to have a look, but can't connect. Server not responding. Have you configured your firewall to allow external access?
I think the problem there is that I had shut down Yawcam's Http output (as well as file,ftp and stream output). As all the files are in the section where you used to get a static cam picture (not stream).
Your graph image problem is probably that your web server doesn't support the anti-caching trick on the trends page:

Code: Select all

<script type="text/javascript">
function changeImage(im) {
	document.images["graphs"].src = im + "?" + new Date().getTime();
}
</script>
If that's the problem, you'll have to change it to:

Code: Select all

<script type="text/javascript">
function changeImage(im) {
	document.images["graphs"].src = im;
}
</script>
But then you will have the problem that viewers may not get to see the latest version of the image if their browser has cached an older copy.
I had my eye on that code ;) I had no clue what to do with it. I'll give that a go.
Thanks for the reply BTW, your a champ....and all while I while sleeping ha ha :lol: That's overtime or what? ;)

Re: host probs, now running own server

Posted: Sun 17 Jul 2011 1:25 am
by MickinMoulden
OK, that works. Even if I encounter cache probs, I won't be fussed. It shouldn't be too much of an issue.
Thanks again.