small format change and UTC for ice

This commit is contained in:
Firq 2023-04-04 21:09:35 +02:00
parent bd91e761b1
commit d4d3520f6d
Signed by: Firq
GPG key ID: 4DE1059A4666E89F
2 changed files with 3 additions and 2 deletions

View file

@ -66,7 +66,7 @@ public void Main(string argument, UpdateType updateSource) {
foreach(var name in removeNames)
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"));
if (iOpenDoors > 0)
msg += string.Format("\n{0} {1} currently open", iOpenDoors, (iOpenDoors == 1 ? "door is" : "doors are"));

View file

@ -33,7 +33,8 @@ public void Main(string args) {
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);
screen.ContentType = ContentType.TEXT_AND_IMAGE;
screen.Alignment = TextAlignment.CENTER;