|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#161 |
|
Junior Member
Join Date: Mar 2011
Posts: 7
|
@dopelabs - Thanks for trying to resolve this problem of mine! I'm didn't see the partial command and thx for pointing it out. I managed to find out the full path is actually: /home/u507942607/public_html/twitter/twitter.php
The problem is that now that everything is right its still not working. Here is the cron job in current cron job list. EDIT: I have a paid host that can run custom cron commands and it works flawlessly! Seems like this was the only way to solve this problem! Thank for the help dopelabs! I have been using your suggestion underneath this post minutes after I posted my first question. Looks like I have a reason to keep this paid host after all! Last edited by pimphesus; 13th July 2011 at 18:54. |
|
|
|
|
|
#162 |
|
Member
|
[QUOTE=pimphesus;2787414]@dopelabs - Thanks for trying to resolve this problem of mine! I'm didn't see the partial command and thx for pointing it out. I managed to find out the full path is actually: /home/u507942607/public_html/twitter/twitter.php
The problem is that now that everything is right its still not working. Here is the cron job in current cron job list.[/QUOTEi i would make sure that the file permissions are all correct... and see if you can enter in your own command instead of it trying to use the php -f command... see if you can enter in a custom command and use the command that i provide in this thread. |
|
|
|
|
|
#163 |
|
Member
|
can any 1 tell me what host they are unseeing that the script work cause i been threw 3 hosting and none them work my main site is with host gator and it will not work on that hosting at all was on the phone with tech support and they could not figure it out
http://www.wdsro.com//twit/twitter.php this whats its saying - 0 Listeners http://www.dirtysouthradioonline.com and i have everything configure right cause they host i was with had problems so looking for new hosting can any1 help me |
|
|
|
|
|
#164 |
|
Junior Member
Join Date: Feb 2010
Posts: 14
|
^^@Dirtysouthradio its not working for me too.
|
|
|
|
|
|
#165 |
|
Member
|
mines working now ask dopelabs to help u he help me thanks doeplabs
|
|
|
|
|
|
#166 |
|
Member
|
bump... i can provide hosting for anyone who needs it for twittercast... or anything else really.. shoutcast, websites, etc, etc
|
|
|
|
|
|
#167 |
|
Junior Member
Join Date: May 2007
Posts: 5
|
Afternoon,
How would I configure the script to work with a Shoutcast 2.0 server? If I head straight to http://SERVERNAME:PORT I get a page with either 'Stream #1' or 'admin login'. Same deal if I use the IP address. My full URL to get to the stream is http://SERVERNAME:PORT/index.html?sid=1 |
|
|
|
|
|
#168 |
|
Member
|
i dont think this works for sc 2 servers...
|
|
|
|
|
|
#169 |
|
Junior Member
Join Date: Dec 2011
Posts: 16
|
This isn't working for me, can someone help walk me through it? Thanks.
|
|
|
|
|
|
#170 |
|
Junior Member
Join Date: Dec 2011
Posts: 16
|
this doesn't work for me, can someone give me a walk through?
|
|
|
|
|
|
#171 |
|
Junior Member
|
Alternative
Dopelabs, this was just awesome and worked great for me, up until Twitter started using OAUTH. After that, due to problems with I don't know what (service provider? twitter? webhost?), I was never able to get it to work again.
It is still the best option for a free tool that performs this service (I really looked around). But for those like me who are simple souls when it comes to this kind of thing, Brandon Fuller has a dead simple $15 WinAmp plugin that serves the purpose, very nicely. Has some other nifty options, too. Just google it. I LOVED Twittercast and highly recommend it to anybody who can use it. If you can't, though, this other one works great for the price. |
|
|
|
|
|
#172 |
|
Junior Member
Join Date: Feb 2012
Posts: 16
|
How To Setup On New Twitter.
Had trouble setting this up, was going thru all these comments & took numerous hrs to figure out what was going on. but i finally got it working & posting on my twitter status... so it def still works on the new twitter. & i would def like to thank the poster & creator of this script. it def is one of a few that work really well.
Check Mines Here: http://twitter.com/#!/m1uradio HERES HOW I SET UP MINES: DOWNLOAD The twittercast from 1st post: http://www.dubstep.fm/tools/twittercast.zip problem lies in the twitter app. 1. Download required files 2. Edit twitterAPI.php username and password 3. Edit twittercast.php server info 6. Upload all files in the same web directory 7. Access twittercast.php using your browser Now Go to Twitter Dev & Create Your App: https://dev.twitter.com/ Once created & info all entered (domain sitename, etc.) generate/create your access token. Should Read Like So: Your access token Use the access token string as your "oauth_token" and the access token secret as your "oauth_token_secret" to sign requests with your own Twitter account. Do not share your oauth_token_secret with anyone. Access token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Access token secret xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Access level Read Go into your setting: change to read & write Go into your OAuth Settings Tab. (HERES WHERE THE PROBLEM LIES) OAuth settings: Consumer key: xxxxxxxxxxxxxxxxxxxxxxxxx Consumer secret: xxxxxxxxxxxxxxxxxxxxxxx Remember this should not be shared. Access token: xxxxxxxxxxxxxxxxxxxxxx Access token secret: xxxxxxxxxxxxxxxxxxxxxxxxx Remember this should not be shared. Request settings Request type: * GET POST * DELETE PUT HEAD Request URI: https://api.twitter.com/1/ U Have To Select Post & Enter This Into The Request URI: https://api.twitter.com/1/yourtwitte..._timeline.json Select The See OAuth signature for this Request button & Once Done Your Now Authorized & Your Status Should Start Updating To Your Twitter... NOTE IF U CHANGE WHERE IT SAYS LISTENING OR ADDING WORDS BEFORE IT CAN CAUSE IT NOT TO POST.. HOPE THIS HELPS OUT... |
|
|
|
|
|
#173 |
|
Junior Member
Join Date: Feb 2012
Posts: 6
|
Hi, sorry if I'm treading on any toes here, but I've made a few changes to make this work for DNAS v2. Hope there's no mistakes and it works, or its of some use or whatever.
Here's a demo of it working: https://twitter.com/#!/APFMTest <?php include 'EpiCurl.php'; include 'EpiOAuth.php'; include 'EpiTwitter.php'; #Consumer key token $consumer_key = 'xxxxxxxxxxxxxxx'; #Consumer secret token $consumer_secret = 'xxxxxxxxxxxxxxx'; #Access Token $token = 'xxxxxxxxxxxxxxx'; #Access Token Secret $secret= 'xxxxxxxxxxxxxx'; $twitterObj = new EpiTwitter($consumer_key, $consumer_secret, $token, $secret); $twitterObjUnAuth = new EpiTwitter($consumer_key, $consumer_secret); $refresh = "30"; // Page refresh time in seconds. 0 for none. // URL to your Shoutcast server, including port (no HTTP) // (i think it has to be on the same server as sc_serv for security?) //localhost:8000 $server = "xxxxxxxxxxxxxx"; // Admin password for your Shoutcast server $password = "xxxxxxxxxxxxxx"; //opens the xml and puts it to a variable for processing $mysession = curl_init(); curl_setopt($mysession, CURLOPT_URL, "http://$server/admin.cgi?sid=1&mode=viewxml"); curl_setopt($mysession, CURLOPT_HEADER, false); curl_setopt($mysession, CURLOPT_RETURNTRANSFER, true); curl_setopt($mysession, CURLOPT_POST, false); curl_setopt($mysession, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($mysession, CURLOPT_USERPWD, "admin:$password"); curl_setopt($mysession, CURLOPT_FOLLOWLOCATION, true); curl_setopt($mysession, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); $xml = curl_exec($mysession); curl_close($mysession); //replace dodgy character encoding data from xml $xml = str_replace("***x27;", "'", $xml); $xml = str_replace("'", "'", $xml); $xml = str_replace(">", ">", $xml); $tweet = ""; $listeners = "0"; $current_song = ""; //functions for parsing xml data function startElement($parser, $name, $attrs) { global $curTag; $curTag .= "^$name"; } function endElement($parser, $name) { global $curTag; $caret_pos = strrpos($curTag, '^'); $curTag = substr($curTag, 0, $caret_pos); } //translate XML data into usable variables function characterData($parser, $data) { global $curTag; //add more variables here to get more info from XML global $listeners; global $current_song; //check your XML stream from sc_serv for the tags available to you //im just using current listeners and current song title if ($curTag == "^SHOUTCASTSERVER^CURRENTLISTENERS") { $listeners = $data; } if ($curTag == "^SHOUTCASTSERVER^SONGTITLE") { $current_song = $data; } } //control for parsing xml data $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, "startElement", "endElement"); xml_set_character_data_handler($xml_parser, "characterData"); xml_parse($xml_parser, $xml); xml_parser_free($xml_parser); //construct the tweet $tweet = "Are you one of the ".($listeners)." true junglist locked in to '"; $tweet .= $current_song; $tweet .= "' on AP>FM bit.ly/xrMsq6"; ?> <!-- shows example of what is being sent to twitter on html page. //--> <!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"> <?php if ($refresh != "0") { print "<meta http-equiv=\"refresh\" content=\"$refresh\">\n"; } print "<title>AP>FM - $current_song - ".($listeners)." Listeners</title>"; ?> </head> <body><center> <?php print "$tweet"; //checks current track in title.txt $fh = @fopen('title.txt', 'r+'); $track = @fread($fh, filesize('title.txt')); //if current track is the same as the last track if ($track == $current_song."\n"){ fclose($fh); //die die(0); //if current track is NOT the same as the last track }else{ @fclose($fh); // if it errors, then the file doesn't exist, and the stream was never open //change track in title.txt $fh = fopen('title.txt', 'w'); fwrite($fh, $current_song."\n"); fclose($fh); //send string to twitter API $twitterObj->post('/statuses/update.json', array('status' => $tweet)); } ?> </center> </body> </html> |
|
|
|
|
|
#174 |
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
Not got my head around DNAS2 yet!
|
|
|
|
|
|
#175 |
|
-
Join Date: Sep 2003
Location: UK
Posts: 22,247
|
such as...? (i really cannot remember if it's been covered by your other posts / pm's or not).
-daz |
|
|
|
|
|
#176 |
|
Junior Member
Join Date: Jan 2011
Posts: 2
|
Hi There all,
Im a newbie to this but defiantly something i want to use for my radio station. I have downloaded the file but seems i missing files or everything is named differently to what has been previously written. Im reading but so lost please can any help me www twitter com / flagzradio www flagzradio com |
|
|
|
|
|
#177 | |
|
Junior Member
Join Date: Feb 2012
Posts: 16
|
Quote:
Any Newer Version. This One Was Posted About 5yrs Ago. Should Be A Newer Version Or Newer Post. Just Cant Seem To Find Em. thanks in advanced |
|
|
|
|
|
|
#178 |
|
-
Join Date: Sep 2003
Location: UK
Posts: 22,247
|
what on earth are you going on about especially when you've taken one of my posts and completely taken it out of context as it was in reply to Busby.
-daz |
|
|
|
|
|
#179 | |
|
Junior Member
Join Date: Feb 2012
Posts: 16
|
Quote:
He stated he didn't get his head around DNAS 2 Yet... U Then Replied to Him Saying, U Didn't Know If It Was Covered Already By Post's Or PM's. I Replied To You Stating, Where Is This Information Covered.. If Possible Link It. This Thread Is For Twittercast: Shoutcast Song Title To Twitter Status Script I Believe.. But Im Now Having Problems With The Script Running On DNAS 2 Now. Hence Where My Question & Reply To You Came About. If This Was Covered Already OR DNAS 2 Has Been Covered, Where Are The Post/Threads????? Threads Here, Are Pretty Old & Needs Some Updated Info.. I Dont Think I Took One Of Your Post & Took It Out Of Context.. Simple Question... Maybe You Read It Out Of Context. |
|
|
|
|
|
|
#180 |
|
Junior Member
Join Date: Feb 2012
Posts: 6
|
I believe my post a few up works for DNAS v2. At least it's working for me.
https://twitter.com/#!/APFMLive |
|
|
|
|
|
#181 |
|
Junior Member
Join Date: Apr 2012
Posts: 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; 15th April 2012 at 13:53. Reason: added info |
|
|
|
|
|
#182 |
|
Junior Member
Join Date: May 2012
Posts: 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? |
|
|
|
|
|
#183 |
|
Junior Member
Join Date: Nov 2008
Posts: 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 |
|
|
|
|
|
#184 |
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
Still here..
|
|
|
|
|
|
#185 |
|
Junior Member
Join Date: Nov 2008
Posts: 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.. |
|
|
|
|
|
#186 |
|
Junior Member
Join Date: Nov 2008
Posts: 30
|
^^ bump
|
|
|
|
|
|
#187 |
|
-
Join Date: Sep 2003
Location: UK
Posts: 22,247
|
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 |
|
|
|
|
|
#188 |
|
Junior Member
Join Date: Aug 2012
Posts: 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 |
|
|
|
|
|
#189 |
|
Junior Member
|
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.
|
|
|
|
|
|
#190 |
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
Twittercast still works for me @1mixradio/@onemixradio [2 streams]
|
|
|
|
|
|
#191 |
|
Junior Member
Join Date: Feb 2012
Posts: 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! |
|
|
|
|
|
#192 |
|
Junior Member
Join Date: Jan 2013
Posts: 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 |
|
|
|
|
|
#193 |
|
Senior Member
|
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/) |
|
|
|
|
|
#194 |
|
Junior Member
Join Date: Sep 2008
Location: FL
Posts: 20
|
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. |
|
|
|
|
|
#195 |
|
Junior Member
Join Date: Jan 2013
Posts: 2
|
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) |
|
|
|
|
|
#196 | |
|
Junior Member
Join Date: Sep 2008
Location: FL
Posts: 20
|
Quote:
|
|
|
|
|
|
|
#197 |
|
Junior Member
Join Date: Sep 2008
Location: FL
Posts: 20
|
How did you get yours working cos mine has stopped working. Can you please tell me what you did differently while setting it up.
|
|
|
|
|
|
#198 |
|
Junior Member
Join Date: Jan 2013
Posts: 2
|
Ok thank you very much. I own Cpanel and see how I can solve it.
'll Let you know. |
|
|
|
|
|
#199 |
|
Junior Member
Join Date: Feb 2013
Posts: 3
|
EpiCurl.php on line 79
I got it to read the shoutcast but something is up with cURL StatesvilleRadio - Is Now Playing - 'Stone Temple Pilots - Plush'#nowplaying - on #statesvilleradio - http://goo.gl/IUqAG |
|
|
|
|
|
#200 |
|
Junior Member
Join Date: Feb 2013
Posts: 2
|
Hi! I'm having problems with the script. I accessed twittercast.php on my web browser and it's working... However, it can't seem to post the status update on twitter. Is the script still working?
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|