The DB2 chart doc's read;
Alternatively, you can set the
series
property to typeJSON
, and then provide an array of keys
...but I'm not seeing a 'JSON' option?
Dashboard v0.7.0
The DB2 chart doc's read;
Alternatively, you can set the
series
property to typeJSON
, and then provide an array of keys
...but I'm not seeing a 'JSON' option?
Dashboard v0.7.0
That was added in v0.7.2 - you will need to switch over to @flowfuse/node-red-dashboard
in order to get that latest version
Ok thanks.
From those docs I see that I could make the dropdown look more like the D1 dropdown by specifying variant="underlined"
rather than "outlined" in the v-select spec. How can do that? Can I specify a class and CSS in a ui-template? CSS is not one of my areas of expertise.
That would still have the small label as we have it in D2.0 currently:
I don't expose the variant
option in the ui-dropdown
at the moment. It's a Vuetify property that's used when building the component, rather than CSS.
I realise that. This was just to make it look more like D1, without the box round it. I don't like a page full of unnecessary boxes. I think the underline layout looks much better. Consider the look of these two for example.
D1
D2
Also, am I correct in thinking that there is room for more characters in the underline case? That can be very important on a small screen.
I see the outlined style is present in a number of other field types, which again constrains the design of the dashboard.
Feedback taken on board - will look at seeing whether this is something we can include in ui-theme
options?
Shall I raise an issue?
Yes please
During another forum post, I discussed formatting batch time-series data into a DB2 chart.
Basically, using a Met Office api to get weather forecast data for the following 3 days, which is run every hour as the forecasts get more accurate nearest realtime
Works OK, except each time the api is called, the chart is redrawn but the last datapoint is now connected to the first datapoint.
Easy to sort though - before the chart is redrawn, send a blank array to clear the chart first.
Is this a bug? or is it's intention to avoid redrawing the entire chart when adding single datapoints?
[{"id":"399d4d9a696ed5d4","type":"function","z":"51a81bf279dcf161","name":"format for chart","func":"const fullArray = msg.payload;\nconst outputArray = fullArray.flatMap(dataPoint => [\n {\"index\": \"temp\", \"y\": dataPoint.screenTemperature, \"x\": dataPoint.time},\n {\"index\": \"feelslike\", \"y\": dataPoint.feelsLikeTemperature, \"x\": dataPoint.time},\n {\"index\": \"windspeed\", \"y\": dataPoint.windSpeed10m, \"x\": dataPoint.time},\n {\"index\": \"gusts\", \"y\": dataPoint.windGustSpeed10m, \"x\": dataPoint.time}\n]);\nnode.send({payload: outputArray})","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":360,"y":380,"wires":[["0fddd7a41ab8c1bf","87f2f6e49b612301"]]},{"id":"8f1a8cbb02637840","type":"inject","z":"51a81bf279dcf161","name":"Full array","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[{\"time\":\"2023-11-15T09:00Z\",\"screenTemperature\":9.67,\"maxScreenAirTemp\":9.84,\"minScreenAirTemp\":9.57,\"screenDewPointTemperature\":6.71,\"feelsLikeTemperature\":6.55,\"windSpeed10m\":6.84,\"windDirectionFrom10m\":252,\"windGustSpeed10m\":11.83,\"max10mWindGust\":13.07,\"visibility\":12746,\"screenRelativeHumidity\":81.66,\"mslp\":101040,\"uvIndex\":1,\"significantWeatherCode\":3,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":2},{\"time\":\"2023-11-15T10:00Z\",\"screenTemperature\":9.55,\"maxScreenAirTemp\":9.67,\"minScreenAirTemp\":9.52,\"screenDewPointTemperature\":6.51,\"feelsLikeTemperature\":6.14,\"windSpeed10m\":7.72,\"windDirectionFrom10m\":250,\"windGustSpeed10m\":13.61,\"max10mWindGust\":13.61,\"visibility\":14844,\"screenRelativeHumidity\":81.19,\"mslp\":101132,\"uvIndex\":1,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":6},{\"time\":\"2023-11-15T11:00Z\",\"screenTemperature\":9.77,\"maxScreenAirTemp\":9.78,\"minScreenAirTemp\":9.55,\"screenDewPointTemperature\":6.71,\"feelsLikeTemperature\":6.72,\"windSpeed10m\":6.69,\"windDirectionFrom10m\":257,\"windGustSpeed10m\":12,\"max10mWindGust\":12.72,\"visibility\":15804,\"screenRelativeHumidity\":81.2,\"mslp\":101194,\"uvIndex\":1,\"significantWeatherCode\":8,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":9},{\"time\":\"2023-11-15T12:00Z\",\"screenTemperature\":10.36,\"maxScreenAirTemp\":10.38,\"minScreenAirTemp\":9.77,\"screenDewPointTemperature\":6.42,\"feelsLikeTemperature\":7.19,\"windSpeed10m\":7.48,\"windDirectionFrom10m\":266,\"windGustSpeed10m\":13.38,\"max10mWindGust\":13.47,\"visibility\":23911,\"screenRelativeHumidity\":76.58,\"mslp\":101220,\"uvIndex\":1,\"significantWeatherCode\":8,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":8},{\"time\":\"2023-11-15T13:00Z\",\"screenTemperature\":10.56,\"maxScreenAirTemp\":10.6,\"minScreenAirTemp\":10.36,\"screenDewPointTemperature\":6.29,\"feelsLikeTemperature\":7.31,\"windSpeed10m\":7.76,\"windDirectionFrom10m\":269,\"windGustSpeed10m\":13.68,\"max10mWindGust\":14.24,\"visibility\":26754,\"screenRelativeHumidity\":74.97,\"mslp\":101260,\"uvIndex\":1,\"significantWeatherCode\":3,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":1},{\"time\":\"2023-11-15T14:00Z\",\"screenTemperature\":10.38,\"maxScreenAirTemp\":10.56,\"minScreenAirTemp\":10.36,\"screenDewPointTemperature\":6.1,\"feelsLikeTemperature\":7.21,\"windSpeed10m\":7.46,\"windDirectionFrom10m\":271,\"windGustSpeed10m\":13.25,\"max10mWindGust\":13.5,\"visibility\":28367,\"screenRelativeHumidity\":74.94,\"mslp\":101300,\"uvIndex\":1,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":6},{\"time\":\"2023-11-15T15:00Z\",\"screenTemperature\":10.09,\"maxScreenAirTemp\":10.38,\"minScreenAirTemp\":10.08,\"screenDewPointTemperature\":6.29,\"feelsLikeTemperature\":7.02,\"windSpeed10m\":7.04,\"windDirectionFrom10m\":270,\"windGustSpeed10m\":12.7,\"max10mWindGust\":13.38,\"visibility\":28415,\"screenRelativeHumidity\":77.38,\"mslp\":101350,\"uvIndex\":1,\"significantWeatherCode\":8,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":10},{\"time\":\"2023-11-15T16:00Z\",\"screenTemperature\":9.85,\"maxScreenAirTemp\":10.09,\"minScreenAirTemp\":9.84,\"screenDewPointTemperature\":6.41,\"feelsLikeTemperature\":6.91,\"windSpeed10m\":6.36,\"windDirectionFrom10m\":270,\"windGustSpeed10m\":11.99,\"max10mWindGust\":12.52,\"visibility\":29764,\"screenRelativeHumidity\":79.39,\"mslp\":101390,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":6},{\"time\":\"2023-11-15T17:00Z\",\"screenTemperature\":9.68,\"maxScreenAirTemp\":9.85,\"minScreenAirTemp\":9.66,\"screenDewPointTemperature\":6.3,\"feelsLikeTemperature\":6.93,\"windSpeed10m\":5.75,\"windDirectionFrom10m\":270,\"windGustSpeed10m\":11.13,\"max10mWindGust\":11.88,\"visibility\":27141,\"screenRelativeHumidity\":79.59,\"mslp\":101450,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":5},{\"time\":\"2023-11-15T18:00Z\",\"screenTemperature\":9.5,\"maxScreenAirTemp\":9.68,\"minScreenAirTemp\":9.42,\"screenDewPointTemperature\":6.12,\"feelsLikeTemperature\":6.91,\"windSpeed10m\":5.16,\"windDirectionFrom10m\":269,\"windGustSpeed10m\":10.2,\"max10mWindGust\":11.21,\"visibility\":27560,\"screenRelativeHumidity\":79.49,\"mslp\":101484,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":6},{\"time\":\"2023-11-15T19:00Z\",\"screenTemperature\":9.26,\"maxScreenAirTemp\":9.5,\"minScreenAirTemp\":9.26,\"screenDewPointTemperature\":6.3,\"feelsLikeTemperature\":7.02,\"windSpeed10m\":4.29,\"windDirectionFrom10m\":271,\"windGustSpeed10m\":8.87,\"max10mWindGust\":10.48,\"visibility\":26546,\"screenRelativeHumidity\":81.8,\"mslp\":101496,\"uvIndex\":0,\"significantWeatherCode\":9,\"precipitationRate\":0.65,\"totalPrecipAmount\":0.12,\"totalSnowAmount\":0,\"probOfPrecipitation\":33},{\"time\":\"2023-11-15T20:00Z\",\"screenTemperature\":8.97,\"maxScreenAirTemp\":9.26,\"minScreenAirTemp\":8.95,\"screenDewPointTemperature\":6.18,\"feelsLikeTemperature\":6.9,\"windSpeed10m\":3.91,\"windDirectionFrom10m\":283,\"windGustSpeed10m\":8.07,\"max10mWindGust\":9.45,\"visibility\":20874,\"screenRelativeHumidity\":82.95,\"mslp\":101512,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":8},{\"time\":\"2023-11-15T21:00Z\",\"screenTemperature\":8.86,\"maxScreenAirTemp\":8.97,\"minScreenAirTemp\":8.83,\"screenDewPointTemperature\":6.32,\"feelsLikeTemperature\":7.14,\"windSpeed10m\":3.17,\"windDirectionFrom10m\":280,\"windGustSpeed10m\":6.76,\"max10mWindGust\":8.34,\"visibility\":19997,\"screenRelativeHumidity\":84.3,\"mslp\":101518,\"uvIndex\":0,\"significantWeatherCode\":8,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":9},{\"time\":\"2023-11-15T22:00Z\",\"screenTemperature\":8.47,\"maxScreenAirTemp\":8.86,\"minScreenAirTemp\":8.45,\"screenDewPointTemperature\":6.47,\"feelsLikeTemperature\":7.24,\"windSpeed10m\":2.27,\"windDirectionFrom10m\":290,\"windGustSpeed10m\":5.38,\"max10mWindGust\":7.38,\"visibility\":17364,\"screenRelativeHumidity\":87.49,\"mslp\":101525,\"uvIndex\":0,\"significantWeatherCode\":8,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":8},{\"time\":\"2023-11-15T23:00Z\",\"screenTemperature\":8.22,\"maxScreenAirTemp\":8.47,\"minScreenAirTemp\":8.18,\"screenDewPointTemperature\":6.68,\"feelsLikeTemperature\":7.46,\"windSpeed10m\":1.47,\"windDirectionFrom10m\":292,\"windGustSpeed10m\":3.39,\"max10mWindGust\":5.43,\"visibility\":18035,\"screenRelativeHumidity\":90.14,\"mslp\":101522,\"uvIndex\":0,\"significantWeatherCode\":8,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":8},{\"time\":\"2023-11-16T00:00Z\",\"screenTemperature\":7.88,\"maxScreenAirTemp\":8.22,\"minScreenAirTemp\":7.81,\"screenDewPointTemperature\":6.55,\"feelsLikeTemperature\":7.22,\"windSpeed10m\":1.09,\"windDirectionFrom10m\":333,\"windGustSpeed10m\":2.58,\"max10mWindGust\":4.36,\"visibility\":17380,\"screenRelativeHumidity\":91.34,\"mslp\":101512,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":5},{\"time\":\"2023-11-16T01:00Z\",\"screenTemperature\":7.4,\"maxScreenAirTemp\":7.88,\"minScreenAirTemp\":7.37,\"screenDewPointTemperature\":6.51,\"feelsLikeTemperature\":6.63,\"windSpeed10m\":1.48,\"windDirectionFrom10m\":348,\"windGustSpeed10m\":2.73,\"max10mWindGust\":3.51,\"visibility\":15747,\"screenRelativeHumidity\":94.16,\"mslp\":101479,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":3},{\"time\":\"2023-11-16T02:00Z\",\"screenTemperature\":6.97,\"maxScreenAirTemp\":7.4,\"minScreenAirTemp\":6.92,\"screenDewPointTemperature\":6.2,\"feelsLikeTemperature\":6.17,\"windSpeed10m\":1.17,\"windDirectionFrom10m\":129,\"windGustSpeed10m\":2.28,\"max10mWindGust\":3.05,\"visibility\":8952,\"screenRelativeHumidity\":94.91,\"mslp\":101429,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":4},{\"time\":\"2023-11-16T03:00Z\",\"screenTemperature\":6.56,\"maxScreenAirTemp\":6.97,\"minScreenAirTemp\":6.53,\"screenDewPointTemperature\":5.73,\"feelsLikeTemperature\":5.65,\"windSpeed10m\":1.4,\"windDirectionFrom10m\":129,\"windGustSpeed10m\":2.34,\"max10mWindGust\":2.64,\"visibility\":9280,\"screenRelativeHumidity\":94.52,\"mslp\":101386,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":4},{\"time\":\"2023-11-16T04:00Z\",\"screenTemperature\":6.32,\"maxScreenAirTemp\":6.56,\"minScreenAirTemp\":6.31,\"screenDewPointTemperature\":5.29,\"feelsLikeTemperature\":5.31,\"windSpeed10m\":1.63,\"windDirectionFrom10m\":107,\"windGustSpeed10m\":2.88,\"max10mWindGust\":3.01,\"visibility\":10121,\"screenRelativeHumidity\":93.39,\"mslp\":101327,\"uvIndex\":0,\"significantWeatherCode\":8,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":8},{\"time\":\"2023-11-16T05:00Z\",\"screenTemperature\":6.15,\"maxScreenAirTemp\":6.32,\"minScreenAirTemp\":6.12,\"screenDewPointTemperature\":5.21,\"feelsLikeTemperature\":4.9,\"windSpeed10m\":1.83,\"windDirectionFrom10m\":105,\"windGustSpeed10m\":3.91,\"max10mWindGust\":4.04,\"visibility\":6404,\"screenRelativeHumidity\":93.84,\"mslp\":101251,\"uvIndex\":0,\"significantWeatherCode\":8,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":9},{\"time\":\"2023-11-16T06:00Z\",\"screenTemperature\":6,\"maxScreenAirTemp\":6.15,\"minScreenAirTemp\":5.96,\"screenDewPointTemperature\":5.11,\"feelsLikeTemperature\":4.54,\"windSpeed10m\":2.06,\"windDirectionFrom10m\":103,\"windGustSpeed10m\":4.19,\"max10mWindGust\":4.42,\"visibility\":6264,\"screenRelativeHumidity\":94.25,\"mslp\":101208,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":6},{\"time\":\"2023-11-16T07:00Z\",\"screenTemperature\":6.02,\"maxScreenAirTemp\":6.05,\"minScreenAirTemp\":6,\"screenDewPointTemperature\":5.15,\"feelsLikeTemperature\":4.73,\"windSpeed10m\":1.89,\"windDirectionFrom10m\":90,\"windGustSpeed10m\":4.31,\"max10mWindGust\":4.83,\"visibility\":6117,\"screenRelativeHumidity\":94.37,\"mslp\":101161,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":6},{\"time\":\"2023-11-16T08:00Z\",\"screenTemperature\":6.24,\"maxScreenAirTemp\":6.25,\"minScreenAirTemp\":6.02,\"screenDewPointTemperature\":5.45,\"feelsLikeTemperature\":5.22,\"windSpeed10m\":1.67,\"windDirectionFrom10m\":79,\"windGustSpeed10m\":4.07,\"max10mWindGust\":4.65,\"visibility\":5545,\"screenRelativeHumidity\":94.7,\"mslp\":101155,\"uvIndex\":1,\"significantWeatherCode\":8,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":9},{\"time\":\"2023-11-16T09:00Z\",\"screenTemperature\":6.61,\"maxScreenAirTemp\":6.64,\"minScreenAirTemp\":6.24,\"screenDewPointTemperature\":5.77,\"feelsLikeTemperature\":5.29,\"windSpeed10m\":2.04,\"windDirectionFrom10m\":77,\"windGustSpeed10m\":4.3,\"max10mWindGust\":4.72,\"visibility\":5494,\"screenRelativeHumidity\":94.73,\"mslp\":101132,\"uvIndex\":1,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":7},{\"time\":\"2023-11-16T10:00Z\",\"screenTemperature\":7.17,\"maxScreenAirTemp\":7.18,\"minScreenAirTemp\":6.61,\"screenDewPointTemperature\":6.07,\"feelsLikeTemperature\":5.77,\"windSpeed10m\":2.23,\"windDirectionFrom10m\":70,\"windGustSpeed10m\":4.34,\"max10mWindGust\":4.8,\"visibility\":6342,\"screenRelativeHumidity\":93.15,\"mslp\":101102,\"uvIndex\":1,\"significantWeatherCode\":8,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":10},{\"time\":\"2023-11-16T11:00Z\",\"screenTemperature\":7.47,\"maxScreenAirTemp\":7.48,\"minScreenAirTemp\":7.17,\"screenDewPointTemperature\":6.22,\"feelsLikeTemperature\":6.22,\"windSpeed10m\":2.16,\"windDirectionFrom10m\":57,\"windGustSpeed10m\":4.13,\"max10mWindGust\":4.52,\"visibility\":18939,\"screenRelativeHumidity\":92.46,\"mslp\":101069,\"uvIndex\":1,\"significantWeatherCode\":12,\"precipitationRate\":0.36,\"totalPrecipAmount\":0.13,\"totalSnowAmount\":0,\"probOfPrecipitation\":50},{\"time\":\"2023-11-16T12:00Z\",\"screenTemperature\":7.7,\"maxScreenAirTemp\":7.7,\"minScreenAirTemp\":7.47,\"screenDewPointTemperature\":5.93,\"feelsLikeTemperature\":6.03,\"windSpeed10m\":2.84,\"windDirectionFrom10m\":54,\"windGustSpeed10m\":5.65,\"max10mWindGust\":5.65,\"visibility\":14163,\"screenRelativeHumidity\":89.39,\"mslp\":101038,\"uvIndex\":1,\"significantWeatherCode\":12,\"precipitationRate\":0.54,\"totalPrecipAmount\":0.34,\"totalSnowAmount\":0,\"probOfPrecipitation\":51},{\"time\":\"2023-11-16T13:00Z\",\"screenTemperature\":7.77,\"maxScreenAirTemp\":7.82,\"minScreenAirTemp\":7.7,\"screenDewPointTemperature\":5.97,\"feelsLikeTemperature\":6.15,\"windSpeed10m\":2.68,\"windDirectionFrom10m\":47,\"windGustSpeed10m\":5.36,\"max10mWindGust\":6.6,\"visibility\":14649,\"screenRelativeHumidity\":89.59,\"mslp\":101034,\"uvIndex\":1,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":18},{\"time\":\"2023-11-16T14:00Z\",\"screenTemperature\":7.75,\"maxScreenAirTemp\":7.78,\"minScreenAirTemp\":7.72,\"screenDewPointTemperature\":6.16,\"feelsLikeTemperature\":6.38,\"windSpeed10m\":2.36,\"windDirectionFrom10m\":30,\"windGustSpeed10m\":4.74,\"max10mWindGust\":5.52,\"visibility\":10438,\"screenRelativeHumidity\":90.92,\"mslp\":101042,\"uvIndex\":1,\"significantWeatherCode\":12,\"precipitationRate\":0.37,\"totalPrecipAmount\":0.18,\"totalSnowAmount\":0,\"probOfPrecipitation\":53},{\"time\":\"2023-11-16T15:00Z\",\"screenTemperature\":7.86,\"maxScreenAirTemp\":7.89,\"minScreenAirTemp\":7.75,\"screenDewPointTemperature\":6.08,\"feelsLikeTemperature\":6.61,\"windSpeed10m\":2.25,\"windDirectionFrom10m\":12,\"windGustSpeed10m\":4.49,\"max10mWindGust\":5.58,\"visibility\":13505,\"screenRelativeHumidity\":89.54,\"mslp\":101054,\"uvIndex\":1,\"significantWeatherCode\":8,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":15},{\"time\":\"2023-11-16T16:00Z\",\"screenTemperature\":7.5,\"maxScreenAirTemp\":7.86,\"minScreenAirTemp\":7.5,\"screenDewPointTemperature\":5.92,\"feelsLikeTemperature\":6.3,\"windSpeed10m\":2.06,\"windDirectionFrom10m\":357,\"windGustSpeed10m\":4.32,\"max10mWindGust\":5.53,\"visibility\":13819,\"screenRelativeHumidity\":90.89,\"mslp\":101074,\"uvIndex\":0,\"significantWeatherCode\":8,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":15},{\"time\":\"2023-11-16T17:00Z\",\"screenTemperature\":7.16,\"maxScreenAirTemp\":7.5,\"minScreenAirTemp\":7.14,\"screenDewPointTemperature\":5.78,\"feelsLikeTemperature\":6.09,\"windSpeed10m\":1.86,\"windDirectionFrom10m\":332,\"windGustSpeed10m\":3.95,\"max10mWindGust\":5.46,\"visibility\":13462,\"screenRelativeHumidity\":91.95,\"mslp\":101114,\"uvIndex\":0,\"significantWeatherCode\":8,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":16},{\"time\":\"2023-11-16T18:00Z\",\"screenTemperature\":6.87,\"maxScreenAirTemp\":7.16,\"minScreenAirTemp\":6.84,\"screenDewPointTemperature\":5.73,\"feelsLikeTemperature\":5.72,\"windSpeed10m\":1.78,\"windDirectionFrom10m\":315,\"windGustSpeed10m\":3.76,\"max10mWindGust\":5.14,\"visibility\":11425,\"screenRelativeHumidity\":93.21,\"mslp\":101142,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":11},{\"time\":\"2023-11-16T19:00Z\",\"screenTemperature\":6.63,\"maxScreenAirTemp\":6.87,\"minScreenAirTemp\":6.63,\"screenDewPointTemperature\":5.67,\"feelsLikeTemperature\":5.39,\"windSpeed10m\":1.86,\"windDirectionFrom10m\":305,\"windGustSpeed10m\":3.76,\"max10mWindGust\":5.33,\"visibility\":11958,\"screenRelativeHumidity\":93.85,\"mslp\":101169,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":11},{\"time\":\"2023-11-16T20:00Z\",\"screenTemperature\":6.54,\"maxScreenAirTemp\":6.63,\"minScreenAirTemp\":6.53,\"screenDewPointTemperature\":5.43,\"feelsLikeTemperature\":5.45,\"windSpeed10m\":1.65,\"windDirectionFrom10m\":294,\"windGustSpeed10m\":3.16,\"max10mWindGust\":4.81,\"visibility\":10839,\"screenRelativeHumidity\":93.02,\"mslp\":101199,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":13},{\"time\":\"2023-11-16T21:00Z\",\"screenTemperature\":6.47,\"maxScreenAirTemp\":6.54,\"minScreenAirTemp\":6.45,\"screenDewPointTemperature\":5.38,\"feelsLikeTemperature\":5.47,\"windSpeed10m\":1.47,\"windDirectionFrom10m\":285,\"windGustSpeed10m\":2.58,\"max10mWindGust\":3.82,\"visibility\":10767,\"screenRelativeHumidity\":92.93,\"mslp\":101233,\"uvIndex\":0,\"significantWeatherCode\":8,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":14},{\"time\":\"2023-11-16T22:00Z\",\"screenTemperature\":6.34,\"maxScreenAirTemp\":6.47,\"minScreenAirTemp\":6.3,\"screenDewPointTemperature\":5.25,\"feelsLikeTemperature\":5.06,\"windSpeed10m\":1.86,\"windDirectionFrom10m\":280,\"windGustSpeed10m\":3.22,\"max10mWindGust\":4.74,\"visibility\":10790,\"screenRelativeHumidity\":92.89,\"mslp\":101278,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":10},{\"time\":\"2023-11-16T23:00Z\",\"screenTemperature\":6.17,\"maxScreenAirTemp\":6.34,\"minScreenAirTemp\":6.15,\"screenDewPointTemperature\":5.21,\"feelsLikeTemperature\":5.07,\"windSpeed10m\":1.7,\"windDirectionFrom10m\":258,\"windGustSpeed10m\":3.46,\"max10mWindGust\":4.72,\"visibility\":14620,\"screenRelativeHumidity\":93.57,\"mslp\":101323,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":8},{\"time\":\"2023-11-17T00:00Z\",\"screenTemperature\":6.05,\"maxScreenAirTemp\":6.17,\"minScreenAirTemp\":6.03,\"screenDewPointTemperature\":5.04,\"feelsLikeTemperature\":4.93,\"windSpeed10m\":1.69,\"windDirectionFrom10m\":251,\"windGustSpeed10m\":3.3,\"max10mWindGust\":4.11,\"visibility\":18234,\"screenRelativeHumidity\":93.28,\"mslp\":101355,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":8},{\"time\":\"2023-11-17T01:00Z\",\"screenTemperature\":5.96,\"maxScreenAirTemp\":6.05,\"minScreenAirTemp\":5.95,\"screenDewPointTemperature\":4.95,\"feelsLikeTemperature\":4.87,\"windSpeed10m\":1.72,\"windDirectionFrom10m\":255,\"windGustSpeed10m\":3.51,\"max10mWindGust\":3.63,\"visibility\":16831,\"screenRelativeHumidity\":93.34,\"mslp\":101400,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":10},{\"time\":\"2023-11-17T02:00Z\",\"screenTemperature\":5.78,\"maxScreenAirTemp\":5.96,\"minScreenAirTemp\":5.76,\"screenDewPointTemperature\":4.78,\"feelsLikeTemperature\":4.64,\"windSpeed10m\":1.64,\"windDirectionFrom10m\":250,\"windGustSpeed10m\":3.19,\"max10mWindGust\":3.42,\"visibility\":16706,\"screenRelativeHumidity\":93.46,\"mslp\":101437,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":7},{\"time\":\"2023-11-17T03:00Z\",\"screenTemperature\":5.64,\"maxScreenAirTemp\":5.78,\"minScreenAirTemp\":5.61,\"screenDewPointTemperature\":4.61,\"feelsLikeTemperature\":4.25,\"windSpeed10m\":1.93,\"windDirectionFrom10m\":248,\"windGustSpeed10m\":3.57,\"max10mWindGust\":3.57,\"visibility\":16051,\"screenRelativeHumidity\":93.14,\"mslp\":101475,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":6},{\"time\":\"2023-11-17T04:00Z\",\"screenTemperature\":5.57,\"maxScreenAirTemp\":5.64,\"minScreenAirTemp\":5.55,\"screenDewPointTemperature\":4.5,\"feelsLikeTemperature\":4.29,\"windSpeed10m\":1.76,\"windDirectionFrom10m\":252,\"windGustSpeed10m\":3.48,\"max10mWindGust\":3.61,\"visibility\":16191,\"screenRelativeHumidity\":93.14,\"mslp\":101532,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":8},{\"time\":\"2023-11-17T05:00Z\",\"screenTemperature\":5.28,\"maxScreenAirTemp\":5.57,\"minScreenAirTemp\":5.28,\"screenDewPointTemperature\":4.4,\"feelsLikeTemperature\":4.03,\"windSpeed10m\":1.71,\"windDirectionFrom10m\":245,\"windGustSpeed10m\":3.32,\"max10mWindGust\":3.46,\"visibility\":17745,\"screenRelativeHumidity\":94.14,\"mslp\":101589,\"uvIndex\":0,\"significantWeatherCode\":2,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":3},{\"time\":\"2023-11-17T06:00Z\",\"screenTemperature\":5.18,\"maxScreenAirTemp\":5.36,\"minScreenAirTemp\":5.09,\"screenDewPointTemperature\":4.27,\"feelsLikeTemperature\":3.96,\"windSpeed10m\":1.61,\"windDirectionFrom10m\":236,\"windGustSpeed10m\":2.85,\"max10mWindGust\":3.7,\"visibility\":17624,\"screenRelativeHumidity\":94.12,\"mslp\":101639,\"uvIndex\":0,\"significantWeatherCode\":7,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":6},{\"time\":\"2023-11-17T07:00Z\",\"screenTemperature\":4.96,\"maxScreenAirTemp\":5.18,\"minScreenAirTemp\":4.96,\"screenDewPointTemperature\":3.98,\"feelsLikeTemperature\":3.82,\"windSpeed10m\":1.61,\"windDirectionFrom10m\":232,\"windGustSpeed10m\":2.86,\"max10mWindGust\":2.86,\"visibility\":17973,\"screenRelativeHumidity\":93.53,\"mslp\":101703,\"uvIndex\":0,\"significantWeatherCode\":2,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":3},{\"time\":\"2023-11-17T08:00Z\",\"screenTemperature\":4.94,\"maxScreenAirTemp\":4.96,\"minScreenAirTemp\":4.94,\"screenDewPointTemperature\":4.08,\"feelsLikeTemperature\":3.79,\"windSpeed10m\":1.5,\"windDirectionFrom10m\":224,\"windGustSpeed10m\":2.71,\"max10mWindGust\":2.71,\"visibility\":18226,\"screenRelativeHumidity\":94.17,\"mslp\":101785,\"uvIndex\":1,\"significantWeatherCode\":1,\"precipitationRate\":0,\"totalPrecipAmount\":0,\"totalSnowAmount\":0,\"probOfPrecipitation\":2},{\"time\":\"2023-11-17T09:00Z\",\"screenTemperature\":5.3,\"screenDewPointTemperature\":4.2,\"feelsLikeTemperature\":3.99,\"windSpeed10m\":1.75,\"windDirectionFrom10m\":222,\"windGustSpeed10m\":2.94,\"visibility\":19218,\"screenRelativeHumidity\":93.09,\"mslp\":101869,\"uvIndex\":1,\"significantWeatherCode\":3,\"precipitationRate\":0,\"probOfPrecipitation\":3}]","payloadType":"json","x":180,"y":380,"wires":[["399d4d9a696ed5d4"]]},{"id":"87f2f6e49b612301","type":"debug","z":"51a81bf279dcf161","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":560,"y":380,"wires":[]}]
Does the MetOffice model actually update every hour? I'm a bit surprised that a multi-day model updates hourly if it does.
We're running off-topic here, but yes it appears to, but not on the hour.
I think that we all could all predict the weather if we could amend it like the Met Office, as it gets closer to realtime
Not a bug - intentional (but not optimal) behaviour. We assume the appendage of data whenever new messages arrive. So, you're correct in that a clear
command (with empty []
) would be the solution.
However, I'm also open to the chart node itself offering an "Append" or "Replace" option? Which could even be a TypedInput, such that it can be defined on a msg-by-msg basis?
Do the Text Input node in Time Picker mode, and the Time mode input in the Form node take any notice of time zone, or are they basically just formatted text fields? I can't easily test as here we are now in GMT.
They are wrappers of the standard HTML <input type="time"/>
tag. Not sure how they handle themselves wrt timezone off top of my head.
It would be useful to have an "Append" or "Replace" option, but I don't have any strong opinions about how it would be implemented.
It's always a difficult balance between providing functional flexibility, and visually overwhelming new users with too many options to choose from.
The below is a screenshot of one of my charts in Flexdash, which I'm moving over to DB2.
Can I share a few features which I found helpful, and that you may wish to consider as future DB2 features.
EDIT - For info, this is how the formatting was added to the above chart
msg.payload = data
msg.labels = ["zero line", "Power grid", "Solar", "Diverted", "Diverter temp"]
msg.widths = [2, 2, 2, 2, 2]
msg.colors = ['blue', 'red', '#ffd23d', 'grey', 'purple']
msg.axes = ["right", "right", "right", "right", "left"]
msg.left_unit = " Ā°C"
msg.left_decimals = 1
msg.right_unit = " W"
msg.left_min = 10
msg.left_max = 40
msg.right_decimals = 0
How do I dynamically set the label text in a button? With D1 I would put in the label field {{topic}}
to set the label from msg.topic, but that doesn't work in D2.
I am pretty sure mustache support was (deliberately) never carried over. I think there are existing open issues around setting labels and other parts of the UI dynamically.