Author Topic: Need help setting up mail control and twitter plugins  (Read 4726 times)

Offline BoonDogs

  • Newbie
  • *
  • Join Date: Jan 2016
  • Location: Southern Highlands, NSW, Australia
  • Posts: 13
  • Kudos: 0
  • I have servere CLAP
    • Leaping Lights Facebook
Need help setting up mail control and twitter plugins
« on: May 21, 2016, 12:22:53 AM »
Hi all,


I need some assistance setting up the mail control function, where I can control the playlists and send an overlay to my mega tree. I also need a hand setting up the twitter function.


I have zero idea what I am doing and where to start. Is anybody willing to guide me through?


Noob question I know


Thanks
https://www.facebook.com/leapinglights/
F16v2
PixLite 16
27 Channel RGB Controller
6 Channel RGB Controller
2x LOR CCR
2x LOR CTB16PC

Offline StickyWicket

  • Full Member
  • ***
  • Join Date: Sep 2015
  • Location: Wenatchee, WA
  • Posts: 126
  • Kudos: 4
Re: Need help setting up mail control and twitter plugins
« Reply #1 on: May 21, 2016, 12:30:56 AM »
I just recently got the Twitter one working if you'd like help with that part.

Offline StickyWicket

  • Full Member
  • ***
  • Join Date: Sep 2015
  • Location: Wenatchee, WA
  • Posts: 126
  • Kudos: 4
Re: Need help setting up mail control and twitter plugins
« Reply #2 on: May 21, 2016, 12:47:42 AM »
I am going to do my best here, in all fairness I have only set this up once myself but I did get it working.

First start by creating a Pixel Overlay Model, it can be found by going to Input/Output Setup>Pixel Overlay Models on your FPP

My setup is using an entire 21Rx42C Matrix (21 Rows X 42 Columns X 3 Channels = 2646 Total Channels)

Offline StickyWicket

  • Full Member
  • ***
  • Join Date: Sep 2015
  • Location: Wenatchee, WA
  • Posts: 126
  • Kudos: 4
Re: Need help setting up mail control and twitter plugins
« Reply #3 on: May 21, 2016, 12:49:37 AM »
(Didn't get the picture attached to the last post)

Offline StickyWicket

  • Full Member
  • ***
  • Join Date: Sep 2015
  • Location: Wenatchee, WA
  • Posts: 126
  • Kudos: 4
Re: Need help setting up mail control and twitter plugins
« Reply #4 on: May 21, 2016, 12:52:51 AM »
Install the following Plugins:
Matrix Tools
Message Queue to Matrix Overlay
Message Queue Aggregator for Plugins
Twitter - Tweet Download
Crontab Editor

Don't worry about setting them up just yet


Offline BoonDogs

  • Newbie
  • *
  • Join Date: Jan 2016
  • Location: Southern Highlands, NSW, Australia
  • Posts: 13
  • Kudos: 0
  • I have servere CLAP
    • Leaping Lights Facebook
Re: Need help setting up mail control and twitter plugins
« Reply #5 on: May 21, 2016, 12:58:28 AM »
Install the following Plugins:
Matrix Tools
Message Queue to Matrix Overlay
Message Queue Aggregator for Plugins
Twitter - Tweet Download
Crontab Editor

Don't worry about setting them up just yet

Okay, I've installed all the plugins. But their setup is quite confusing

Offline StickyWicket

  • Full Member
  • ***
  • Join Date: Sep 2015
  • Location: Wenatchee, WA
  • Posts: 126
  • Kudos: 4
Re: Need help setting up mail control and twitter plugins
« Reply #6 on: May 21, 2016, 01:07:33 AM »
You need to use the Matrix Tools plugin to verify your overlay is in the correct spot. Go to Status/Control>Matrix Tools
Select your Overlay you created in the first step.
Change the State to Enabled
In the Text box type something and hit Go
You should see your message scroll across your overlay.

Offline BoonDogs

  • Newbie
  • *
  • Join Date: Jan 2016
  • Location: Southern Highlands, NSW, Australia
  • Posts: 13
  • Kudos: 0
  • I have servere CLAP
    • Leaping Lights Facebook
Re: Need help setting up mail control and twitter plugins
« Reply #7 on: May 21, 2016, 01:17:15 AM »
Okay, the positioning is correct, I am able to see the text scroll across the virtual matrix on the screen

Offline StickyWicket

  • Full Member
  • ***
  • Join Date: Sep 2015
  • Location: Wenatchee, WA
  • Posts: 126
  • Kudos: 4
Re: Need help setting up mail control and twitter plugins
« Reply #8 on: May 21, 2016, 01:27:05 AM »
Goto http://dev.twitter.com

Make sure you are signed in with the Twitter account you want to download from.

At the bottom of the page there is a link to Manage Your Apps

Click the Create New App button

Fill out the Application Details fields.
You must fill out the red asterisk fields.
You can use anything you want for the names, the website has to be a validly formatted URL but doesn't need to be a real one. (In my picture you see http://www.NelsonFamilyLights.com which isn't actually a website yet)

Offline StickyWicket

  • Full Member
  • ***
  • Join Date: Sep 2015
  • Location: Wenatchee, WA
  • Posts: 126
  • Kudos: 4
Re: Need help setting up mail control and twitter plugins
« Reply #9 on: May 21, 2016, 01:51:04 AM »
Once your Twitter App as been created click on Keys and Access Tokens at the top.
Towards the bottom of that page there is a button to Create your Access Token.
You'll need to copy four things into your FPP Twitter Setup

You'll want to have to browser pages open so you can cut and paste them into the FPP Setup

Click the ENABLE PLUGIN checkbox on your Twitter Setup page and then the Restart FPPD button. You'll know it's enabled if you get the extra boxes to fill in with all your Twitter info

The fields are filled in as follow (with the FPP pages fields listed second)

Access Token --> OAUTH Access Token
Access Token Secret --> OAUTH Access Token Secret
Consumer Key (API Key) --> Consumer Key
Consumer Secret (API Secret) --> Consumer Secret

(My keys don't match up in the pictures because I created a new app on Twitter to do this write up)

It is important that you do not post any of the above keys on any forums or elsewhere on the internet. This gives any program(er) complete access to your Twitter account.

Fill out the Twitter Username field on the FPP. (You can use it with or without the @)

Click the Save Config button



Offline StickyWicket

  • Full Member
  • ***
  • Join Date: Sep 2015
  • Location: Wenatchee, WA
  • Posts: 126
  • Kudos: 4
Re: Need help setting up mail control and twitter plugins
« Reply #10 on: May 21, 2016, 01:57:26 AM »
On the MatrixMessage setup screen

Click Enable Plugin
Select your Matrix Overlay
Select the Plugin(s) you want to "subscribe" to
Click Save Config

Subscribing just means that you'll be displaying messages to your matrix from that plugin if there are messages to display

Offline StickyWicket

  • Full Member
  • ***
  • Join Date: Sep 2015
  • Location: Wenatchee, WA
  • Posts: 126
  • Kudos: 4
Re: Need help setting up mail control and twitter plugins
« Reply #11 on: May 21, 2016, 02:12:56 AM »
On the CronEditor setup page you need to create a cron job for each plugin that is generating messages and one to actually write them to your matrix:

Code: [Select]
*/2 * * * * /home/fpp/media/plugins/Twitter/getTWITTER.php
*/1 * * * * /home/fpp/media/plugins/MatrixMessage/matrix.php

Add these lines one at a time by pasting it into the Add New Cron Job field and hitting submit. The page doesn't refresh on it's own so I leave the screen by clicking on something else and then going back to the Cron Editor page

A cron job is a timed running of something. In the above example this will download from Twitter every two minutes and display messages to the Matrix every one minute. You can get really creative on how often you want these cron jobs running. I am by no means a cron job timing guru so I won't elaborate. Google is your friend when it comes to creating specific cron job timings.

As a side note I first had this set to run Twitter every minute but would get an error every so often so I dialed it back to once every two minutes. You don't want to download from Twitter too often or they could end up blocking your app.



Offline StickyWicket

  • Full Member
  • ***
  • Join Date: Sep 2015
  • Location: Wenatchee, WA
  • Posts: 126
  • Kudos: 4
Re: Need help setting up mail control and twitter plugins
« Reply #12 on: May 21, 2016, 02:15:16 AM »
The MessageQueue plugin just needs to have the Enable Plugin checkbox checked. It may come installed that way, I couldn't remember.


Offline BoonDogs

  • Newbie
  • *
  • Join Date: Jan 2016
  • Location: Southern Highlands, NSW, Australia
  • Posts: 13
  • Kudos: 0
  • I have servere CLAP
    • Leaping Lights Facebook
Re: Need help setting up mail control and twitter plugins
« Reply #13 on: May 21, 2016, 02:16:27 AM »
On the CronEditor setup page you need to create a cron job for each plugin that is generating messages and one to actually write them to your matrix:

Code: [Select]
*/2 * * * * /home/fpp/media/plugins/Twitter/getTWITTER.php
*/1 * * * * /home/fpp/media/plugins/MatrixMessage/matrix.php

Add these lines one at a time by pasting it into the Add New Cron Job field and hitting submit. The page doesn't refresh on it's own so I leave the screen by clicking on something else and then going back to the Cron Editor page

A cron job is a timed running of something. In the above example this will download from Twitter every two minutes and display messages to the Matrix every one minute. You can get really creative on how often you want these cron jobs running. I am by no means a cron job timing guru so I won't elaborate. Google is your friend when it comes to creating specific cron job timings.

As a side note I first had this set to run Twitter every minute but would get an error every so often so I dialed it back to once every two minutes. You don't want to download from Twitter too often or they could end up blocking your app.


Okay I'm following so far. I have submitted the cron job, it is being displayed on the page. Keen to get this working (:

Offline StickyWicket

  • Full Member
  • ***
  • Join Date: Sep 2015
  • Location: Wenatchee, WA
  • Posts: 126
  • Kudos: 4
Re: Need help setting up mail control and twitter plugins
« Reply #14 on: May 21, 2016, 02:34:20 AM »
****If you are following these instructions you can now ignore this step. The plugin code has been revised. Click the Update Plugin button and it will fix this issue****


There is a logic error in the MatrixMessage configuration setup file which means you need to edit the file manually.

It is located on your FPP: fpp\media\config\plugin.MatrixMessage

You can edit this in wordpad on a Windows machine (notepad butchers the formatting)

The line you need to change is:

Code: [Select]
ENABLED = "on"

to

Code: [Select]
ENABLED = "1"

The reason for this change is the matrix.php file has code that reads:
Code: [Select]
if($ENABLED != "1") {
    logEntry("Plugin Status: DISABLED Please enable in Plugin Setup to use & Restart FPPD Daemon");
    lockHelper::unlock();
    exit(0);

}

It is expecting a 1 to mean enabled but the setup actually writes it as on. I think the original developer was converting all the 0 an 1 logic over to off and on and just missed this one (Just a guess)
« Last Edit: May 26, 2016, 02:05:59 AM by StickyWicket »

 

Back to top