Meteobridge PRO can now generate interactive graphs

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Meteobridge PRO can now generate interactive graphs

Post by admin »

DAP wrote:Very nice.
Feature request: I have a 4K monitor, and while the graph autoscales to the width of the screen, it only fits in the top third of the display. Please have it autoscale vertically as well as horizontally.
You can make a copy of the chart definition "allinone-imp.chart" in MB PRO network folder "templates" and change this line

Code: Select all

  height: 700px;
to

Code: Select all

  height: 1400px;
in order to have it twice as high.
cphMichael
Junior Boarder
Junior Boarder
Posts: 36
Joined: Wed Oct 19, 2016 2:26 pm

Re: Meteobridge PRO can now generate interactive graphs

Post by cphMichael »

Thank you for the new Graphs :-)

My Station is a Davis Vantage VUE, so I have no Solar or UV sensor.

Therefore the Solar/UV graph is empty.

Is it possible to ‘disable’ the Radiation chart?

/Michael
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Meteobridge PRO can now generate interactive graphs

Post by admin »

it should suppress radiation data when no sensors there. I will check this.
cphMichael
Junior Boarder
Junior Boarder
Posts: 36
Joined: Wed Oct 19, 2016 2:26 pm

Re: Meteobridge PRO can now generate interactive graphs

Post by cphMichael »

Unfortunately, It doesn't suppress radiation data.

You are welcome to take a look here:

http://frederiksberg-vejret.dk/ChartTodayMin.php

I rebooted the Meteobridge to upgrade to "released October 23, 2016" but it's still says "Meteobridge 3.1 (Oct 20 2016, build 10630), FW 1.4"


/Michael
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Meteobridge PRO can now generate interactive graphs

Post by admin »

Just release update should handle non-existence of solar/uv sensors correctly and we have new chart types showing min/max values, which might be particular helpful for daily/monthly views.
chart-x.png
chart-x.png (120.04 KiB) Viewed 7828 times
Mattk
Platinum Boarder
Platinum Boarder
Posts: 1387
Joined: Mon Sep 22, 2014 3:24 am

Re: Meteobridge PRO can now generate interactive graphs

Post by Mattk »

October 24 release appears to have lost the IE support, back to spinning spokes again, all good in Chrome.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Meteobridge PRO can now generate interactive graphs

Post by admin »

Todays release fixes a bug related to daylight saving time switches and adds a new graph type, called heatmap.
Heatmaps show each day in a column, with the hours stacked in the vertical and showing temperatures by colors.
heatmap.png
heatmap.png (63.34 KiB) Viewed 7778 times
cphMichael
Junior Boarder
Junior Boarder
Posts: 36
Joined: Wed Oct 19, 2016 2:26 pm

Re: Meteobridge PRO can now generate interactive graphs

Post by cphMichael »

Hi Boris,

Could you be interested in making an Interactive Graph that show “Weather Trends” like the one that the Saratoga scripts does – but made with JavaScript in the same nice way as your ‘allinone’ do?

:D Michael
Attachments
wxtrends.php
wxtrends.php
weather-trends.PNG (47.38 KiB) Viewed 7775 times
marco
Senior Boarder
Senior Boarder
Posts: 42
Joined: Wed Apr 11, 2012 11:04 am

Re: Meteobridge PRO can now generate interactive graphs

Post by marco »

Very nice work, congrats Boris and thanks a lot ...keep coding..! :mrgreen:
jay
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: Wed Aug 10, 2016 12:33 pm

Re: Meteobridge PRO can now generate interactive graphs

Post by jay »

webcam wrote:Would be nice if you could change wind at km/h.
... also temperature in celsius instead of fahrenheit for those using metric measurements. :D
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Meteobridge PRO can now generate interactive graphs

Post by admin »

Meteobridge PRO graphing templates always come in two flavours:
"iso" with kmh/mm/hPa/°C and "imp" with mph/in/inHg/°F.
marco
Senior Boarder
Senior Boarder
Posts: 42
Joined: Wed Apr 11, 2012 11:04 am

Re: Meteobridge PRO can now generate interactive graphs

Post by marco »

admin wrote:(to be found on "amcharts.com" where you can also see lots of examples what this package can deliver) then you can adapt/design your own graphs. I know that just a fraction of users will do that, but the results of those can be share with the whole Meteobridge PRO community.
Hi
i have two question about the graphing stuff.
First question:
Are all demos from amcharts implemented to use them in MB-Pro, ? Also the gauges and other stuff? There seems to be 3 packages on the amchart-website:
1. JavaScript Charts
2. JavaScriptStock Charts
3. JavaScript Maps

second question:
changing the theme from light to dark, possible?
i tried to change this two lines (Nr.40 and nr.70) in the "tempminmax-iso-file" in the template-folder from the MB-Pro:

(Line number 40)
from: #METEOBRIDGE#inline /www/public/amcharts/light.js to --> #METEOBRIDGE#inline /www/public/amcharts/dark.js

(Line number 70)
From: "theme": "light", --> "theme": "dark",

after that the graph should be kind of dark, if i'm right? but nothing has changed on my side ^^ :shock:

Thanks for your support!
marco
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Meteobridge PRO can now generate interactive graphs

Post by admin »

We have licensed "charts" and "stock charts", not the "maps".

I would also expect the dark theme to work, but did not test this. Please keep in mind that
the original chart template files will be restored to original content on each reboot,
so please give your new definitions a unique name.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Meteobridge PRO can now generate interactive graphs

Post by admin »

Changing theme to "dark" works on my rig, but you have to change background of the div "chartdiv" also to a dark grey.
That can be done after these lines:

Code: Select all

ctx.putImageData(imgData, 0, 0);
var lb = new $.LoadingBox({loadingImageSrc: canvas.toDataURL()});
by adding this line:

Code: Select all

setTimeout (function(){ document.getElementById('chartdiv').style.background = '#202020';}, 600);
marco
Senior Boarder
Senior Boarder
Posts: 42
Joined: Wed Apr 11, 2012 11:04 am

Re: Meteobridge PRO can now generate interactive graphs

Post by marco »

Hi
yep that works fine... thank you!
marco
Post Reply