This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
KevinW1998's profile picture

sencenter - Overview of your sensors! (uses ccSensors)

Started by KevinW1998, 03 July 2012 - 06:40 PM
KevinW1998 #1
Posted 03 July 2012 - 08:40 PM
sencenter - Overview of your sensors!


You need a overview of your Reactor?
You need to see every EUStorge at a look?

sencenter can do it!

Its an easy way to see every sensor at a look!

Download:
https://dl.dropbox.c...enter/sencenter

Screenshots:
Spoiler

sencenter will create two files:
- logs/log0-infinite.log – Is a log file.. If a error appears then answer this topic with the last log entry and the error itself!
- sencenter.sen – Will save your settings/sensors!

Issues:
*After a error the log file won't get deleted/edited because the file won't be closed correctly! You need to restart MC client/server!

To-Do:
*Scrolling if there are more sensors than it can fit in the monitor
*Fix the log file issue
*Add a Trigger-system (e.g. execute blabla.lua if reactor-heat is more than 6000)

Updates:
*1.01: Fixed the log issue!


I know that this program contians more than 700 lines of code and I could save tons of code but this is my first "big" Project!

So have fun with it :P/>/> !

Kevin
Wolvan #2
Posted 04 July 2012 - 03:34 PM
fix for log huh? why not try do the following:
1.) create a lof file called example_1.log
2.) write the number 2 in the settings
3.) restart the program and read the number 2
4.) create a log file example_2.log
5.) Write 3 in the settings file and so on
KevinW1998 #3
Posted 05 July 2012 - 11:35 AM
I've updated it!

Thanks to Wolvan!
diedburn #4
Posted 22 July 2012 - 01:13 AM
thats exactly what i needed i used it for 2 days now but i love it already,
keep the good work up.
Dsystem #5
Posted 28 August 2012 - 11:47 PM
sorry for this post.
ntman4real #6
Posted 11 December 2012 - 08:02 PM
how do you get it to display on a monitor?
dissy #7
Posted 12 December 2012 - 01:08 AM
how do you get it to display on a monitor?

If the monitor is attached to the right, type: monitor right sencenter
Replace "right" as needed.
starwind #8
Posted 12 December 2012 - 09:49 AM
Im just wondering, can you connect more then one sensor controller to the computer with this program?

i have one big screen and would like to show everything there, mfsu, blutricity and more, but when i connect 2 sensor controller to the pc the program wont start.

is there something im doing wrong or?
JamberPilot #9
Posted 12 December 2012 - 01:28 PM
Hey, So… I have connected to the sensor, and set up the settings. It asks for a Custom Name: MFSU1 then a x and y. Is it supposed to be the cords of the MFSU? If it is why did it not ask for the Z? if it is not required for these it didn't show up in the menu at all
dissy #10
Posted 12 December 2012 - 03:15 PM
Hey, So… I have connected to the sensor, and set up the settings. It asks for a Custom Name: MFSU1 then a x and y. Is it supposed to be the cords of the MFSU? If it is why did it not ask for the Z? if it is not required for these it didn't show up in the menu at all

X and Y are the top left corner of the display box. You can monitor more than one sensor, and if you used a huge monitor this will let you lay out multiple boxes the way you want.

Looking at my save state file, it appears a single display box is either 25x11 or 24x10. I'm using 25x11 increments (I may have put a blank line between)

So if you have 4 sensors to monitor, you can do
#1 - 1 , 1
#2 - 1 , 11
#3 - 25 , 1
#4 - 25 , 11
etc
JamberPilot #11
Posted 13 December 2012 - 09:39 AM
Yeah I am using a 5x3 which is apparently the smallest the program functions as. At least it can fit 2 readings. Thanks dissy!