Belchertown skin - working great, except Darksky Forecasts

218 views
Skip to first unread message

Tom Cichowicz

unread,
Sep 6, 2020, 12:14:48 PM9/6/20
to weewx-user
I've got it creating a Darksky forecast json file - with data - however web page doesn't display..
Ā ??Ā  version 1.1?

Pat

unread,
Sep 8, 2020, 8:56:17 PM9/8/20
to weewx-user
Need a little more information than this. A link to your website? Debug logs?Ā 

Skin version 1.2 will be released tomorrow if all goes to plan, and I advise you to switch to Aeris weather since DarkSky will be stopping their API usage at some point.Ā 

Tom Cichowicz

unread,
Sep 9, 2020, 12:56:16 PM9/9/20
to weewx-user
OK, thanks ...

Ā  Ā  Ā I changed my Secret id and API to my Aeris account values...

I am getting forecast ONLY on my internal local webserver (weewx pi ) that is running as well.

However public server host by Go Daddy - not displaying forecast,Ā  or graphs. ??

Plus the rounding of ALL values not happening. as well as the undefined messages along with the value in some locations.

I did go through and delete ALL the index.html files under the ../blechertown folder on my remote webserver - and restarted weewx.

Hasn't yet changed anything.

weewx_no_rounding2.PNG

Tom Cichowicz

unread,
Sep 9, 2020, 12:58:23 PM9/9/20
to weewx-user
sorry here's a link to my public webpage...

Ā I'll have to turn debug back on and grab a tail --- may be a bit for that.

Pat

unread,
Sep 9, 2020, 12:58:48 PM9/9/20
to weewx-user
Try to debug the skin using these methods:Ā https://github.com/poblabs/weewx-belchertown/tree/development#how-to-use-debug - You may find the error?Ā 

The undefined units could be because you may be running your site within a subfolder of a subfolder? Like mysite.com/weather/weewx/belchertown or something? SeeĀ https://github.com/poblabs/weewx-belchertown/issues/342


Whats the link to your public site?Ā 

Pat

unread,
Sep 9, 2020, 1:00:59 PM9/9/20
to weewx-user
Your website is returning a 404 NOT FOUND error for the forecast, weewx data files and graph json files. They are supposed to be uploaded to the JSON folder. You'll need to fix that.Ā 
404.jpg

Pat

unread,
Sep 9, 2020, 1:02:19 PM9/9/20
to weewx-user
Start by fixing your JSON file missing errors - that might solve all of your issues.Ā 

On Wednesday, September 9, 2020 at 12:58:23 PM UTC-4 tcich...@gmail.com wrote:

Tom Cichowicz

unread,
Sep 9, 2020, 2:22:48 PM9/9/20
to weewx-user
Pat;

Ā  Ā ok ... here's my syslog after turning on debug, in both weewx.conf & skin.conf
syslog_weewx_09-09-20.txt

Tom Cichowicz

unread,
Sep 9, 2020, 2:40:27 PM9/9/20
to weewx-user
Pat;

Ā  Ā ok, I'll see if I can figure out why this is happening. I've configured the weewx FTP settings:
Ā  Ā [[FTP]]
Ā  Ā  Ā  Ā  # FTP'ing the results to a webserver is treated as just another report,
Ā  Ā  Ā  Ā  # albeit one with an unusual report generator!
Ā  Ā  Ā  Ā  skin = Ftp
Ā  Ā  Ā  Ā Ā 
Ā  Ā  Ā  Ā  # If you wish to use FTP, set "enable" to "true", then
Ā  Ā  Ā  Ā  # fill out the next four lines.
Ā  Ā  Ā  Ā  # Use quotes around passwords to guard against parsing errors.
Ā  Ā  Ā  Ā  enable = true
Ā  Ā  Ā  Ā  user = xxxxxx
Ā  Ā  Ā  Ā  password = xxxxxx
Ā  Ā  Ā  Ā  server = mpython.comĀ  Ā  # The ftp server name, e.g, www.myserver.org
Ā  Ā  Ā  Ā  path = /KM4VIG/weewxĀ  Ā  # The destination directory, e.g., /weather
Ā  Ā  Ā  Ā Ā 
Ā  Ā  Ā  Ā  # Set to True for an FTP over TLS (FTPS) connection. Not all servers
Ā  Ā  Ā  Ā  # support this.
Ā  Ā  Ā  Ā  secure_ftp = False
Ā  Ā  Ā  Ā Ā 
Ā  Ā  Ā  Ā  # To upload files from something other than what HTML_ROOT is set
Ā  Ā  Ā  Ā  # to above, specify a different HTML_ROOT here.
Ā  Ā  Ā  Ā  #HTML_ROOT = public_html
Ā  Ā  Ā  Ā Ā 
Ā  Ā  Ā  Ā  # Most FTP servers use port 21
Ā  Ā  Ā  Ā  port = 21
Ā  Ā  Ā  Ā Ā 
Ā  Ā  Ā  Ā  # Set to 1 to use passive mode, zero for active mode
Ā  Ā  Ā  Ā  passive = 1

Howerver ; the files exist where they are suppose to?

Ā here's a screenshot from my remote connection folders...
weewx_FTP_folder_path.PNG
they appear to be there and are only 9mins old from this message.. ??
what I'm I doing wrong, or where do I look to find the problem?

Tom Cichowicz

unread,
Sep 9, 2020, 3:07:13 PM9/9/20
to weewx-user
Pat;

Ā  Ā I moved the remote webserver - path directly off the root.... so the URL is now...

Ā  Ā the problem still exists - after rebuilding the file/folders..Ā 

???

On Wednesday, September 9, 2020 at 1:02:19 PM UTC-4 Pat wrote:

Pat

unread,
Sep 9, 2020, 3:42:05 PM9/9/20
to weewx-user
If the files are there, then maybe your web host could be blocking access to those files?

Tom Cichowicz

unread,
Sep 9, 2020, 3:50:43 PM9/9/20
to weewx-user
Pat;

Ā  Ā  I can't seem to figure it out, seems like a relative/absolute path issue?Ā  Those kinda problems get my head spinning - like trying to think about double negatives!Ā 

Ā  However, I poked a hole in my router temporarily - allowing my rpi/weewx exposing my server to the world @ ,Ā http://idlewood.dyndns.org/weewx/belchertown/

Ā  Ā It runs as it does from a local URL, only the one error in the browser consoleĀ  - related to a file that truly doesn't exist -> custom.css

Ā  I may just setup another rpi to act as an external webserver -- But would prefer to figure out what it's not working from my mpython.com domain ---

Pat

unread,
Sep 9, 2020, 3:53:06 PM9/9/20
to weewx-user
Yep, that link looks good. You should be able to view the json files without restriction - just browse to them.Ā 


But on my site, you can browse to it without a problem.Ā https://belchertownweather.com/json/weewx_data.json

Once you get access working to the json files, the rest should (hopefully) fall in line.Ā 

Tom Cichowicz

unread,
Sep 9, 2020, 7:36:55 PM9/9/20
to weewx-user

It must be locked down at the server level, as I’m not doing nothing different-Ā 

Ā  I assume if I worked with my hosting tech support, they could release the restrictions on those files?

Ā  I just hate even thinking about those calls... and I’m retired! I’m leaning toward, either setting up on one of my synology NAS boxes, or perhaps a docker session on my unraid server.

Ā  Or easier yet keep in internal local.

Tom Cichowicz

unread,
Sep 10, 2020, 8:47:56 AM9/10/20
to weewx-user
Pat;

Ā  Ā I figured it out...

I was able to get into my hosting provider's webserver control panel. (I've never used it before)

stumbled around for awhile - haven't done any web development in over 20years.... needless to say things have changed.

I found that there wasn't any MIME type defined for JSON files ... I just added one to the list (ā€œapplication/json .jsonā€ is the correct JSON content type entry.)

Ā  Ā That fixed it!Ā Ā http://www.mpython.com/weather/belchertown/

Ā  Thanks for ALL your help, looking forward to version 1.2 - I'm sure it will be GREAT!

Ā  and Thanks for all your hard work and sharing AND Helping those that surely need it.Ā 

On Wednesday, September 9, 2020 at 3:53:06 PM UTC-4 Pat wrote:
Reply all
Reply to author
Forward
0 new messages