Read the statement by Michael Teeuw here.
Calendar Module - Unable to load Facebook Birthdays
-
So here’s the fun part … mine was working. Because I hadn’t gone a
'git pull'
in a while on my dev tree, so I never saw the change. Now that I am current, it’s not working. So, none of you are any more crazy than we all are, it really isn’t working. I’m running some debugging and trying to figure out where and why it’s failing. -
@KirAsh4 said in Calendar Module - Unable to load Facebook Birthdays:
So here’s the fun part … mine was working. Because I hadn’t gone a
'git pull'
in a while on my dev tree, so I never saw the change. Now that I am current, it’s not working. So, none of you are any more crazy than we all are, it really isn’t working. I’m running some debugging and trying to figure out where and why it’s failing.We’ll have to recruit more QA peeps for future commits! :P haha
-
Yeah, not as easy as it sounds. For those who enjoy seeing the nitty gritty, this is what happens with the various calendar payloads and you can clearly see the FB one failing:
Working on trying to figure out why since it does work from the command line, but not in browser.
-
@KirAsh4 said in Calendar Module - Unable to load Facebook Birthdays:
Yeah, not as easy as it sounds. For those who enjoy seeing the nitty gritty, this is what happens with the various calendar payloads and you can clearly see the FB one failing:
Working on trying to figure out why since it does work from the command line, but not in browser.
What is the tool you’re using in that screenshot to test this out?
-
Firebug extension in Firefox. Though most browsers have a basic console output if you just hit F12. And the data that you see there is normally not visible. I added those output streams in my dev tree so I can see what’s going on.
-
Ok, I need some testers … this is working for me with a small change in our fetcher code. So, for those willing to try, please following these steps:
Step 1
Navigate to the'MagicMirror/modules/default/calendar/'
folderStep 2
Open the'calendarfetcher.js'
file in your favorite editor and look for the following line and delete it:ical.fromURL(url, {}, function(err, data) {
Step 3
After deleting that line, in its place you’re going to paste in the following snippet of code:var opts = { headers: { 'User-Agent': 'Mozilla/5.0 (Node.js 6.0.0) MagicMirror/2.0 (https://github.com/MichMich/MagicMirror)' } } ical.fromURL(url, opts, function(err, data) {
Please note that very last line, it’s almost identical to the one you deleted. Only one piece changed and you must put that line in as modified above!
Step 4
Save and close the file, and relaunch your MM process.Step 5
Report back to me.On my setup, it’s working. I’m getting this in my calendar now. (The names you see are birthdays, I simply have a filter to remove
's birthday'
form the string that Facebook returns.) -
Got home, did a full reset on my dev tree, added the above code piece and this is what I get. Waiting on more confirmation from others before I push this up to the main repo.
-
@KirAsh4 said in Calendar Module - Unable to load Facebook Birthdays:
Ok, I need some testers … this is working for me with a small change in our fetcher code. So, for those willing to try, please following these steps:
Step 1
Navigate to the'MagicMirror/modules/default/calendar/'
folderStep 2
Open the'calendarfetcher.js'
file in your favorite editor and look for the following line and delete it:ical.fromURL(url, {}, function(err, data) {
Step 3
After deleting that line, in its place you’re going to paste in the following snippet of code:var opts = { headers: { 'User-Agent': 'Mozilla/5.0 (Node.js 6.0.0) MagicMirror/2.0 (https://github.com/MichMich/MagicMirror)' } } ical.fromURL(url, opts, function(err, data) {
Please note that very last line, it’s almost identical to the one you deleted. Only one piece changed and you must put that line in as modified above!
Step 4
Save and close the file, and relaunch your MM process.Step 5
Report back to me.On my setup, it’s working. I’m getting this in my calendar now. (The names you see are birthdays, I simply have a filter to remove
's birthday'
form the string that Facebook returns.)Made these changes, we are good! Works now :dark_sunglasses: Thank you so much for all the help.
-
Doesn’t seem to fix it for me :/
-
@andy952, can you send me your calendar link privately and I’ll test it out on my system, see if I find any errors.