I have a custom sensor that outputs this:
volume:1,222,333,444
Just for testing purposes. The script runs fine and the message shows up on the sensor screen, all lights are green.
However when i look at the live data table view the only data being stored is the execution time. The columns for "Value (volume)" and "Value (speed)" all say "0 Kbyte". I'd like to store that number in the volume column.
Any tips on what I need to look for in the sensor settings?
Thanks
Article Comments
One single integer. It's the total file size of specific files in a folder. I've modified my batch file to remove the commas:
@echo off for /f "tokens=3" %%A in ('dir \\blueirisw8\c$\BlueIris\New\%1*.*^|findstr "File(s)"') do set bytes=%%A echo volume:%bytes:,=%
I don't know how to add code tags to these posts - sorry.
So "last message" now says:
48399208639
Instead of:
48,399,208,639
Everything is still green but nothing in the volume column.
Here's a screenshot of the sensor settings:
http://i.imgur.com/NDi4CNE.png
And here is the live data screen:
http://i.imgur.com/QBq5hne.png
I'm guessing "volume:48399208639" isn't the right output? I've also tried "kbyte:48399208639" but get the same results.
Mar, 2016 - Permalink
Dear dreniarb
Please recreate the sensor and use "Integer" (instead of "Counter") as unit type. You should now get a non-zero value channel.
Mar, 2016 - Permalink
Dear dreniarb
Do you intent to store the numbers 1, 222, 333 and 444 (four data points in total), or the number 1222333444 as single integer?
Mar, 2016 - Permalink