News:

LATEST RELEASE:  FPP 5.5 - Download from here - https://github.com/FalconChristmas/fpp/releases/tag/5.5

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 15160
Latest: JaxLax
New This Month: 8
New This Week: 2
New Today: 0
Stats
Total Posts: 123401
Total Topics: 14997
Most Online Today: 63
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 2
Guests: 42
Total: 44

Need help setting up mail control and twitter plugins

Started by BoonDogs, May 21, 2016, 12:22:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BoonDogs

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

StickyWicket

I just recently got the Twitter one working if you'd like help with that part.

StickyWicket

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)

StickyWicket

(Didn't get the picture attached to the last post)

StickyWicket

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


BoonDogs

Quote from: StickyWicket 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

Okay, I've installed all the plugins. But their setup is quite confusing
https://www.facebook.com/leapinglights/
F16v2
PixLite 16
27 Channel RGB Controller
6 Channel RGB Controller
2x LOR CCR
2x LOR CTB16PC

StickyWicket

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.

BoonDogs

Okay, the positioning is correct, I am able to see the text scroll across the virtual matrix on the screen
https://www.facebook.com/leapinglights/
F16v2
PixLite 16
27 Channel RGB Controller
6 Channel RGB Controller
2x LOR CCR
2x LOR CTB16PC

StickyWicket

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)

StickyWicket

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



StickyWicket

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

StickyWicket

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:


*/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.



StickyWicket

The MessageQueue plugin just needs to have the Enable Plugin checkbox checked. It may come installed that way, I couldn't remember.


BoonDogs

Quote from: StickyWicket 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:


*/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 (:
https://www.facebook.com/leapinglights/
F16v2
PixLite 16
27 Channel RGB Controller
6 Channel RGB Controller
2x LOR CCR
2x LOR CTB16PC

StickyWicket

#14
****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:


ENABLED = "on"


to


ENABLED = "1"


The reason for this change is the matrix.php file has code that reads:

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)

Support FPP

+- Recent Topics

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod