Custom layout for the Google Calendar Widget stopped working

  • 1
  • Problem
  • Updated 2 years ago
  • Solved
So, a couple of days ago I noticed that our calendar with custom layout stopped showing up on our Chrome display. I pushed the same presentation to a Windows 10 display and it did not show there either. Switching to the the default layout fixed this problem. Were there any changes applied to the widget lately? It is no really a big problem to me right now, but I would like to get to the bottom of this anyway. It is absolutely possible that I messed up something here too.

I was deleting files and might have accidentally deleted the folder with the custom layout files, but I brought them back, re-uploaded them, and re-linked the widget. Yet, it is still not working.

I downloaded new files from GitHub and will try to fix it with the new custom layout files later.

In case you (RV) want to take a look at it, here is the preview (using the custom layout, so you cannot even see the calendar items now): http://preview.risevision.com/?type=presentation&id=6fb07249-74aa-42ae-9a9d-e6dc1dcb22ca
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Scott Williams

Scott Williams

  • 464 Points 250 badge 2x thumb
Hi Darius,
Just an FYI, may be a clue for you
There are  errors
"failed to load resource 404 not found" (on google storage)
could not connect to server (localhost:9494).
vew port argument key "target-densitydpi" not recognized
and a bunch of 
Blocked a frame with orgin "https://docs.google.com  ..... protocols domains and ports must match
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
Darius,

No changes to the Google Calendar Widget in quite some time. As scott mentioned, there are numerous errors in devtools for that presentation. It's looking for 4 files (css and js) that are unavailable. I bet when you were deleting files you accidentally removed some of the custom layout resources. I would take a thorough look at your storage to make sure everything is where it should be.
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
I uploaded them back and all the files are there. It looks like sometimes something prevents acceding the files linked to the HTML document when stored in the RV Storage. It happened to me before when working with jQuery. I did not pay much attention then. What is bothering me now that all the same files worked fine when stored on RV, and now they do not. But they work fine after I moved them to a different host.
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
OK, somehow this problem is related to the RV storage. I moved all the same files to my GoDaddy hosting and it works now. 
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
Are any of the files inaccessible when you access them from a direct URL?
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
Also I disagree that this is 'not a problem' because it is and I solved it! The problem is with how RV is generating the links for the files in the RV storage. Let me explain.

The first time in the Google Calendar Widget I selected custom layout and then selected the Storage Icon and pointed to the specific file stored in the RV storage. It did not work because for some reason for sub-folder divisions instead of "/" the link had "%" symbol.

This is why it worked when I copy-pasted file from my other hosting. Based on that, I opened the RV Storage App and got the link to the file from there. Copy-pasted it to the Google calendar Widget and now it works.

So, there is a problem with the widget functionality and now I deserve a medal ))) Just kidding... fix it when you have time.
Photo of Robb

Robb, Official Rep

  • 76,676 Points 50k badge 2x thumb
We should get a new status called "Darius Approved" :)
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
Branded!
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
Darius,

It looks like the problem is with the Storage Selector. I've logged a defect for the team here.

Your medal is attached =)
Photo of Alan Ulicny

Alan Ulicny

  • 154 Points 100 badge 2x thumb
Just as an aside...I really like that layout. Nice design. Clear and informative.
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
Thank you. This what we use as our internal message board. This is actually a copy because I had to remove video stream and time schedule (does not work as intended in preview mode). I will make it available to download with all the files and HTML code in a few days.
Photo of Alan Ulicny

Alan Ulicny

  • 154 Points 100 badge 2x thumb
Thank you, I appreciate the effort you put in to develop this.
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
Darius does great work!
Photo of Alan Clayton

Alan Clayton, Official Rep

  • 8,788 Points 5k badge 2x thumb
Hey Darious, can you take a look at the last comment on this issue and let us know if that makes sense, https://github.com/Rise-Vision/component-storage-selector/issues/33

Thanks!
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
Alan, it sort of does. I hear what donnapep and stulees are saying, but it really does not make much sense for my workflow. I do not want to argue, I am not a developer and those guys are in totally in different league, I am not even... but let me explain. It is not only this case, but I had a similar problem before too when I tried using edited JS and CSS files instead of linking them to somewhere else. I sometimes do need to use edited files.

I create and test everything locally first, then upload files. Makes sense right? If I understood them correctly, the only way for me to have those links to my custom files working the way they want is to upload them first to the RV storage, get the links from there and use them in my HTML document. It could work, but what if there was a mistake or I need to make a change in CSS?... And sometimes I do a lot of tweaking... that requires testing. For that to work with the RV Storage as it is now I would need manually to re-upload files, and on top of that the browser cache does not reset... It would be a nightmare. This could work with my GoDaddy hosting easily as Dreamweaver allows easy file updating, but there is no need to change anything for that hosting service as things work just fine the way they are now. However, I want to use the RV Storage for the RV presentations as often as possible. Like I said some time before, I wish the RV Storage was more like any other online hosting service and I could use my FTP browser with it. But this is different topic.

But really thanks for that link, I will get back at it later and perhaps start from the beginning to see where I can adjust.
(Edited)