473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How animate dated filename like "history20070611s202635195.jpg"

My web cam save a file each minute with a name like this
"history20070611s202635195.jpg"
Do you know a script that can animate the last 60 jpg ? What I like
is something like this:

http://lacombe.dyndns.org/meteo/cam.html

The problem is that this script work only with sequential file name
like "picture001", "picture002", etc and not with dated filename like
"history20070611s202635195.jpg"

Thank you in advance for your help.

Fabrizio

Jun 12 '07 #1
5 1498
"history20070611s202635195.jpg"

Do you know what this part mean "s202635195"? And how often camera
save picture? Every minute? Or its random?

Jun 12 '07 #2
On Jun 12, 11:07 am, reflex <reflexa...@gmail.comwrote:
"history20070611s202635195.jpg"

Do you know what this part mean "s202635195"? And how often camera
save picture? Every minute? Or its random?
The camera save 1 image every 1 minute.
"history20050101093020500.jpg" = "9h30min20s500ms on January 1, 2005".
The letter "s" is inserted after
the day when referring to a summer time zone.
Thanks for your help.

Fabrizio

Jun 12 '07 #3
The camera save 1 image every 1 minute.
"history20050101093020500.jpg" = "9h30min20s500ms on January 1, 2005".
I think there will be problem to get oldest "shoted" picture. Try to
change image format a little bit (remove milliseconds and seconds)

Then get current time like: 10h 30min (date is easy too) - last
picture

Then you have to get oldest: last - 60min = 9h 30min

Now you can use some loops to pseudo animate pictures and setInterval
to reset time to get every minute last picture and oldest.

I started to write script, but i have too much work so dont know when
i will finish it.

Cya
reflex

Jun 13 '07 #4
I think there will be problem to get oldest "shoted" picture. Try to
change image format a little bit (remove milliseconds and seconds)

The name is generated by the webcam. I can't change nothing :( I can
only change the text before the date ("history"). Like I tell i know
nothing in programming but is possible to use the creation date of the
file to select the last hour / last day photos ? Someone on php groups
write this:

"The number following the 's' represents the time, I assume?
(HHMMSSmmm) ?
You could put them in an array and sort that using string comparison
or by extracting the time string and casting it to integers and sort
those. Or just sort them based on their maketime perhaps? Then feed
the
sorted pics to your image rotation function"

I not say if it can help you ? Actually the webcam every 10 minutes
make and upload by ftp one image on a directory on my Apache server.
It will be nice to have one animation with the last 6 images (1 hour)
and one with the last 144 images (1 day).
I started to write script, but i have too much work so dont know when
i will finish it.
Is absolutely not urgent :) Next 24 June I leave for one month. For me
is so fantastic if i can have this animation that the time of the
realization is absolutely not important :)

Thank you again.

Fabrizio

Jun 13 '07 #5
It's OK. Zero write me the code.
Is on it.comp.lang.javascript. You can see at this address:

http://groups.google.com/group/it.co...4bf09c0db5b329

Jun 17 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Udo Pecher | last post by:
I apply the following code test.php $upload =ftp_put($conn_id,"test.jpg","$dat",FTP-BINARY); where $dat is a local filename which I like to move via FTP. "test.jpg" ist the filename on the...
14
by: Vilmar Brazão de Oliveira | last post by:
Hi all, I was using: <% Set objWshell = Server.CreateObject("WScript.Shell") objWshell.Run "%COMSPEC% /C ren topoX.jpg topo_cliente.jpg", 0, TRUE %> BUT the comand COMSPEC disapeared of all my...
9
by: Don | last post by:
Does anyone know where I can find a client-side function I can reference from within an HTML/JavaScript web page? I'm currently using a core PHP function to do this, but I'd rather do it on the...
5
by: mr_cross | last post by:
Hi. It's been a very long time since I did any extensive html coding, so all I recall are the basics. I'm looking to create a web site with a lot of jpg pictures divided among several web pages. Is...
1
by: Fabrizio | last post by:
My web cam save a file each minute with a name like this "history20070611s202635195.jpg" Do you know a script in php that can animate the last 60 jpg ? What I like is something like this: ...
2
by: defn noob | last post by:
from Tkinter import * import os master = Tk() w = Canvas(master, width=800, height=600) print os.path.exists('C:/me/saftarn/desktop/images/blob4.jpg') im = PhotoImage(file =...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.