Updated Weather Program and Widget

Started by soxfan1966, May 22, 2020, 07:00:14 AM

Previous topic - Next topic

mike

Quote from: soxfan1966 on December 19, 2020, 01:01:34 PM
You are missing the API key setting too

that is set in JKutil and also the original openweathermap:  I never saw a place to enter it in your version - or the city unless I use the 3 bars on config-group page.

mike

I will try putting the api key and city and c/F =1 answer into the 3bar parameter list on config group page (remember, changing c/f on actual group page shows 1 for F but still shows 0 on settings page.

soxfan1966

You need the API key in my weather program too

mike

#18
Quote from: soxfan1966 on December 19, 2020, 01:10:12 PM
You need the API key in my weather program too

Funny, now your program shows spot to enter API key!  See below!  It didnt have that a bit ago! 

mike

maybe I need to restart HG?  will try...  that did not help.


soxfan1966

FYI - u probably don't want to show your API key, you should edit that post and xxxx it out.

soxfan1966

...  you can try restarting the widget and if that doesn't work then try restarting H.G.

mike

restarting HG did not change it.

You can see orig openweather works and so does JKutil...  no matter what I do your widget seems broken on my pi4 with that dang error on a line that does not exist.

soxfan1966

I'm not sure what the problem is.  What version of raspian are you running?  What version of HomeGenie?

mike

latest HG (1.3 stable 19).  running 8/20/2020 latest Buster.  Pi4 w/2GBram.

soxfan1966

Try stopping the default weather program amd removing the dedst weather widget and see what happens

soxfan1966

Here is what my weather widget looks like.  I haven't changed the code for this since spring or early summer.

mike

Nice.   We think alike:  I just deleted the orig openweather prog and widget, as well as yours, just leaving JKutil.  imported your prog and widget again.  set api key & Farenheit=1 and location use long/lat=1

JKutil continues to show Dayton ok.

Your still crashes on line 7313 that does not exist!

DANG!

mike

on restarts of your version I also get this error popup if it is a clue?

soxfan1966

It's not building a valid API call.   I will have to take a look so e more, but I'm not in front of of computer so it probably won't be until Monday

SMF spam blocked by CleanTalk