Twittercast: Shoutcast / Icecast Song Title To Twitter Status PHP Script

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • bmdubb
    Junior Member
    • Apr 2012
    • 1

    Really want to get this working

    I followed the steps and have the pal script working in sam broadcaster. When I go to the url using twitter.php it only shows 0 listeners. There's no data for what's playing now.

    I'm using godaddy on a windows iis hosted server. Not sure if that matters but wanted to put that out there.

    I created the twitter app
    I uploaded all files to it's own folder on my server
    I edited the twitter.php
    I uploaded epicurl.php, epioauth.php, epitwitter, title.txt, twitter.php

    The pal script is saying it's running in sam broadcaster.
    I'm using my ip and port information from shoutcast within the twitter.php file.

    Nothing is posting to twitter and it's showing 0 listeners when the twitter.php url is accessed.

    Here's the link http://dubbspotrecords.com/wdsrradio...er/twitter.php

    Can anyone help me please?
    Last edited by bmdubb; 15 April 2012, 13:53. Reason: added info

    Comment

    • ibnxradio
      Junior Member
      • May 2012
      • 1

      I am having the same issue with the 0 listeners showing up in the tweet stream. I followed all the steps from this forum and across the net deleted everything and started over I have a few listeners and my song titles are showing on my shoutcast start page so I am lost on what the issue could be...

      Please help...again it posted the -0 listeners to Twitter so the script is posting but in the Twitter.php file that is all it says..it has been two days and still that is all it says...

      Any help would be greatly appreciated!

      PS. Using godaddy on a Linux server and already contacted them CURL is enabled..this seems like it is not pulling data from my radio server - did i need to put my admin username/password somewhere?

      Comment

      • peteone
        Junior Member
        • Nov 2008
        • 30

        Hello before i start a whole article i wanted to know if this thread is still alive and if this script is still functional? I'm writing this on August 6 2012.

        Thank you for your response

        Comment

        • Busby
          Senior Member
          • Apr 2004
          • 165

          Still here..
          Go easy on me...
          https://1mix.co.uk

          Comment

          • peteone
            Junior Member
            • Nov 2008
            • 30

            Fantastic thank you for quick reply.

            So et me start from the beginning since i think it would be pointless to ask individual questions. Here is what i did to set up this script that right now is not doing what i want it to.

            I did everything ( i think that one ove the previous posters wrote - murderousone)

            1. Downloaded script files (title.txt, twitter.php, EpiTwitter.php, EpiOAuth.php, EpiCurl.php)
            2. Uploaded them on my server - (bluehost) - files reside at public_html/twittercast
            3. set title.txt to 777
            4. created new application at twitter DEV
            5. edited twitter.php file
            6 started cron job wth the command:
            php -q /home/peteonen/public_html/twittercast/twitter.php
            (path is correct i get email every minute that its executing)

            However twitter is not posting anything and the email i get says

            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
            <html>
            <head>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
            <meta http-equiv="refresh" content="60">
            <title>TwitterCast - - 0 Listeners</title></head>
            <body><center>
            - 0 Listeners</a>

            not sure whats going on..

            Comment

            • peteone
              Junior Member
              • Nov 2008
              • 30

              ^^ bump

              Comment

              • DrO
                • Sep 2003
                • 27868

                you have to be more patient than you are and bumping a thread in only 18hrs is not going to get you anywhere sooner - this forum never moves fast in terms of replies and you can probably expect to wait days (or weeks at times) especially for a 3rd party offering as this is.

                -daz
                WACUP Project <‖> "Winamp Ramblings" - Indie Winamp Dev Blog

                Comment

                • DIGITALOVE
                  Junior Member
                  • Aug 2012
                  • 1

                  problem with special characters

                  hi all, my all, I work very well except that when any title has accents or special characters not published.

                  I would like to know that I make may be published accents and ñ because I'm Latino

                  Comment

                  • shadowyrealms
                    Junior Member
                    • Jul 2009
                    • 25

                    Armageddon and the Twitter API Change

                    That wretched new Twitter API has already wrecked my alternative to Twittercast. I was wondering if Twittercast is still up and running after as of now? If so, it may be time for me to re-enter the fold.
                    Shadowy Realms --
                    Tales of Suspense, Mystery and the Macabre

                    Comment

                    • Busby
                      Senior Member
                      • Apr 2004
                      • 165

                      Twittercast still works for me @1mixradio/@onemixradio [2 streams]
                      Go easy on me...
                      https://1mix.co.uk

                      Comment

                      • murderousone
                        Junior Member
                        • Feb 2012
                        • 16

                        Twittercast Is Still Working

                        This Still Works Great And Is the Best Your Going To Find Online.

                        IF ANYONE IS HAVING PROBLEMS SETTING THIS UP...

                        MAKE SURE YOU VISIT https://dev.twitter.com/
                        And Setup Your APP, Prior To Running The Script..


                        I MADE A twittercast.zip OF MY CURRENT STATION RUNNING TWEETCASTER,

                        WHICH YOU CAN VIEW THE UPDATES ON TWITTER @ http://twitter.com/m1uradio

                        CURRENTLY STILL RUNNING / WORKING..

                        FOR THOSE HAVING PROBLEMS,
                        DOWNLOAD THE .ZIP

                        WHICH IS THE SAME .ZIP POSTED ON 1ST POST, And 4th POST ON THIS THREAD.

                        ALL THAT NEEDS TO BE EDITED ARE:


                        (twitterAPI.php And TwitterCast.php)


                        EDIT FILES TO YOUR OWN LIKING'S AND SERVER SETTINGS..

                        AND UPLOAD TO YOUR SERVERS WEB DIRECTORY OR SUB, ETC.

                        ALL OTHER FILES REMAIN UNTOUCHED / NO NEED TO EDIT....

                        Run Twittercast.php from domain location.. http://yourdomain.com/whateverfolder/twittercast.php

                        Check Twitter...


                        It Should Auto Update Your Twitter Every 30 secs....


                        HOPE THIS HELPS OUT!

                        Comment

                        • edinsof
                          Junior Member
                          • Jan 2013
                          • 1

                          Hi.
                          Im testin script and it dont post on twitter

                          [Tue Jan 01 05:28:43 2013] [error] [client 186.0.98.164] PHP Fatal error: Uncaught exception 'EpiTwitterNotAuthorizedException' with message '{"request":"\\/1\\/statuses\\/update.json","error":"Timestamp out of bounds"}' in /var/www/html/laeje/EpiTwitter.php:259\nStack trace:\n#0 /var/www/html/laeje/EpiTwitter.php(221): EpiTwitterException::raise(Object(EpiCurlManager), false)\n#1 /var/www/html/laeje/EpiTwitter.php(122): EpiTwitterJson->__get('response')\n#2 /var/www/html/laeje/EpiTwitter.php(44): EpiTwitter->request('POST', '/statuses/updat...', Array)\n#3 /var/www/html/laeje/twittercast.php(149): EpiTwitter->post('/statuses/updat...', Array)\n#4 {main}\n thrown in /var/www/html/laeje/EpiTwitter.php on line 259

                          Comment

                          • idobi
                            Senior Member
                            • Feb 2003
                            • 119

                            Just browsing the scripts, I think the main problem for those having problems is that some users accounts cannot use the v1 api and must update the api version to v1.1.

                            In EpiTwitter.php, try changing:
                            protected $apiVersion = '1.1';

                            There's no obvious reasoning on what version is available. I have old accounts that require 1.1, while new accounts can still use v1. For all practical purposes though, it should be updated to 1.1 since v1 is deprecated.
                            idobi Network - http://idobi.com/
                            idobi Radio - http://idobiradio.com/
                            idobi App now available for iOS, Android and Windows Phone (http://idobi.com/app/)

                            Comment

                            • mixy
                              Junior Member
                              • Sep 2008
                              • 22

                              Hello everyone. Been a while.
                              Is anybody's twittercast working? Mine stopped working sometime around the 13th of January and i have been in and out of my server like a hundred times since then.
                              Who knows if something recently changed on twitter side?

                              I have deleted and created apps like four times and done everything according to the instructions. When i upload the folder and open it in my browser, it shows the number of listeners and post to my twitter just one time and thats it. It wont post anymore. Cron job was set and still does not get it working.

                              I set permissions in twitter read and write. I also set it to post.
                              I copied all the keys into the appropriate places.

                              Anyone still got this working? Kindly point me in the right direction to get mine up and running.

                              Dopelabs, nice to know you are still on this.

                              Comment

                              • Vitoko1998
                                Junior Member
                                • Jan 2013
                                • 5

                                I thank you, and I managed to install and leave twittercast operating. The problem is that Twitter posts while you have only makes the url: http://dominio.com/twittercast/twitter.php
                                When I close the web does not work.
                                Please help.

                                (Spanish text translated to English)

                                Comment

                                Working...
                                X