MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. REB
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 15
    • Best 2
    • Controversial 0
    • Groups 0

    REB

    @REB

    2
    Reputation
    395
    Profile views
    15
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Location Doncaster

    REB Unfollow Follow

    Best posts made by REB

    • RE: Use a local JSON file with MMM-JsonTable Module

      OK, I have solved the issue - the json file causes this error:

      |mm     | Whoops! There was an uncaught exception...
      0|mm     | SyntaxError: Unexpected token  in JSON at position 0
      0|mm     |     at JSON.parse (<anonymous>)
      0|mm     |     at Request._callback (/home/pi/MagicMirror/modules/MMM-JsonTable/node_helper.js:15:21)
      0|mm     |     at Request.self.callback (/home/pi/MagicMirror/node_modules/request/request.js:186:22)
      0|mm     |     at emitTwo (events.js:126:13)
      0|mm     |     at Request.emit (events.js:214:7)
      0|mm     |     at Request.<anonymous> (/home/pi/MagicMirror/node_modules/request/request.js:1163:10)
      0|mm     |     at emitOne (events.js:116:13)
      0|mm     |     at Request.emit (events.js:211:7)
      0|mm     |     at IncomingMessage.<anonymous> (/home/pi/MagicMirror/node_modules/request/request.js:1085:12)
      0|mm     |     at Object.onceWrapper (events.js:313:30)
      0|mm     | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|mm     | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      

      There are three bytes at the beginning of the json file before the first ‘{’. I am using an Excel to JSON converter from where I copy and paste the data.

      I use VS Code as my code editor and with a blank new file, when I paste the data from the online converter and save, those extra bytes are at the start of the file. Same with Notepad and Editplus.

      Without these 3 extra bytes, the module loads the file OK. Now I just need to figure out how to save the data without those extra bytes.

      BTW, the correct url that I used is:

       'http://192.168.1.27:8080/modules/MMM-JsonTable/xxxxxx.json'
      
      posted in Troubleshooting
      REB
      REB
    • RE: Use a local JSON file with MMM-JsonTable Module

      OK, I’ve gotten to the bottom of the 3 extra bytes at the beginning of my json file - they are the utf-8 BOM (EF BB BF).

      Fortunately, I have a script (on a Directory Opus button) that will remove these bytes (or put them back if need be).

      Thanks to those that offered advice etc.

      posted in Troubleshooting
      REB
      REB

    Latest posts made by REB

    • RE: MMM-MyGarbage

      @lodam said in MMM-MyGarbage:

      @htilburgs : thanks a lot for this module !
      this is super useful and well done.

      I would like to change color for bins, i did the custom.css file and restarted MM2 but that does not change.
      Do i have to do something else ?

      You can change the colour of the bin icons in the garbage_schedule.csv file like so. The top row defines the colour of the icons. In my case below they are green, dark grey and light blue.

      WeekStarting,#00FF00,#D3D3D3,#87CEEB
      03/31/20,0,0,1
      04/07/20,0,1,0
      04/14/20,0,0,1
      04/21/20,0,1,0
      04/28/20,0,0,1
      05/05/20,0,1,0
      
      posted in Utilities
      REB
      REB
    • RE: Default Calendar Module will not display an annually/monthly recurring event at end of March.

      @sdetweil I’ll send the url over. Thank you for your assistance with this.

      posted in Troubleshooting
      REB
      REB
    • RE: Default Calendar Module will not display an annually/monthly recurring event at end of March.

      @sdetweil I’d already tried that. In fact, I didn’t have that config entry originally - I just used the default of 10. I added extra entries to see if it made a difference - it didn’t ☹

      Incidentally, I exported my Google Calendar and the annual events show up in there - albeit one of the troublesome entries appears twice for some reason.

      posted in Troubleshooting
      REB
      REB
    • RE: Default Calendar Module will not display an annually/monthly recurring event at end of March.

      @sdetweil said in Default Calendar Module will not display an annually/monthly recurring event at end of March.:

      showEnd: false,

      @sdetweil Thank you for your efforts. This is my config…

      {
      			module: "calendar",
      			position: "top_center",
      			header: "Upcoming Events",
      			config: {
      				showEnd: false,
      				fade: false,
      				colored: true,
      				coloredSymbolOnly: true,
      				maxTitleLength: 30,
      				timeFormat: "absolute",
      				calendars: [
      					{
      						symbol: "calendar-check-o ",
      						url: "https://calendar.google.com/calendar/ical/xxxxxxxxx/basic.ics",
      						color: "yellow",
      					}
      				],
      				maximumEntries: 15
      			}
      		},
      

      The url’s are different - yours starts with “webcal:” whereas mine starts “https:” - probably because mine is a private calendar. I did try making my Google Calendar ‘Public’ but that didn’t make any difference.

      Edit: Just changed ‘https:’ to ‘webcal:’ and it made no difference.

      posted in Troubleshooting
      REB
      REB
    • RE: Default Calendar Module will not display an annually/monthly recurring event at end of March.

      I’m following this up as I still have the same problem even though I created an brand new Google Account and only added two events to the calendar.

      One was an annually occurring event on 29 March and the other a single event on 30 March. Only the single event showed up on my MM calendar. I’m sharing the calendar through the secret link provided by Google. Annually recurring events on other dates before and after 29 - 31 March appear on my MM correctly.

      I’m at a loss as to where the issue might be.

      Can someone else please create a Google Calendar event that recurs either monthly or annually on the 29, 30 or 31 March and then confirm that the event appears on the their MM calendar module. Please note that I am using the default Calendar module as supplied with MM2 V2.6.0.

      My next step will be to try a different calendar module but I’d like to know where the problem lies with the default module.

      Thank you in advance.

      posted in Troubleshooting
      REB
      REB
    • RE: Default Calendar Module will not display an annually/monthly recurring event at end of March.

      Thanks @Janne.

      I guess it must be a problem either with my Google calendar or my MM2 installations. As the problem appears on both of my MM2 setups, I’m guessing the problem is with Google - but I’ve no idea what or why.

      Just a thought - were those events monthly and/or annually recurring events? Daily or weekly recurring events show up fine on those dates.

      posted in Troubleshooting
      REB
      REB
    • RE: Default Calendar Module will not display an annually/monthly recurring event at end of March.

      I have even tried a second MM2 setup and that is the same as above. The second setup is just used as a clock and current weather display but I disabled those modules just in case.

      A bit of a long shot but I wonder if it has anything to do with there only being 28 days in February and something is messing with just March. I’ll be interested to see if the events shows up once we get to March 1st.

      posted in Troubleshooting
      REB
      REB
    • RE: Default Calendar Module will not display an annually/monthly recurring event at end of March.

      Thanks @janne - can you please confirm you used the same dates as myself - 29-31 March?

      I think I’ll set up a second Google calendar and see what happens with that.

      Update: Same thing happens with a different Google calendar.

      Time to disable everything else and see what happens.

      Further update: The problem also occurs with a monthly recurring event. I set up a monthly recurring event on March 29 2019 and the April and May events both show up but not the March 29 occurrence.

      Daily and weekly events show up OK.

      posted in Troubleshooting
      REB
      REB
    • RE: Default Calendar Module will not display an annually/monthly recurring event at end of March.

      Just to clarify, I’m using the default Calendar module.

      I assume no-one else is having the same issue?

      posted in Troubleshooting
      REB
      REB
    • Default Calendar Module will not display an annually/monthly recurring event at end of March.

      I’ve been pulling my hair out trying to figure this out. I can set a single event or a recurring weekly event and it will show up on my MM2 display.

      But if I change the event to an annually recurring event on either 29th, 30th or 31st of March, it does not show up.

      I have created the events in both Google Calendar and in Outlook (which 2-way syncs with Google Calendar - that works perfectly). I’m using Office 365 on Windows 10 Pro

      I can set annually recurring events for the end of April and they show up fine.

      Any suggestions please?

      Thank you

      posted in Troubleshooting
      REB
      REB