• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
  1. Home
  2. DelPhinDot
  3. Topics
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
D
Offline
  • Profile
  • Following 0
  • Followers 0
  • Topics 2
  • Posts 6
  • Groups 0

Topics

  • D

    currentWeather & weatherForecast "Loading..."

    Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
    2 Dec 28, 2016, 5:49 AM
    Dec 28, 2016, 5:04 AM
    0 Votes
    2 Posts
    1k Views
    D Dec 28, 2016, 5:49 AM
    Noticed that it the position doesn’t affect the successrate of the currentWeather module… Just says “Loading…”
  • D

    Calendar customization

    Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
    6 Dec 28, 2016, 2:20 PM
    Dec 27, 2016, 11:08 PM
    0 Votes
    6 Posts
    5k Views
    D Dec 28, 2016, 2:20 PM
    @broberg Thanks, i had changed the urgency to 0 after seeing what it did. Now i just had to solve the problem that all events within 6h would say “in 2 hours” instead of displaying the actual event time… After a bit of searching in the code i found this section: if (event.startDate - now < 6 * one_hour) and changed it to if (event.startDate - now < 1 * one_hour) , hence the calendar wold display the exact time not the time untill. (see code below) calendar.js if (event.startDate >= new Date()) { if (event.startDate - now < 2 * one_day) { // This event is within the next 48 hours (2 days) if (event.startDate - now < 1 * one_hour) { // If event is within 1 hour, display 'in xxx' time format or moment.fromNow() timeWrapper.innerHTML = moment(event.startDate, "x").fromNow(); } else { // Otherwise just say 'Today/Tomorrow at such-n-such time' timeWrapper.innerHTML = moment(event.startDate, "x").calendar(); }
  • 1 / 1
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy