CrazyPixels Forum

Everything about the CrazyPixels products!
 FAQ •  Search •  Register •  Login 
It is currently Wed Dec 19, 2018 6:56 am

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: FTP remote directory
PostPosted: Thu Dec 18, 2008 4:08 pm 
Offline

Joined: Thu Dec 18, 2008 4:03 pm
Posts: 8
Hey there!

Got the wonderful program to work in a sec.
All is well, except...

the upload of images (every 5 mins) to the FTP-server works like a charm...
but I can't seem to find a function telling the build-in FTP client to store images at a certain remote directory.

It now goes to the root directory, which is not a www directory.
How do I set this up right?

Kind regards,
Menno (Amsterdam, NL)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 19, 2008 6:03 pm 
Offline
Site Admin
User avatar

Joined: Wed Aug 22, 2007 1:57 pm
Posts: 355
Location: Berlin/Germany
Hello,

from the FTP settings dialog you can only upload to the FTP root.
This is only for testing the upload, not more!

From the motion detection or scheduler FTP settings dialog you can select the destination directory on your FTP server!

Insert your desired destination directory into the "FTP Server Directory" textbox!

_________________
Marc Schneider

CrazyPixels Software Development


Facebook https://www.facebook.com/crazypixels.software
Twitter https://twitter.com/crazypixelssoft
Google+ https://plus.google.com/+Crazypixels/posts


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 19, 2008 6:18 pm 
Offline

Joined: Thu Dec 18, 2008 4:03 pm
Posts: 8
Ah!
got it working!

maybe call that field "remote directory" instead of saying "upload under a different name"?

thanx!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 19, 2008 6:43 pm 
Offline

Joined: Thu Dec 18, 2008 4:03 pm
Posts: 8
Got the files uploaded to a seperate directory and put a simple index.html there with this code for viewing:

Code:

<SCRIPT LANGUAGE="JavaScript">
var slide = new Array();
slide[0] = "http://www.domain.net/camera/camera_0.jpg";
slide[1] = "http://www.domain.net/camera/camera_1.jpg";
slide[2] = "http://www.domain.net/camera/camera_2.jpg";
slide[3] = "http://www.domain.net/camera/camera_3.jpg";
slide[4] = "http://www.domain.net/camera/camera_4.jpg";
slide[5] = "http://www.domain.net/camera/camera_5.jpg";
slide[6] = "http://www.domain.net/camera/camera_6.jpg";
slide[7] = "http://www.domain.net/camera/camera_7.jpg";
slide[8] = "http://www.domain.net/camera/camera_8.jpg";
slide[9] = "http://www.domain.net/camera/camera_9.jpg";
slide[10] = "http://www.domain.net/camera/camera_10.jpg";
slide[11] = "http://www.domain.net/camera/camera_11.jpg";
slide[12] = "http://www.domain.net/camera/camera_12.jpg";
slide[13] = "http://www.domain.net/camera/camera_13.jpg";
slide[14] = "http://www.domain.net/camera/camera_14.jpg";
slide[15] = "http://www.domain.net/camera/camera_15.jpg";
slide[16] = "http://www.domain.net/camera/camera_16.jpg";
slide[17] = "http://www.domain.net/camera/camera_17.jpg";
slide[18] = "http://www.domain.net/camera/camera_18.jpg";
slide[19] = "http://www.domain.net/camera/camera_19.jpg";
slide[20] = "http://www.domain.net/camera/camera_20.jpg";
slide[21] = "http://www.domain.net/camera/camera_21.jpg";
slide[22] = "http://www.domain.net/camera/camera_22.jpg";
slide[23] = "http://www.domain.net/camera/camera_23.jpg";
slide[24] = "http://www.domain.net/camera/camera_24.jpg";
slide[25] = "http://www.domain.net/camera/camera_25.jpg";
slide[26] = "http://www.domain.net/camera/camera_26.jpg";
slide[27] = "http://www.domain.net/camera/camera_27.jpg";
slide[28] = "http://www.domain.net/camera/camera_28.jpg";
slide[29] = "http://www.domain.net/camera/camera_29.jpg";
slide[30] = "http://www.domain.net/camera/camera_30.jpg";

var current = 0;
function advance(){
current++;
if(slide[current]){document.images.show.src = slide[current];
  window.status='Slide '+(current+1)+' of '+slide.length+': '+slide[current];}
}
function retract(){
current--;
if(slide[current]){document.images.show.src = slide[current];
  window.status='Slide '+(current+1)+' of '+slide.length+': '+slide[current];}
}
</SCRIPT>
<div align="center">
<TABLE cellspacing=1 cellpadding=1 bgcolor="#000000" id="table1">
<TR><TD colspan=2 align=center bgcolor="black">
<font face="Verdana">
<b><font  color="lightgrey">Vind-it Vintage, Amsterdam</font> </b>
</font>
</td></tr>
<TR><TD colspan=2 align=center bgcolor="black">
<img src="http://www.vindit.net/camera/camera_0.jpg" name="show"></td></tr>
<tr><td align=center bgcolor="black" height=30 width="50%">
<input type=button onclick="retract();" value="<<<<">
</td><td align=center bgcolor="black" height=30 width="50%">
<input type=button onclick="advance();" value=">>>>">
</TD></TR>
</TABLE>
</div>


Just rename the domain and / or filenames and you've got normal manual slideshow of pics.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 19, 2008 7:56 pm 
Offline

Joined: Thu Dec 18, 2008 4:03 pm
Posts: 8
And styled even more:

Code:
<SCRIPT LANGUAGE="JavaScript">
var slide = new Array();
slide[0] = "http://www.domain.net/camera/camera_0.jpg";
slide[1] = "http://www.domain.net/camera/camera_1.jpg";
slide[2] = "http://www.domain.net/camera/camera_2.jpg";
slide[3] = "http://www.domain.net/camera/camera_3.jpg";
slide[4] = "http://www.domain.net/camera/camera_4.jpg";
slide[5] = "http://www.domain.net/camera/camera_5.jpg";
slide[6] = "http://www.domain.net/camera/camera_6.jpg";
slide[7] = "http://www.domain.net/camera/camera_7.jpg";
slide[8] = "http://www.domain.net/camera/camera_8.jpg";
slide[9] = "http://www.domain.net/camera/camera_9.jpg";
slide[10] = "http://www.domain.net/camera/camera_10.jpg";
slide[11] = "http://www.domain.net/camera/camera_11.jpg";
slide[12] = "http://www.domain.net/camera/camera_12.jpg";
slide[13] = "http://www.domain.net/camera/camera_13.jpg";
slide[14] = "http://www.domain.net/camera/camera_14.jpg";
slide[15] = "http://www.domain.net/camera/camera_15.jpg";
slide[16] = "http://www.domain.net/camera/camera_16.jpg";
slide[17] = "http://www.domain.net/camera/camera_17.jpg";
slide[18] = "http://www.domain.net/camera/camera_18.jpg";
slide[19] = "http://www.domain.net/camera/camera_19.jpg";
slide[20] = "http://www.domain.net/camera/camera_20.jpg";
slide[21] = "http://www.domain.net/camera/camera_21.jpg";
slide[22] = "http://www.domain.net/camera/camera_22.jpg";
slide[23] = "http://www.domain.net/camera/camera_23.jpg";
slide[24] = "http://www.domain.net/camera/camera_24.jpg";
slide[25] = "http://www.domain.net/camera/camera_25.jpg";
slide[26] = "http://www.domain.net/camera/camera_26.jpg";
slide[27] = "http://www.domain.net/camera/camera_27.jpg";
slide[28] = "http://www.domain.net/camera/camera_28.jpg";
slide[29] = "http://www.domain.net/camera/camera_29.jpg";
slide[30] = "http://www.domain.net/camera/camera_30.jpg";

var current = 0;
function advance(){
current++;
if(slide[current]){document.images.show.src = slide[current];
  window.status='Slide '+(current+1)+' of '+slide.length+': '+slide[current];}
}
function retract(){
current--;
if(slide[current]){document.images.show.src = slide[current];
  window.status='Slide '+(current+1)+' of '+slide.length+': '+slide[current];}
}
</SCRIPT>
<body background="background.jpg">

<div align="center">
<TABLE cellspacing=1 cellpadding=1 id="table1" style="border-left-width: 0px; border-top-width: 0px">
<TR><TD align=center style="position: relative; border-style: none; border-width: medium" height="36">
<input type=button onclick="retract();" value="&lt; &lt; &lt; &lt;" style="font-weight: 700; float: left"><font face="Verdana"><b><font size="4">
</font> </b>
</font>
</td>
   <TD align=center style="position: relative; border-style: none; border-width: medium" height="36">
<font face="Verdana">
<b><font size="4">[b]Pagename Here![/b]</font></b></font></td>
   <TD align=center style="position: relative; border-style: none; border-width: medium" height="36">
<input type=button onclick="advance();" value="&gt; &gt; &gt; &gt;" style="font-weight: 700; float: right"></td></tr>
<TR>
   <TD colspan=3 align=center style="border-style: none; border-width: medium" height="482">
<img src="http://www.domain.net/camera/camera_0.jpg" name="show"></td></tr>
</TABLE>
</div>



This will give you a page with a custom background you put in that folder, named background.jpg (or such, just change it in the code)

Also, the pagetitle is centered above the images. Alongside them are the previous / next buttons, align to the outside borders.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 30, 2008 3:52 pm 
Offline
Site Admin
User avatar

Joined: Wed Aug 22, 2007 1:57 pm
Posts: 355
Location: Berlin/Germany
Thank you for the code!

The remote directory is the directory of the webspace where your files are uploaded to.

Upload under a different name is another option and has nothing to do with the remote directory!
If you select this option, your picture is uploaded to the webspace with a different name as it has in real. After uploading the name is changed into the real name. This is needed if you have a program (applet etc.) running which shows your picture(s) in the same moment as it is uploaded. To prevent half uploaded pictures from displaying, the different name is used!

_________________
Marc Schneider

CrazyPixels Software Development


Facebook https://www.facebook.com/crazypixels.software
Twitter https://twitter.com/crazypixelssoft
Google+ https://plus.google.com/+Crazypixels/posts


Top
 Profile  
 
 Post subject: Rewrite-rules
PostPosted: Fri Feb 13, 2009 2:28 pm 
Offline

Joined: Thu Dec 18, 2008 4:03 pm
Posts: 8
For some reason, the images do not "rewrite if newer". So picture 1 - 30 are there, but once there, they don't refresh themselves with new images on next upload.

Any fix?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl