Plugin JSON-holder

Moderator: Telldus

Post Reply
kamsvag
Posts: 67
Joined: Fri Mar 17, 2023 9:45 am

Plugin JSON-holder

Post by kamsvag »

Ok, so I have an idea of a new plugin. It might not be interesting for everyone.

I'd like a value holder with JSON syntax as a sensor. Idea would be to populate it from external sources.
Would be awesome to have a placeholder for metrics from other systems to populate from examples NodeRed.

Could be used in a massive different ways. In NodeRed you could subscribe to sensordata from ZigBee devices and publish them in this SensorPlugin to read in the Telldus Live among the rest of your sensors. You can use own crafted Arduino sensors and publish in this plugin.
kamsvag
Posts: 67
Joined: Fri Mar 17, 2023 9:45 am

Re: Plugin JSON-holder

Post by kamsvag »

So I started working on this. Not sure if anyone else would be interested in this plugin but if I find time I'll make it public.

It's going to be a Json holder for Key and Values, example;

Code: Select all

Garage:
   Temperature: 11
   Humidity: 25
   Lum: 12
Garden:
   Temperature: 14
   Humidity: 40
   Lum: 60
Chili soil:
   Humidity #1: 35
   Humidity #2: 37
   Humidity #3: 45
and the JSON would simply be something like this.

Code: Select all

{
	"Garage": {
		"Temperature": 11,
		"Humidity": 25,
		"Lum": 12,
	},
	"Garden": {
		"Temperature": 14,
		"Humidity": 40,
		"Lum": 60,
	},
	"Chili soil": {
		"Humidity #1": 35,
		"Humidity #2": 37,
		"Humidity #3": 45,
	},
}
These key and values are from a devirse set of sensors not talking 433 or z-wave but processed in my case on a Raspberry Pi and made accessable as JSON objects over REST-api. How ever, I want them along with all my other sensors, hence the 'need' of my plugin.
Post Reply