Initial Cleanup

This commit is contained in:
Reedux
2020-05-08 11:35:47 +01:00
parent 8808f58c8d
commit 9e93fa67b8
54 changed files with 340 additions and 548 deletions
@@ -264,21 +264,20 @@ public class dianoga_dumpster extends script.base_script
if (succesFeeds > 0)
{
names[idx] = "times_fed";
attribs[idx] = "" + succesFeeds;
attribs[idx] = Integer.toString(succesFeeds);
idx++;
}
names[idx] = "next_feed";
if (currentStatus == 0)
{
attribs[idx] = getCalendarTimeStringLocal(lastFed + house_pet.getUpdateWeekly(self));
}
else if (currentStatus == 1)
{
attribs[idx] = "Now";
}
else
{
attribs[idx] = "Hopefully Soon";
switch (currentStatus) {
case 0:
attribs[idx] = getCalendarTimeStringLocal(lastFed + house_pet.getUpdateWeekly(self));
break;
case 1:
attribs[idx] = "Now";
break;
default:
attribs[idx] = "Hopefully Soon";
break;
}
idx++;
names[idx] = "time_now";