+ Post New Thread
Results 1 to 9 of 9
AV and Multimedia Related Thread, Xibo & Twitter in Technical; Hey just wondering how people are getting twitter feeds onto xibo. I wanted to use an rss feed of our ...
  1. #1
    titch's Avatar
    Join Date
    Feb 2007
    Posts
    170
    Thank Post
    102
    Thanked 8 Times in 7 Posts
    Rep Power
    17

    Xibo & Twitter

    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

  2. #2

    Join Date
    Nov 2010
    Posts
    452
    Thank Post
    59
    Thanked 69 Times in 59 Posts
    Rep Power
    34
    +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.

  3. #3


    Join Date
    Sep 2008
    Posts
    1,783
    Thank Post
    329
    Thanked 260 Times in 212 Posts
    Rep Power
    120
    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.

  4. #4


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,050
    Thank Post
    231
    Thanked 2,712 Times in 2,002 Posts
    Rep Power
    794
    Quote Originally Posted by titch View Post
    Twitter no longer works with RSS.
    It does for me. Just change the text in red to the username you need the tweets for.

    Code:
    http://twitter.com/statuses/user_timeline/veronica.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.

    Code:
    http://twitter.com/statuses/user_timeline/veronica.rss?count=200

  5. Thanks to Arthur from:

    titch (29th November 2011)

  6. #5
    titch's Avatar
    Join Date
    Feb 2007
    Posts
    170
    Thank Post
    102
    Thanked 8 Times in 7 Posts
    Rep Power
    17
    Quote Originally Posted by penfold View Post
    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?

    Quote Originally Posted by Arthur View Post
    It does for me. Just change the text in red to the username you need the tweets for.

    Code:
    http://twitter.com/statuses/user_timeline/veronica.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.

    Code:
    http://twitter.com/statuses/user_timeline/veronica.rss?count=200
    Cheers for that. Turns out I was being special and didn't have the correct proxy settings.

  7. #6
    AlexB's Avatar
    Join Date
    Jul 2006
    Location
    Warwickshire
    Posts
    373
    Thank Post
    37
    Thanked 39 Times in 35 Posts
    Rep Power
    23
    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.

    <filename>.html
    HTML Code:
    <html>
    	<head>
    		<!-- removes all the borders traditional found on webpages -->
    		<style type="text/css">
    	  body {
    		margin: 0;
    		padding: 0;
    		background-color: #000000
    		}
    	 .centeredImage
    		{
    		text-align:center;
    		margin-top:0px;
    		margin-bottom:0px;
    		padding:0px;
    		}
    		</style>
    	</head>
    	<body>
    
    	<!--
    	There are 2 references to "changeme" below. These need to be updated to the subfolder with images.
    	I have a html file for each sub folder. I could have gone more complicated, but this works fine for us.
    	e.g. for the optical illusion images I had a optical.html with a optical sub folder containing the images.
    	
    	The file getimages.php must be within the subfolder containing images.
    	Only support files with .jpg or .jpeg extensions (edit getimages.php for more)
    	
    	In line 47 the final value represents the delay before showing the next image in milliseconds
    	
    	I have set this up for a display with height 720pixels. Please change line 54 to suits your needs
    	
    	-->
    		<script src="changeme/getimages.php"></script>
    
    		<script type="text/javascript">
    
    			var curimg=0
    			function rotateimages()
    			{
    				document.getElementById("slideshow").setAttribute("src", "changeme/"+galleryarray[curimg])
    				curimg=(curimg<galleryarray.length-1)? curimg+1 : 0
    			}
    
    			window.onload=function()
    			{
    				setInterval("rotateimages()", 5000)
    				rotateimages()
    			}
    		</script>
    
    		<p class="centeredImage"><img id="slideshow" src="" height="720" align="middle"/></p>
    	</body>
    </html>

    getimages.php
    PHP Code:
    <?
    //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
    ?>

  8. #7
    titch's Avatar
    Join Date
    Feb 2007
    Posts
    170
    Thank Post
    102
    Thanked 8 Times in 7 Posts
    Rep Power
    17
    Quote Originally Posted by AlexB View Post
    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.

    <filename>.html
    HTML Code:
    <html>
    	<head>
    		<!-- removes all the borders traditional found on webpages -->
    		<style type="text/css">
    	  body {
    		margin: 0;
    		padding: 0;
    		background-color: #000000
    		}
    	 .centeredImage
    		{
    		text-align:center;
    		margin-top:0px;
    		margin-bottom:0px;
    		padding:0px;
    		}
    		</style>
    	</head>
    	<body>
    
    	<!--
    	There are 2 references to "changeme" below. These need to be updated to the subfolder with images.
    	I have a html file for each sub folder. I could have gone more complicated, but this works fine for us.
    	e.g. for the optical illusion images I had a optical.html with a optical sub folder containing the images.
    	
    	The file getimages.php must be within the subfolder containing images.
    	Only support files with .jpg or .jpeg extensions (edit getimages.php for more)
    	
    	In line 47 the final value represents the delay before showing the next image in milliseconds
    	
    	I have set this up for a display with height 720pixels. Please change line 54 to suits your needs
    	
    	-->
    		<script src="changeme/getimages.php"></script>
    
    		<script type="text/javascript">
    
    			var curimg=0
    			function rotateimages()
    			{
    				document.getElementById("slideshow").setAttribute("src", "changeme/"+galleryarray[curimg])
    				curimg=(curimg<galleryarray.length-1)? curimg+1 : 0
    			}
    
    			window.onload=function()
    			{
    				setInterval("rotateimages()", 5000)
    				rotateimages()
    			}
    		</script>
    
    		<p class="centeredImage"><img id="slideshow" src="" height="720" align="middle"/></p>
    	</body>
    </html>

    getimages.php
    PHP Code:
    <?
    //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

  9. Thanks to titch from:

    CHR1S (31st May 2012)

  10. #8
    AlexB's Avatar
    Join Date
    Jul 2006
    Location
    Warwickshire
    Posts
    373
    Thank Post
    37
    Thanked 39 Times in 35 Posts
    Rep Power
    23
    Quote Originally Posted by titch View Post
    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://<server>/slideshow where xibo is at http://<server>/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.

  11. #9
    titch's Avatar
    Join Date
    Feb 2007
    Posts
    170
    Thank Post
    102
    Thanked 8 Times in 7 Posts
    Rep Power
    17
    Quote Originally Posted by Arthur View Post
    It does for me. Just change the text in red to the username you need the tweets for.

    Code:
    http://twitter.com/statuses/user_timeline/veronica.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.

    Code:
    http://twitter.com/statuses/user_timeline/veronica.rss?count=200
    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.

SHARE:
+ Post New Thread

Similar Threads

  1. Twitter Poll How Many people use twitter
    By russdev in forum Jokes/Interweb Things
    Replies: 11
    Last Post: 27th May 2009, 04:19 PM
  2. Twitter
    By Edu-IT in forum Other Stuff
    Replies: 42
    Last Post: 26th May 2009, 02:16 PM
  3. cheap surround sound amp ?
    By mac_shinobi in forum Hardware
    Replies: 9
    Last Post: 23rd November 2008, 07:52 PM
  4. Twittering from Conference
    By russdev in forum General EduGeek News/Announcements
    Replies: 2
    Last Post: 30th May 2008, 12:16 AM
  5. EduGeek On Twitter
    By russdev in forum Jokes/Interweb Things
    Replies: 0
    Last Post: 1st April 2007, 04:37 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •