Version 3.0 Released

Version 3.0 is finally here. Here’s a brief overview of some of the new features.

Settings

Added a new tab ‘Mqtt Data’. This shows the last mqtt received messages order by utc desc. This is really useful for debugging.

Thing Page Type

Rather than just using short codes to display mqtt data. I added in the concept of a ‘Thing Page Type’. You can now create a ‘Thing’ and set associated thing properties – in particular, the associated mqtt topic.

When you edit a thing, you create a post like any other but have the option of inserting ‘canned’ mqttcogs shortcodes into the editor really quickly.

You can also replace the ‘hard’ mqttcogs topic with the thing slug if you wish. This is pretty neat as it allows you to replace a sensor, you only need to update the mqtt topic at the post level rather than each shortcode that uses it.

The reason is that I also want to be able to associate the Thing with a geographic location or shape. So you can include a GeoJSON fragment as well. This can be used if you decide you want to use a leaflet map.

Thing Templates

I’ve included some basic templates that you can select *really quickly*. For example

  • Datatable with last 10 items
  • A leaflet map
  • The last 7 days as a line chart

When you press the add button the template will be used to add the shortcode to your thing page. You can then replace the topic with the page slug!

If you want you can also set up your own templates!




No Comments


You can leave the first : )



Leave a Reply

Your email address will not be published. Required fields are marked *