Re: Saratoga, CumulusMX and new trend graphs
Posted: Thu 27 Oct 2016 4:31 am
Thank you sir!
Support forum for Cumulus weather station software
https://cumulus.hosiene.co.uk/
Hallo!BCJKiwi wrote: ↑Thu 08 Oct 2015 7:21 pm Like this?
http://silveracorn.nz/weather/wxcharts.php (was wxgraphs.php)
This has been working since February https://cumulus.hosiene.co.uk/viewtopic.php?f=28&t=13382
You will need to make changes to the attached file to suit your website layout - particularly the path settings for the lib and js folders.
Also the .json files need to be uploaded to the correct path by CumulusMX. In my layout they are in the wxshare folder which holds the lib and js folders
First of all, I thank you for your fast answerBCJKiwi wrote: ↑Fri 22 Mar 2019 8:22 pm Hmm,
If you wish to to use the myhost/cumulus/xxx.json files from the myhost/web/ folder, then the way to reference them is to add ../cumulus in front to the file name.
e.g.
myhost/cumulus/js/cumuluscharts.js
myhost/web/wxgraphs2.php (or wxcharts.php - or whatever the file name is) should contain the correct path to cumuluscharts.js in wxcharts2.php
So, for saratoga in the myhosts/web folder, where you may have the reference to js/cumuluscharts.js you should instead reference ../cumulus/js/cumuluscharts.js
The ../ moves the path up one level in the website folder structure
Trust this helps.
Code: Select all
<script src=<?php echo $sharedir."lib/jquery/jquery-latest.min.js";?>></script>
<script src=<?php echo $sharedir."lib/highstock/js/highstock.js";?>></script>
<script src=<?php echo $sharedir."lib/highstock/js/themes/grid.js";?>></script>
<script src=<?php echo $sharedir."js/cumuluscharts.js";?>></script>
Code: Select all
<script src=<?php echo $sharedir."../cumulus/lib/jquery/jquery-latest.min.js";?>></script>
<script src=<?php echo $sharedir."../cumulus/lib/highstock/js/highstock.js";?>></script>
<script src=<?php echo $sharedir."../cumulus/lib/highstock/js/themes/grid.js";?>></script>
<script src=<?php echo $sharedir."../cumulus/js/cumuluscharts.js";?>></script>
Code: Select all
$(document).ready(function () {
$.ajax({url: "graphconfig.json", dataType:"json", success: function (result) {
config=result;
doTemp();
Code: Select all
$(document).ready(function () {
$.ajax({url: "../cumulus/graphconfig.json", dataType:"json", success: function (result) {
config=result;
doTemp();
Code: Select all
$.ajax({
url: 'tempdata.json',
cache: false,
dataType: 'json',
Code: Select all
$.ajax({
url: '/cumulus/tempdata.json',
cache: false,
dataType: 'json',