Open bash-j opened 7 years ago
Good Morning bash-j,
The weather widget is trying to get the weather from the yahoo weather api. line 85: weather widget
If you want it to use a local resource, you will have to change that js code.
Or am I not understanding your question?
Sincerely, Michael
Hi Michael,
With the weather widget, I thought the client would be accessing the yahoo api using javascript.
Does the django-dashing library try to access the repository json file on github, if it can't find the files in the static directory matching the name of the widget in the config?
I have the weather files in my static directory, so I was thinking it for some reason could not find the weather files, then was attempting to load the repository json file on github and it was failing at that point.
Regards, Jonathon
Hi Jonathon,
Sorry, I don't know what it does, I have always placed the files locally. Can you use a browser debugger (right click->inspect in Chrome) to see where it is trying to reach these files when you load the site?
Sincerely, Michael
Hi,
I am having trouble adding a custom widget to my dashboard because my webserver does not have access to the internet. I have downloaded the django dashing weather widget, placed the files in the static/widgets/weather folder, added the 'weather' widget to the 'INSTALLED_WIDGETS' config. Then I added the widget to my dashing-config.js file.
When I load the page in my browser I get an internal server error and error in the log file (shown below). How can I configure django-dashing to either not try to connect to an external webpage or use a local repository instead?