Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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
Website Trends
Moderator: mcrossley
-
- Posts: 75
- Joined: Thu 08 Jul 2010 3:15 pm
- Weather Station: WeatherDuino Pro2
- Operating System: Raspbian
- Location: Shap, Cumbria
- Contact:
Website Trends
This one's been driving me crazy, I can't get the trends the display on my website, the page loads but no trends.
I've tried it in IE11 and chrome but no joy. I've used the "inspect elements" option in chrome and it says "Failed to load resource: the server responded with a status of 404 (Not Found)" "http://www.shapweather.co.uk/cumulus/units.json".
Now I now the file is there because I've checked, but when I click on the link is says "404 file not found" which is what it's says!!
I googled Json files and it said something about MIME and something needs to be done by the web host.
Has anybody seen this before?
I've tried it in IE11 and chrome but no joy. I've used the "inspect elements" option in chrome and it says "Failed to load resource: the server responded with a status of 404 (Not Found)" "http://www.shapweather.co.uk/cumulus/units.json".
Now I now the file is there because I've checked, but when I click on the link is says "404 file not found" which is what it's says!!
I googled Json files and it said something about MIME and something needs to be done by the web host.
Has anybody seen this before?
-
- Posts: 3254
- Joined: Sat 13 Aug 2011 9:33 am
- Weather Station: Ecowitt HP2551
- Operating System: Windows 10 64bit
- Location: Burnham-on-Sea
- Contact:
Re: Website Trends
But if you enter "http://www.shapweather.co.uk/cumulus/units.json" as a url is says file not found so it isn't there.
- PaulMy
- Posts: 3849
- Joined: Sun 28 Sep 2008 11:54 pm
- Weather Station: Davis VP2 Plus 24-Hour FARS
- Operating System: Windows8 and Windows10
- Location: Komoka, ON Canada
- Contact:
Re: Website Trends
I had a similar issue a couple of builds ago where I also got the same as with your http://www.shapweather.co.uk/cumulus/trends.htm I can't recall exactly what I did but of what I recall it was an update path issue, and now the trends display. I suggest to double check your settings.
Paul
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
-
- Posts: 75
- Joined: Thu 08 Jul 2010 3:15 pm
- Weather Station: WeatherDuino Pro2
- Operating System: Raspbian
- Location: Shap, Cumbria
- Contact:
Re: Website Trends
It's definitely there, and it's being updatedwater01 wrote:But if you enter "http://www.shapweather.co.uk/cumulus/units.json" as a url is says file not found so it isn't there.
You do not have the required permissions to view the files attached to this post.
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Website Trends
It looks like your web space provider doesn't allow .json files. Is it free hosting? You could ask them to handle them properly.
Steve
-
- Posts: 75
- Joined: Thu 08 Jul 2010 3:15 pm
- Weather Station: WeatherDuino Pro2
- Operating System: Raspbian
- Location: Shap, Cumbria
- Contact:
Re: Website Trends
No it's not free hosting, I use 123-Reg.
You're probably right, I've just tried renaming units.json to units.txt using filezilla and when I enter the url http://www.shapweather.co.uk/cumulus/units.txt I can access the file.
You're probably right, I've just tried renaming units.json to units.txt using filezilla and when I enter the url http://www.shapweather.co.uk/cumulus/units.txt I can access the file.
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Website Trends
You could try changing the script to look for the changed name, but I suspect it won't get parsed correctly. And the data files are also .json so the graphs presumably wouldn't work anyway. Broken web hosting is a pain.
Steve
-
- Posts: 75
- Joined: Thu 08 Jul 2010 3:15 pm
- Weather Station: WeatherDuino Pro2
- Operating System: Raspbian
- Location: Shap, Cumbria
- Contact:
Re: Website Trends
Contacted 123-reg support and they added a "web.config" file to my web space enabling the mimeType for .json files.
Trends now working
Trends now working
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Website Trends
Excellent, well done 123-reg. I use them for all my domain registrations, but not for hosting, and I've always found them to be pretty good.
Steve
- mcrossley
- Posts: 12766
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Website Trends
For reference, if you don't get any joy from the hosting provider...
If your host runs Apache, then you 'should' be able to add the json MIME type via a .htaccess file entry (if it is enabled).
Add the line:
If your host runs Apache, then you 'should' be able to add the json MIME type via a .htaccess file entry (if it is enabled).
Add the line:
Code: Select all
AddType application/json json
-
- Posts: 75
- Joined: Thu 08 Jul 2010 3:15 pm
- Weather Station: WeatherDuino Pro2
- Operating System: Raspbian
- Location: Shap, Cumbria
- Contact:
Re: Website Trends
Yes, total time from registering the problem to fixing it was 45mins, you can't fault thatsteve wrote:Excellent, well done 123-reg. I use them for all my domain registrations, but not for hosting, and I've always found them to be pretty good.
-
- Posts: 75
- Joined: Thu 08 Jul 2010 3:15 pm
- Weather Station: WeatherDuino Pro2
- Operating System: Raspbian
- Location: Shap, Cumbria
- Contact:
Re: Website Trends
If anybody else has the same problem then make a file called web.config containing the following : -
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
</system.webServer>
</configuration>
Upload to the /web/contents/ directory of your website
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
</system.webServer>
</configuration>
Upload to the /web/contents/ directory of your website