GithubHelp home page GithubHelp logo

adammoses-github / mmm-tweetsbytimelineorlist Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 5.0 49 KB

A module for the Magic Mirror to display tweets from a user's timeline or list.

License: MIT License

JavaScript 100.00%
display-tweets list magicmirror timeline tweets twitter

mmm-tweetsbytimelineorlist's People

Contributors

adammoses-github avatar richalberth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mmm-tweetsbytimelineorlist's Issues

All white screen whenever MMM-TweetsByTimelineOrList is enabled

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;}

Umlaute missing

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 :)

Displaying too many tweets

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;}

`
20190625_134620
20190625_134557
20190625_134648

Won't access my Twitter list

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?

Showing all of the pulled tweets at once

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.

Description in "Using the module" is wrong

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.

Not sure what to put for "screenName" and "listToShow"

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.