Jump to content

Recommended Posts

Posted

Hey just wondering how people are getting twitter feeds onto xibo. I wanted to use an rss feed of our twitter updates but twitter no longer works with rss. Also have tried the twitter widgets but they don't seem to be showing up when copying them into the "embed" function.

 

Also has anyone found a really good way of adding lots of photos to a slideshow easily. Was hoping to use picaso web albums and embed a slideshow but this doesn't seem to work either.

 

Lastly anyone found any nice looking websites that are good and easy to embed. I am thinking of something like a webcams of zoos etc?

 

Cheers in advance

Posted
+1 for gallery ideas. I've played with gallery3 but it's a pita - no photos uploading, no errors either. Be much better if xibo had multi file uploading or could pull from a network share.
Posted
Twitter no longer works with RSS.

It does for me. Just change the text in red to the username you need the tweets for.

 

http://twitter.com/statuses/user_timeline/[color="#FF0000"]veronica[/color].rss

 

You can also add "count" onto the end of the URL to retrieve a specific number of tweets. I think the max. is 200.

 

http://twitter.com/statuses/user_timeline/[color="#FF0000"]veronica[/color].rss?count=[color="#FF0000"]200[/color]

  • Thanks 1
Posted
From I solution provided on here, for multiple uploads of images I tend to use Photostory to create a video of them and upload that instead.

 

Sounds like a good idea. Ideally though just want teachers to be able to dump a bunch of photos in a folder and in sync from that.Any other ideas for this one?

 

It does for me. Just change the text in red to the username you need the tweets for.

 

http://twitter.com/statuses/user_timeline/[color="#FF0000"]veronica[/color].rss

 

You can also add "count" onto the end of the URL to retrieve a specific number of tweets. I think the max. is 200.

 

http://twitter.com/statuses/user_timeline/[color="#FF0000"]veronica[/color].rss?count=[color="#FF0000"]200[/color]

 

Cheers for that. Turns out I was being special and didn't have the correct proxy settings.

Posted

This was a straight rip from another xibo thread, but I have changed the code a bit. This is what we use when we want to get images from a share automatically into xibo.

 

.html


	
	<br />
	  body {<br />
		margin: 0;<br />
		padding: 0;<br />
		background-color: #000000<br />
		}<br />
	 .centeredImage<br />
		{<br />
		text-align:center;<br />
		margin-top:0px;<br />
		margin-bottom:0px;<br />
		padding:0px;<br />
		}<br />
		




	

	<br />
<br />
			var curimg=0<br />
			function rotateimages()<br />
			{<br />
				document.getElementById("slideshow").setAttribute("src", "changeme/"+galleryarray[curimg])<br />
				curimg=(curimg<galleryarray.length-1)? curimg+1 : 0<br />
			}<br />
<br />
			window.onload=function()<br />
			{<br />
				setInterval("rotateimages()", 5000)<br />
				rotateimages()<br />
			}<br />
		

	


 

 

getimages.php

//PHP SCRIPT: getimages.php
Header("content-type: application/x-javascript");

//This function gets the file names of all images in the current directory
//and ouputs them as a JavaScript array
function returnimages($dirname=".")
{
$pattern="(.jpg|.JPG|.Jpg|.jpeg|.JPEG|.Jpeg)"; //valid image extensions
$files = array();
$curimage=0;
if($handle = opendir($dirname))
{
	while(false !== ($file = readdir($handle)))
	{
		if(preg_match($pattern, $file)){ //if this file is a valid image
		//Output it as a JavaScript array element
		echo 'galleryarray['.$curimage.']="'.$file .'";';
		$curimage++;
	}
	}

closedir($handle);
}
return($files);
}

echo 'var galleryarray=new Array();'; //Define array in JavaScript
returnimages() //Output the array elements containing the image file names
?>

Posted
This was a straight rip from another xibo thread, but I have changed the code a bit. This is what we use when we want to get images from a share automatically into xibo.

 

.html


	
	<br />
	  body {<br />
		margin: 0;<br />
		padding: 0;<br />
		background-color: #000000<br />
		}<br />
	 .centeredImage<br />
		{<br />
		text-align:center;<br />
		margin-top:0px;<br />
		margin-bottom:0px;<br />
		padding:0px;<br />
		}<br />
		




	

	<br />
<br />
			var curimg=0<br />
			function rotateimages()<br />
			{<br />
				document.getElementById("slideshow").setAttribute("src", "changeme/"+galleryarray[curimg])<br />
				curimg=(curimg<galleryarray.length-1)? curimg+1 : 0<br />
			}<br />
<br />
			window.onload=function()<br />
			{<br />
				setInterval("rotateimages()", 5000)<br />
				rotateimages()<br />
			}<br />
		

	


 

 

getimages.php

//PHP SCRIPT: getimages.php
Header("content-type: application/x-javascript");

//This function gets the file names of all images in the current directory
//and ouputs them as a JavaScript array
function returnimages($dirname=".")
{
$pattern="(.jpg|.JPG|.Jpg|.jpeg|.JPEG|.Jpeg)"; //valid image extensions
$files = array();
$curimage=0;
if($handle = opendir($dirname))
{
	while(false !== ($file = readdir($handle)))
	{
		if(preg_match($pattern, $file)){ //if this file is a valid image
		//Output it as a JavaScript array element
		echo 'galleryarray['.$curimage.']="'.$file .'";';
		$curimage++;
	}
	}

closedir($handle);
}
return($files);
}

echo 'var galleryarray=new Array();'; //Define array in JavaScript
returnimages() //Output the array elements containing the image file names
?>

 

Sorry this is gonna sound pretty simple. With the HTML code do I paste that into the Embed part of xibo? Then the php code I paste into a text file and save with the extension HTML? Then put that HTML file in the same folder as all of my photos?

 

Cheers

  • Thanks 1
Posted
Sorry this is gonna sound pretty simple. With the HTML code do I paste that into the Embed part of xibo? Then the php code I paste into a text file and save with the extension HTML? Then put that HTML file in the same folder as all of my photos?

 

Cheers

 

Hi

 

Your best bet is to create a slideshow folder on the same webserver you have xibo on. e.g. http:///slideshow where xibo is at http:///xibo. Then in there you can have 1 html file and 1 sub folder for each set of photos you want.

 

You could use embed, but as you have to host the getimages.php on the webserver, you might as well do both.

Posted
It does for me. Just change the text in red to the username you need the tweets for.

 

http://twitter.com/statuses/user_timeline/[color="#FF0000"]veronica[/color].rss

 

You can also add "count" onto the end of the URL to retrieve a specific number of tweets. I think the max. is 200.

 

http://twitter.com/statuses/user_timeline/[color="#FF0000"]veronica[/color].rss?count=[color="#FF0000"]200[/color]

 

This method seems to be working intermittently for me. Sometime the tweets show up and some times they dont. If I then put the feed url into my browser it does the same. Sometimes it works sometimes it doesn't. Any idea on this one?

 

Have sorted the photos in a bit of a slightly different way. Have used google picasa and picasa web albums to sync certain folder on our drive. Then inserted the embed code from picasa web albums into xibo. Now everytime a photo is put into the folder, picasa uploads it to picasa web albums and xibo automatically pics up the new slideshow.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...