Has there ever been any discussion of creating a virtual (multi) level displayer, where the values would either be set by the contents of a file, or via the WebAPI?
Virtual MultiLevelSensor?
- 334 Views
- Last Post 18 August 2014
Has there ever been any discussion of creating a virtual (multi) level displayer, where the values would either be set by the contents of a file, or via the WebAPI?
This virtual device could be created now and you could set it from an external program via the Web API. However, there hasn't been any convo about reading it from the contents of a file.
What do you have in mind regarding it... perhaps there's a simple solution we could whip up for it.
A while ago I thought that a geiger counter would be a neat toy. It's been sitting on my desk for a long while, and I thought that it would be neat to integrate it into InControl.
There is a Windows command line application that writes to a CSV file, or I can pull values from it either by command line piping or outputting to a file. I think that a virtual device that could pull values from any (properly formatted) CSV file at a specified interval would be especially useful, since it could potentially be used as a universal sensor input.
As far as the WebAPI goes, what is the syntax for writing a value to a device? And how would I go about setting it up? Create a virtual device and set it to a multi level sensor? At the least I'd like to be able to write a value of, say, 20, to represent 20 CPM. Ideally I could write multiple values like 20 CPM, 0.05 uSv/hr, 0.01 mrad/hr, etc.
Thanks Ryan!
A while ago I thought that a geiger counter would be a neat toy. It's been sitting on my desk for a long while, and I thought that it would be neat to integrate it into InControl.
There is a Windows command line application that writes to a CSV file, or I can pull values from it either by command line piping or outputting to a file. I think that a virtual device that could pull values from any (properly formatted) CSV file at a specified interval would be especially useful, since it could potentially be used as a universal sensor input.
As far as the WebAPI goes, what is the syntax for writing a value to a device? And how would I go about setting it up? Create a virtual device and set it to a multi level sensor? At the least I'd like to be able to write a value of, say, 20, to represent 20 CPM. Ideally I could write multiple values like 20 CPM, 0.05 uSv/hr, 0.01 mrad/hr, etc.
Thanks Ryan!
This sounds like a perfect example for a quick controller.
If you know C#, you can look at the example code for the Virtual Device controller and use it to create your own controller that would parse a CSV file and use it to update its own device.