RadioDJ - Free Radio Automation Software Forum

Send song to Twitter/Facebook/Google+/LinkedIn (and limited Instagram)

Re: Send song to twitter and facebook etc
« Reply #30 on: January 30, 2016, 05:48:11 PM »
Don't really know about the valid variables in RadioDJ, but if $request_username$ is valid, this should work.
Also you didn't really say what the problem is, only THAT there is a problem.
Last but not least: You know there's still a limit of 140 characters at twitter?
Yes I know of the character limit. I'm sorry I guess I didn't say the problem. The problem is that the $request_username$ does not get tweeted. It is a RDJ stream variable but is not working.
RiseRadio.org // EncoreMediaSystems.com

Re: Send song to twitter and facebook etc
« Reply #31 on: January 30, 2016, 05:50:49 PM »
Sorry, but I guess I can't help here.
Are you sure you can use $request_username$ here?
We don't filter anything on our end, so it looks like radiodj is not evaluating that variable before sending the HTTP request.

Re: Send song to twitter and facebook etc
« Reply #32 on: January 30, 2016, 05:53:01 PM »
Since $title$ and $artist$ can be used and $request_username$ are explained in the same file I would imagine so, but maybe Marius would know.
RiseRadio.org // EncoreMediaSystems.com

Re: Send song to twitter and facebook etc
« Reply #33 on: February 12, 2016, 06:11:52 PM »
This will probably not fix the problem of marcbeinder, but it might be interesting for to all users of my webservice(s).
I played around with C# programming in the past couple of days. (I've never written a single line of C# code before that day).

This should be a specialized alternative to the default NowPlaying plugin based on what I learned about the Plugin Interface of RadioDJ without having any documentation at hand.
Basically it can read the PAL script generated by my web application and send the now playing track to the beta application.

https://github.com/songposter/plugin-radiodj (replaced broken Dropbox link)

It's very early in development and doesn't provide all too many features.
For the future it's planned to at least support the "send post every x tracks" feature and maybe the time based intervals as well, but the later depends on whether or not I can find out how to "wait" without locking the whole application.
« Last Edit: August 10, 2016, 12:17:48 PM by Mastacheata »

Offline Jhonny

  • *****
  • 3672
  • Peace, enjoy life.it's over before you've lived it
    • Jhonny's RadioDJ tutorials.
Re: Send song to twitter and facebook etc
« Reply #34 on: February 12, 2016, 07:53:00 PM »
First welcome!

I and others like it to test things.
 I downloaded the file Plugin_SongPoster.dll, but where should I put this?
The plugin folder? (Think it is so because there is, Plugin).
I am iust a noob, how it works?

 But keep up the good things, that make rdj beter!
« Last Edit: February 12, 2016, 08:03:54 PM by Jhonny »
R.T.F.M. means to me, Read The Fantastic Messages.
Make things simple, but don't make simple things simpler!
I don't do drugs, I do tuts. ( ͡° ͜ʖ ͡°) visit  https://radiodj.info

Testing RadioDJ v2.0.2.0 Beta

Re: Send song to twitter and facebook etc
« Reply #35 on: February 12, 2016, 09:08:42 PM »
Oh, sorry. Thought that was obvious.
It's basically an in place replacement for the Now Playing plugin.

You put it into the Plugin foler, (re)start RadioDJ and do the configuration stuff.
Once configured with valid credentials for my webservice, the plugin should start posting every track to whatever services you select.


After hitting the Save button, the window will close and it will start posting.
Remember, this is basically just a preconfigured clone of the NowPlaying Plugin.
You still need to sign up at my webservice first, but I guess you already noticed what this thread is about since you're a seasoned user of this forum.

Offline Jhonny

  • *****
  • 3672
  • Peace, enjoy life.it's over before you've lived it
    • Jhonny's RadioDJ tutorials.
Re: Send song to twitter and facebook etc
« Reply #36 on: February 12, 2016, 09:28:51 PM »
Quote
seasoned user of this forum.

Think i em... :angel:

But love this stuff....

Waiting impatiently when the beta version is ready.  :cool:
R.T.F.M. means to me, Read The Fantastic Messages.
Make things simple, but don't make simple things simpler!
I don't do drugs, I do tuts. ( ͡° ͜ʖ ͡°) visit  https://radiodj.info

Testing RadioDJ v2.0.2.0 Beta

Re: Send song to twitter and facebook etc
« Reply #37 on: February 12, 2016, 09:35:38 PM »
That wasn't meant to shame you or anything like that. (for the lack of better words)
I've earned my spurs at the SAM Broadcaster forum with 12 years of service and close to 7.000 posts ;)
Also I'm computer science student and love to try new stuff in my spare time. (Which is also how this project started almost exactly 6 years ago.

Offline Jhonny

  • *****
  • 3672
  • Peace, enjoy life.it's over before you've lived it
    • Jhonny's RadioDJ tutorials.
Re: Send song to twitter and facebook etc
« Reply #38 on: February 12, 2016, 09:42:58 PM »
Hail to the students...  ;D
R.T.F.M. means to me, Read The Fantastic Messages.
Make things simple, but don't make simple things simpler!
I don't do drugs, I do tuts. ( ͡° ͜ʖ ͡°) visit  https://radiodj.info

Testing RadioDJ v2.0.2.0 Beta

Re: Send song to twitter and facebook etc
« Reply #39 on: February 12, 2016, 10:23:50 PM »
Said like a real university professor >:D

Re: Send song to twitter and facebook etc
« Reply #40 on: February 13, 2016, 01:06:45 AM »
Just finished the Interval posting option.
The plugin should be pretty much on par with the SAM Broadcaster PAL now.
It even knows how to parse all options from the PAL the website generates.


There's a notable difference in how time based intervals work, though.
If you tell SAM Broadcaster to post in 15 minutes, it waits 15 minutes and will post whatever track is playing at that moment.
If you tell RadioDJ to post in 15 minutes, it waits 15 minutes and then waits for the next track change to post the new track.

The plugin is still available at the same place. And for those interested: The source code is available on GitHub: https://github.com/songposter/plugin-radiodj

Re: Send song to twitter and facebook etc
« Reply #41 on: February 13, 2016, 09:47:20 AM »
I installed the plugin as instructed. To me it is not clear which user ID and password I should use because songposter or Buffer didn't give me one.

After the installed time (10 min) RadioDJ gives an exception. Track change freezes due to the plugin.

Can you please help?
« Last Edit: February 13, 2016, 10:34:44 AM by clubhuis »

Re: Send song to twitter and facebook etc
« Reply #42 on: February 13, 2016, 02:21:05 PM »
For the moment you'll have to take the UserId from the PAL file.


getStr := 'http://songposter.net' + '/' + 'send-post' + '/'
            + 'google' + '/' + '0' + '/' + '1' + '/' + 'superDuperPassword' + '/' + status + '/' + picture;
  • google is the NETWORK (twitter and facebook are the other options)
  • 0 is the SCOPEID (this is usually 0 except for people with multiple accounts per network and an Awesome [paid] account at Buffer.com)
  • 1 is the USERID (auto-incrementing number, quite easy to guess for others, that's why we have a password field as well)
  • superDuperPassword is the PASSWORD (this is either auto-generated or the one chosen by you on account creation)
  • You can obviously change the stuff $artist$%20-%20$title$ to suit your needs. (This resembles the status variable in the SAM PAL script)
  • AFAIK RadioDJ doesn't support automaticaly uploaded pictures, but if you upload them yourself and build your picture filenames so they can be constructed from artist, title and/or album name, you could post cover art from RadioDJ as well.


Regarding the exception/ freezing: I'll investigate that later this weekend. Don't have Visual Studio on this Computer.

Re: Send song to twitter and facebook etc
« Reply #43 on: February 20, 2016, 10:50:03 AM »
Still no luck with posting anything tot Twitter or Facebook. Are there any new tips/tricks/developments?

Re: Send song to twitter and facebook etc
« Reply #44 on: March 24, 2016, 10:53:45 PM »
Not really. The Plugin development is halted indefinitely.
I can reproduce the Exception/Hangup, but can't explain why and can't find any problematic code.

I'll be glad to help with the manual way, best contact me directly via the Google Group or by mail and we'll go through your information and the custom setup for you.
This offer is open to anyone.