small format change and UTC for ice
This commit is contained in:
parent
bd91e761b1
commit
d4d3520f6d
2 changed files with 3 additions and 2 deletions
|
@ -66,7 +66,7 @@ public void Main(string argument, UpdateType updateSource) {
|
||||||
foreach(var name in removeNames)
|
foreach(var name in removeNames)
|
||||||
openDoors.Remove(name);
|
openDoors.Remove(name);
|
||||||
|
|
||||||
var msg = string.Format("\n\nAutoCloseDoors\n----------------------------\nCurrent Time: {0}\nGuarding {1} {2}",
|
var msg = string.Format("\n\nAutoCloseDoors\n----------------------------\nCurrent Time: {0}\n----------------------------\nGuarding {1} {2}",
|
||||||
now.ToLocalTime().ToLongTimeString(), iDetectedDoors, (iDetectedDoors == 1 ? "door" : "doors"));
|
now.ToLocalTime().ToLongTimeString(), iDetectedDoors, (iDetectedDoors == 1 ? "door" : "doors"));
|
||||||
if (iOpenDoors > 0)
|
if (iOpenDoors > 0)
|
||||||
msg += string.Format("\n{0} {1} currently open", iOpenDoors, (iOpenDoors == 1 ? "door is" : "doors are"));
|
msg += string.Format("\n{0} {1} currently open", iOpenDoors, (iOpenDoors == 1 ? "door is" : "doors are"));
|
||||||
|
|
|
@ -33,7 +33,8 @@ public void Main(string args) {
|
||||||
Echo($"Collectors are ON");
|
Echo($"Collectors are ON");
|
||||||
}
|
}
|
||||||
|
|
||||||
var msg = string.Format("\n\nIce Manager by Firq\n----------------------------\nCollectors are {0}\n----------------------------\nIce Amount: {1}M\n----------------------------", collectorState, Math.Round((iceamount / 1000000.0), 2));
|
var msg = string.Format("\n\nIce Manager by Firq\n----------------------------\nCurrent Time: {0}\n----------------------------\nCollectors are {1}\nIce Amount: {2}M",
|
||||||
|
DateTime.UtcNow.ToLocalTime().ToLongTimeString(), collectorState, Math.Round((iceamount / 1000000.0), 2));
|
||||||
var screen = Me.GetSurface(0);
|
var screen = Me.GetSurface(0);
|
||||||
screen.ContentType = ContentType.TEXT_AND_IMAGE;
|
screen.ContentType = ContentType.TEXT_AND_IMAGE;
|
||||||
screen.Alignment = TextAlignment.CENTER;
|
screen.Alignment = TextAlignment.CENTER;
|
||||||
|
|
Loading…
Reference in a new issue