Difference between revisions of "Webcam"

From Baltimore Node Wiki
Jump to navigationJump to search
(Webcam current status)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
>===Phase 1===
+
==Current Status==
 +
Baltimore Node-Cam is currently offline. ♪
  
http://baltimorenode.org/images/webcam.jpg
+
If you'd like to bring it back, bring it up at the meeting. :)
 +
 
 +
It never made it to the new space, for a couple reasons:
 +
 
 +
# Privacy
  
----
+
==History==
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
>=[http://ynirabitag.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
 
----
 
  
----
+
===Phase 1===
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://ywejoxecy.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
 
----
 
=[http://ywejoxecy.co.cc CLICK HERE]=
 
----
 
</div>
 
  
=[http://ynirabitag.co.cc CLICK HERE]=
+
http://baltimorenode.org/images/webcam.jpg
----
 
</div>
 
  
 
===Phase 2===
 
===Phase 2===
  
* [http://baltimorenode.org/images/webcam-backup/ Webcam Archive Page]  
+
*[http://baltimorenode.org/images/webcam-backup/ Webcam Archive Page]
* [http://baltimorenode.org/images/webcam-backup/ Raw Archive Directory]  
+
*[http://baltimorenode.org/images/webcam-backup/ Raw Archive Directory]
* [http://github.com/abachman/bnode-webcam/tree/master Code on github]
+
*[http://github.com/abachman/bnode-webcam/tree/master Code on github]
  
 
backup_images.sh :
 
backup_images.sh :
Line 75: Line 67:
 
===Phase 3===  
 
===Phase 3===  
  
* Haml for html templating.  
+
*Haml for html templating.
* Atom feed of stored photos.
+
*Atom feed of stored photos.
* Only store images for two days, archive the rest.
+
*Only store images for two days, archive the rest.
  
 
===Phase 4===
 
===Phase 4===
  
 
Write a Flex/Flash based image browser / replay tool.
 
Write a Flex/Flash based image browser / replay tool.

Latest revision as of 04:16, 13 September 2019

Current Status[edit | edit source]

Baltimore Node-Cam is currently offline. ♪

If you'd like to bring it back, bring it up at the meeting. :)

It never made it to the new space, for a couple reasons:

  1. Privacy

History[edit | edit source]

Phase 1[edit | edit source]

webcam.jpg

Phase 2[edit | edit source]

backup_images.sh :

#!/bin/sh

OLDFILE=`md5sum /home/bnode/webcam-backup/$(ls /home/bnode/webcam-backup | tail -n1) | cut -d ' ' -f1`

NEWFILE=`md5sum /home/bnode/baltimorenode.org/public/images/webcam.jpg | cut -d ' ' -f1`

if [ "$OLDFILE" == "$NEWFILE" ]; then
  echo "Still the same"
else
  echo "NEW!"
  cp /home/bnode/baltimorenode.org/public/images/webcam.jpg /home/bnode/webcam-backup/webcam-$(date +%Y%m%d%H%M%S).jpg
fi

makeimagepage.rb:

#!/usr/bin/env ruby

`touch /home/bnode/baltimorenode.org/public/webcam.html`
out = []
File.open("/home/bnode/baltimorenode.org/public/webcam.html", 'w') do |f|
  f.write("<html><head></head><body>")
  f.write("<img src='images/webcam.jpg'><br><br>")
  f.write("<ul><li>")
  Dir.entries("/home/bnode/webcam-backup").sort.each do |e|
    next if ['.', '..'].include? e
    out << "<a href='images/webcam-backup/#{e}'>#{e}</a>"
  end
  f.write out.join('</li><li>')
  f.write("</li></ul></body></html>")
end
puts "Linked to: \n* #{out.join("\n")}"

The directory /home/bnode/baltimorenode.org/public/images/webcam-backup is symbolically linked to /home/bnode/webcam-backup.

When executed from the directory containing the webcam still, this command will create a time lapse video.

mencoder -nosound mf://*.jpg -mf w=640:h=480:type=jpg:fps=5 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1000000 -o time_lapse-test.avi

Phase 3[edit | edit source]

  • Haml for html templating.
  • Atom feed of stored photos.
  • Only store images for two days, archive the rest.

Phase 4[edit | edit source]

Write a Flex/Flash based image browser / replay tool.