Skip to main content
1-Visitor
January 5, 2017
Question

Show multiple things on one mashup

  • January 5, 2017
  • 5 replies
  • 3204 views

I have multiple things with same properties, one of the properties is location(base type: Location) . I want to create one mashup with google map, that should list all the locations of all the things plotted in the map.

And i am using pre-built "MQTT" thing template, which leaves me that i cannot add services to the thing template.

Please advise.

5 replies

22-Sapphire I
January 5, 2017

You can create a Thing based on that Template to which you can add services.

You can also create a 'generic thing' to create services.

These services will 'wrap' invoke the MQTT services as needed to compile the data.

OR your MQTT transactions will provide data to your Things and your services retrieve information from those Things.

At the end of that you'll need some infotable of locations that you can assign to the google map widget.

bkumar-311-VisitorAuthor
1-Visitor
January 5, 2017

Thanks Pai Chung.

Can you help me in creating the service that collects all the things info.

ALL Things have  properties

1. location - LOCATION

2. datavalue - float

22-Sapphire I
January 5, 2017

Usually all these Things are based on the same ThingTemplate.

You can create a Service that invokes ThingTemplates['nameofthetemplate'].QueryImplementingThingsWithData

Then pair that with a DataShape that has the fields name, location and datavalue