Coder Social home page Coder Social logo

dailyxkcd's Issues

Typo in readme

There is a small typo in the README.md, in the example: "title" should be "showTitle".

Not working

Doesn't seem to be working. Nothing shows up on my MagicMirror. I've tried several positions to no avail :/

Perhaps the xkcd json has changed? I can't read or write javascript so I can't really help.

Uses request module but latest MM removed it

Built a fresh mirror and all was well until I tried to add the only thing I really need... My dose of DailyXKCD

WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'request'
Require stack:

  • /home/pi/MagicMirror/modules/DailyXKCD/node_helper.js
  • /home/pi/MagicMirror/js/app.js
  • /home/pi/MagicMirror/serveronly/index.js

I was working on a pi0 so I was blaming that but I don't think that's the reason. More this...

https://forum.magicmirror.builders/topic/14866/v2-15-0

UPDATED - Replaced deprecated request package with node-fetch and digest-fetch.

Tried a quick fix but I don't really know what I'm doing in dot js land.

Change comic size

Awesome module. Would there be an easy way to add a config option to change the comic size?

Thanks

XKCD width

I have the module installed and place on MagicMirror screen where I want it. The issue is that no matter where I place it per config.js. I have looked through the css files and can't seem to locate anywhere there is a .width call out to account for it.

The comic displayed is squished (screenshot attached.)
screenshot 2017-11-26 21 02 41

Mike Shain

Don't let altText expand over the whole screen

It would be great if the altText did not expand over the whole width of the screen when there is a long text (I'm using position: "bottom_right"). Best to make it the same width as the comic and have it expand height, or maybe an ellipsis if it gets way too long.

I tried to hack the css for this but couldn't find a clean way to keep the auto-expanding width while making the text the same width as the image. Maybe someone else has an idea.

Getting the new comic makes an excessive amount of requests?

So I was looking at my PiHole admin page today and I noticed that I had over 12000 dns requests to XKCD.com

These all occurred within a few minutes around the time it was trying to fetch the new comic. My refresh interval is set to the default value.

Any ideas why this might be happening?

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.