# Local weather group for Dashboard

**URL:** <https://discourse.nodered.org/t/local-weather-group-for-dashboard/387>\
**Category:** Dashboard\
**Tags:** weather\
**Created:** [25 May 2018 17:23 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387 "2018-05-25T17:23:48Z")\
**Posts on this page:** 1\
**Showing post:** 71

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [3 June 2019 18:29 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/71 "2019-06-03T18:29:13Z")

</div>

First off you can have one MQTT-in node passing to a switch. Just use a topic of `particle/#`. If you don't know about using single level and multi-level wildcards in your topics, you should go read [MQTT Topics, Wildcards, & Best Practices – MQTT Essentials: Part 5](https://www.hivemq.com/blog/mqtt-essentials-part-5-mqtt-topics-best-practices/) - actually read the enrite series.

> [@Cathprotech](#):
>
> I need to format the data as a JSON script...

terminology: you mean a JSON string or a javascript object

I would work backwards. setup an inject node and an influx node and figure out how to store data in the influx database. Remember Influx is not like SQL. While there are similarities, there are differences and I'm trying to wrap my head around this too but this might help: [InfluxDB schema design and data layout | InfluxDB OSS v1 Documentation](https://docs.influxdata.com/influxdb/v1.7/concepts/schema_and_data_layout/)

Once you can create a inject node with test data in the format you want/need that inserts successfully into the database, you can now work on formating the data from the sensor into that structure.

I hope this gives you some help.

Update - take a look at this thread: [Changing a payload.obects field name](https://discourse.nodered.org/t/changing-a-payload-obects-field-name/11797)

---

_[View the full topic](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387)._
