Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Problem with Custom HTTP

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Problem with Custom HTTP

Post by freddie »

Yes, that's correct. It shows two things: (a) There is a permanent redirect operating on your website to ensure all requests use https. (b) Making an https request from your Pi works, so there isn't an issue with your SSL certificates.

You mentioned that you experienced an error when setting your customHTTPseconds URL to use https. What was that error? I couldn't see it in the comments in this topic.
Freddie
Image
Shamy
Posts: 27
Joined: Sat 07 Nov 2015 7:53 pm
Weather Station: Davis Vantage Pro 2
Operating System: Windows 10
Location: Krotoszyn

Re: Problem with Custom HTTP

Post by Shamy »

freddie wrote: Fri 24 Mar 2023 2:47 pm You mentioned that you experienced an error when setting your customHTTPseconds URL to use https. What was that error? I couldn't see it in the comments in this topic.
Maybe I wrote it wrong - my English is not very good - which you can probably see ;)
The thing was that when I typed http or https it didn't change anything, it still didn't work properly. I saw information about SSL in the logs, so I changed from https to http, but that didn't work either. I hope I've made it clear now :)
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Problem with Custom HTTP

Post by freddie »

I think it didn't change because of the redirect to https if you try to use http. I'm a bit puzzled now. @mcrossley I'm assuming mono uses system certs and doesn't have its own?
Freddie
Image
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Problem with Custom HTTP

Post by mcrossley »

If like to see a log file with the custom URL set to use https and the resulting error.

Afaik mono uses the system certs - that's why the old root cert fix for windy works. The error we have seen was an SSL error rather than certificate.

I checked the site out and it accepts all encryption protocols from the obsolete SSL (they really should be disabled on the server!) through to TLS1.3 so there should be no issue there.
User avatar
ConligWX
Posts: 1835
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

Re: Problem with Custom HTTP

Post by ConligWX »

what version of mono are you running? just curious.
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Problem with Custom HTTP

Post by freddie »

ConligWX wrote: Fri 24 Mar 2023 11:29 pm what version of mono are you running? just curious.
From the supplied log file:

Code: Select all

2023-03-23 13:27:17.447 Mono version: 6.12.0.182 (tarball Tue Jun 14 22:42:26 UTC 2022)
Freddie
Image
Shamy
Posts: 27
Joined: Sat 07 Nov 2015 7:53 pm
Weather Station: Davis Vantage Pro 2
Operating System: Windows 10
Location: Krotoszyn

Re: Problem with Custom HTTP

Post by Shamy »

Okay, I changed from http to https. No changes, here is the log:

Code: Select all

2023-03-25 14:29:32.491 ApplyData: Complete
2023-03-25 14:29:32.491 ProcessData: Complete
2023-03-25 14:29:43.520 CustomHttpSeconds[0]: Querying - https://www.pogodakrotoszyn.pl/ecowitt-mysql.php
2023-03-25 14:29:43.599 Realtime[201]: Start cycle
2023-03-25 14:29:43.600 Realtime[201]: Creating realtime.txt
2023-03-25 14:29:43.601 Realtime[201]: Creating realtime file - realtimegauges.txt
2023-03-25 14:29:43.665 CustomHttpSeconds: The SSL connection could not be established, see inner exception.
2023-03-25 14:29:46.696 Realtime[201]: End cycle
User avatar
ConligWX
Posts: 1835
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

Re: Problem with Custom HTTP

Post by ConligWX »

mcrossley wrote: Fri 24 Mar 2023 9:22 pm
Afaik mono uses the system certs - that's why the old root cert fix for windy works. The error we have seen was an SSL error rather than certificate.
from mono it states:
Starting with Mono 3.12.0 a new tool called cert-sync is included which syncs Mono’s certificate store with the system certificate store. It should run automatically when you install the official Mono packages. Make sure the ca-certificates-mono package is installed.
perhaps Shamy's OS is missing the ca-certificates-mono package?
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Problem with Custom HTTP

Post by freddie »

Shamy wrote: Sat 25 Mar 2023 1:32 pm Okay, I changed from http to https. No changes, here is the log:

Code: Select all

2023-03-25 14:29:32.491 ApplyData: Complete
2023-03-25 14:29:32.491 ProcessData: Complete
2023-03-25 14:29:43.520 CustomHttpSeconds[0]: Querying - https://www.pogodakrotoszyn.pl/ecowitt-mysql.php
2023-03-25 14:29:43.599 Realtime[201]: Start cycle
2023-03-25 14:29:43.600 Realtime[201]: Creating realtime.txt
2023-03-25 14:29:43.601 Realtime[201]: Creating realtime file - realtimegauges.txt
2023-03-25 14:29:43.665 CustomHttpSeconds: The SSL connection could not be established, see inner exception.
2023-03-25 14:29:46.696 Realtime[201]: End cycle
Do you have debug logging and data logging switched on?
Freddie
Image
Post Reply