adammoses-github / mmm-tweetsbytimelineorlist Goto Github PK
View Code? Open in Web Editor NEWA module for the Magic Mirror to display tweets from a user's timeline or list.
License: MIT License
A module for the Magic Mirror to display tweets from a user's timeline or list.
License: MIT License
Whenever I have this module enabled in my config.js file, the entire screen is just a blank white page.
With this module disabled everything works just fine.
I have verified that my consumer_key, consumer_secret, access_token_key, and access_token_secret values are all correct and have configured the module exactly as described in the readme with no success. I've tried plugging in junk twitter api keys to test but even with that the same problem happens. No other errors or problems, just a big blank white screen.
Any idea what needs to be changed for this to work properly?
My config.js is below (with my identifying details removed)...
Thanks for your help!
config.js:
var config = {
port: 8080,
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
language: 'en',
timeFormat: 12,
units: 'imperial',
modules: [
{
module: 'helloworld',
position: 'top_bar',
config: {
text: "Mirror, mirror, on the wall....",
}
},
{
module: 'MMM-TweetsByTimelineOrList',
position: 'bottom_left',
config: {
consumer_key: 'deleted',
consumer_secret: 'deleted',
access_token_key: 'deleted',
access_token_secret: 'deleted',
screenName: 'someinterestingtwitterfeed',
listToShow: 'TIMELINE',
}
},
{
module: 'mmm-weatherchart',
position: 'bottom_left',
config: {
country: 'United_States',
area: 'somewhere',
city: 'somewhere',
updateInterval: 60 * 60 * 1000,
hideBorder: true,
}
},
{
module: 'MMM-SimpleLogo',
position: 'top_center',
config: {
fileUrl: 'deleted',
}
},
{
module: 'clock',
position: 'top_left'
},
{
module: 'calendar',
header: 'US Holidays',
position: 'top_left',
config: {
calendars: [
{
symbol: 'calendar-check-o ',
url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
}
]
}
},
{
module: 'calendar_monthly',
position: 'top_left',
config: {
showHeader: true,
cssStyle: 'custom',
updateDelay: 5,
}
},
{
module: 'currentweather',
position: 'top_right',
config: {
location: 'somewhere',
locationID: 'someID', //ID from http://www.openweathermap.org
appid: 'deleted'
}
},
{
module: 'weatherforecast',
position: 'top_right',
header: 'Weather Forecast',
config: {
location: 'somewhere,
locationID: 'someID', //ID from http://www.openweathermap.org
appid: 'deleted'
}
},
{
module: 'MMM-iFrameReload',
header: 'Current Traffic',
position: 'bottom_right',
config: {
url: "http://localhost:8080/modules/MMM-iFrameReload/Traffic.html",
width: "450px",
height: "450px",
refreshinterval: 600,
}
},
{
module: 'newsfeed',
position: 'lower_third',
config: {
feeds: [
{
title: "The New York Times",
url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
},
{
title: "BBC World News",
url: "http://feeds.bbci.co.uk/news/world/us_and_canada/rss.xml"
},
{
title: "CNN",
url: "http://rss.cnn.com/rss/cnn_topstories.rss"
},
],
showSourceTitle: true,
showPublishDate: true
}
},
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== 'undefined') {module.exports = config;}
Hello everyone :D Using the module in germany, i discovered that it doesn't display any äöü or ß. I can imagine, that other character's variations of several european languages can not be displayed correctly as well :D
Please fix it :)
black screen when running magic mirror after adding the module and editing the config file
I have tweetsToShowAtATime set to 3 and when the MagicMirror is on it will cycle through 3 "sets" of tweets. Two of these sets are many tweets long and the other one set it only 3 tweets like it is suppose to be. The two sets that are long take up way to much space on the screen. Is there any way to fix this? This is a closed issue that I couldn't find a solution for. Below is my config and some pictures of what's being displayed
`/* Magic Mirror Config Sample
*
*/
var config = {
address: "0.0.0.0", // Address to listen on, can be:
// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
// - another specific IPv4/6 to listen on a specific interface
// - "", "0.0.0.0", "::" to listen on any interface
// Default, when address config is left out, is "localhost"
port: 8080,
ipWhitelist: [], // Set [] to allow all IP addresses
// or add a specific IPv4 of 192.168.1.5 :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
language: "en",
timeFormat: 24,
units: "metric",
modules: [
{
module: "alert",
},
{
module: "updatenotification",
position: "top_bar"
},
{
module: "clock",
position: "top_left"
},
{
module: 'MMM-Remote-Control',
position: 'bottom_center',
config: {
customCommand: {},
customMenu: "custom_menu.json",
showModuleApiMenu: true,
apiKey: "",
}
},
{
module: 'MMM-TweetsByTimelineOrList',
position: 'top_left',
config: {
consumer_key: 'my key',
consumer_secret: 'my secret',
access_token_key: 'key',
access_token_secret: 'secret',
screenName: 'Tommie',
listToShow: 'TIMELINE',
tweetsToShowAtATime: '3',
excludeRetweets: false,
excludeMediaTweets: true,
tweetUpdateRefreshRate: '60000',
}
},
{
module: 'MMM-Screencast',
position: 'bottom_right',
config: {
position: 'topCenter',
height: 300,
width: 500,
}
},
{
module: "MMM-DarkSkyForecast",
header: "Weather",
position: "top_right",
classes: "default everyone",
disabled: false,
config: {
apikey: "key",
latitude: "34.636700",
longitude: "-120.113420",
iconset: "4c",
units: "us",
concise: false,
forecastLayout: "table"
}
},
{
module: "MMM-Spotify",
position: "top_center",
config: {
}
},
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
Hello
tweets longer then 160 characters are cut of.
is there a parameter to change that?
When I enter in my username and the name of my list, I just get a constant "Awaiting Update..." on my mirror. If I use 'TIMELINE", however, it does pull up my timeline, so I know the main part of the code is running properly. Any ideas?
I've just installed this module, and found that it cycles between two sets of tweets, the first set (of four) appear to be the same tweets every time, and the second set is showing all of the pulled tweets at once, which spans across the entire mirror. I've set the 'show tweets at a time' to 4. Any ideas? Cheers.
In your description of the Modue MMM-TweetsByTimelineOrList under Using the module the config has the Name MMM-TwitterTrendsByPlace instead of MMM-TweetsByTimelineOrList - with this config the module dont work.
The module works but when there is a tweet with special characters (like á, é, etc.) those characters are omitted.
Helo
I have "created" a developer account for my twitter account and generated all the Keys.
For the option "consumer_key" i put in Value, which name on twitter is "API Key"
For the option "consumer_secret" i put in Value, which name on twitter is "API Key Secret"
For the option "access_token_key" i put in Value, which name on twitter is "Access Token"
For the option "access_token_secret" i put in Value, which name on twitter is "Access Token Secret"
I hope this is correct.
Now I am not sure what to put for "screenName" and "listToShow". I for now have:
screenName: 'mcdangerjr'
listToShow: 'magicmirror'
This is the name of my twitter account (my @) and the name of the list I created on this account. The list is set to public. All I get on the magic mirror is "Awaiting Update...".
Did I specify something the wrong way?
Thanks for looking into it
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.