mockturtl / cinnamon-weather

DEPRECATED. Use linuxmint/cinnamon-spices-applets instead.
https://cinnamon-spices.linuxmint.com/applets/view/17
28 stars 35 forks source link

Weather applet does not do more than load but not show data. #49

Closed dcharlespyle closed 11 years ago

dcharlespyle commented 11 years ago

I noticed that the applet would not load at all. I did the fix for F19 and the program now loads but only shows curved arrows. Checking glass.log gives me the following.

$ tail -f ~/.cinnamon/glass.log info t=2013-07-30T04:41:14.661Z Loaded applet windows-quick-list@cinnamon.org in 4 ms info t=2013-07-30T04:41:14.682Z Loaded applet weather@mockturtl in 20 ms error t=2013-07-30T04:41:18.569Z weather@mockturtl#: TypeError: json.get_object_member("query").get_object_member("results").get_object_member("rss") is null info t=2013-07-30T04:49:09.371Z Loaded applet weather@mockturtl in 34 ms error t=2013-07-30T04:49:12.534Z weather@mockturtl#: TypeError: json.get_object_member("query").get_object_member("results").get_object_member("rss") is null info t=2013-07-30T04:54:26.781Z Loaded applet weather@mockturtl in 33 ms error t=2013-07-30T04:54:30.575Z weather@mockturtl#: TypeError: json.get_object_member("query").get_object_member("results").get_object_member("rss") is null info t=2013-07-30T04:55:31.914Z Loaded applet weather@mockturtl in 30 ms error t=2013-07-30T04:55:35.620Z weather@mockturtl#: TypeError: json.get_object_member("query").get_object_member("results").get_object_member("rss") is null error t=2013-07-30T04:56:18.513Z weather@mockturtl#: TypeError: json.get_object_member("query").get_object_member("results").get_object_member("rss") is null error t=2013-07-30T05:04:12.534Z weather@mockturtl#: TypeError: json.get_object_member("query").get_object_member("results").get_object_member("rss") is null

dcharlespyle commented 11 years ago

Whatever it was, it just started working now, notwithstanding the above errors still showing up. However, the settings were not preserved when I reloaded the applet code from Looking Glass.

dcharlespyle commented 11 years ago

Never mind. All errors just stopped and aren't being generated anymore. Not sure what was causing it but whatever it is seemed to have corrected itself.

jbaldassari commented 11 years ago

I'm getting this too, possibly after applying a bunch of Ubuntu (13.04/raring) updates:

info t=2013-09-11T13:34:36.029Z Loaded applet weather@mockturtl in 32 ms
error t=2013-09-11T13:34:38.941Z weather@mockturtl#: TypeError: json.get_object_member("query").get_object_member("results").get_object_member("rss") is null
error t=2013-09-11T13:40:11.952Z weather@mockturtl#: TypeError: json.get_object_member("query").get_object_member("results").get_object_member("rss") is null

The applet itself just says Loading... with the circular arrow symbol. Another thing I noticed is that I can't configure the applet. There is no way to select the location, for example. When I right-click the applet there is a Settings option, but that just takes me to the generic settings for all applets. Also, there doesn't appear to be any settings file in the applet directory, just a schema for the settings:

$ ls ~/.local/share/cinnamon/applets/weather@mockturtl
applet.js  metadata.json  README.md             stylesheet.css
icon.png   po             settings-schema.json

Maybe that's expected. I don't know enough about it, but most other applets I've seen have a settings.json file or similar. Any ideas?

jbaldassari commented 10 years ago

FYI, I fixed this by removing the version of this applet that was installed through the Applets configuration dialog and directly checking it out from git. It seems like there may be a problem updating this applet as the Applets dialog always shows there being an update available, even after I go through the update process for it. Anyway, here are the steps I took to fix it:

cd ~/.local/share/cinnamon/applets
rm -rf weather@mockturtl
git clone https://github.com/mockturtl/cinnamon-weather.git "weather@mockturtl"
joshmfrankel commented 10 years ago

Tried the above to fix the applet issue, no luck. After cloning the repo the loading icon is permanent. Also in the applet menu it keeps saying that an update is needed for the weather app.

Here is the output:

error t=2013-10-15T14:58:32.944Z weather@mockturtl#: TypeError:   weather.get_object_member("item").get_array_member("forecast") is null
crosser commented 9 years ago

Can this please be reopened and looked into? I am seeing this problem since forever, with the code from spices and from git alike. Thanks.

crosser commented 9 years ago

It transpires that the real problem is when you specify a woeid that yahoo does not recognize, no useful diagnostic is produced, and the above errors are reported.

(And the page that opens on "Get WOEID" does not contain codes for my country.)

mockturtl commented 9 years ago

Please continue discussion in #85.