Reply
Thread Tools
Posts: 631 | Thanked: 837 times | Joined on May 2007 @ Milton, Ontario, Canada
#21
Nice, though remember you'll have to click on your tablet once every 24 hours! lol

Anyways, if you're still looking for an alternative, I threw together a VERY basic python app that will do the same sort of thing (without needing the browser)
Code:
#!/usr/bin/python2.5

import urllib2
import os, sys
import pygame
from pygame.locals import *


def updateImage():

	tempFile = os.tempnam();
	#
	# find yourself a picture on a web page you like
	#
	# (right click on the picture, look under properties and copy the address)
	#
	picture_page = "http://www.google.com/intl/en/images/logo.gif"
	#
	 
	#
	# open the web page picture and read it into a variable
	#
	opener1 = urllib2.build_opener()
	#
	page1 = opener1.open(picture_page)
	#
	my_picture = page1.read()
	
	#Save to temp file
	#
	fout = open(tempFile, "wb")
	#
	fout.write(my_picture)
	#
	fout.close()
	
	
	
	screen = pygame.display.get_surface()
	
	myImage = pygame.image.load(tempFile).convert()
	
	screen.blit(myImage, (0,0))
	pygame.display.flip()
	
	os.remove(tempFile);

def main():
	#init PyGame
	pygame.init()
	window = pygame.display.set_mode((700,400))
	
	UPDATE_EVENT = pygame.USEREVENT + 1
	
	updateImage()
	pygame.time.set_timer(UPDATE_EVENT, 1000)
	
	while True:
		event = pygame.event.wait()
		if event.type == QUIT:
			sys.exit(0)
		elif event.type == UPDATE_EVENT:
			pygame.time.set_timer(UPDATE_EVENT, 0)
			updateImage()
			
			pygame.time.set_timer(UPDATE_EVENT, 1000)
		
	#loop.run()

if __name__ == "__main__":
    main()
Just change the picture_page variable to whatever the URL of your webcam thing is and you should be good to go. It's not fancy and the coding is probably horrendous by most standards, but it should work regardless of display settings/etc.
 
Posts: 56 | Thanked: 4 times | Joined on Dec 2007
#22
Thanks for the code, but the webpage seems to be working now and with how I have it sized it basically is a fullscreen image in zoom mode, which is exactly what I wanted.

Makes good use again of my N800 at least. Nest I'll have to add some overlayed data for time, temps, etc to make it a mini info hub perhaps.
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:21.