Skip to content

Commit 9b55a35

Browse files
authored
Merge pull request #33 from mcrossley/master
- Fixes WLL timestamps always being in UTC, now uses local time - Adds web tags <#snowlying>, <#snowfalling>, both provide 1|0 responses - Adds Current Conditions editor to admin interface - Adds All Time Records editor to admin interface
2 parents 3d33df5 + 2089409 commit 9b55a35

34 files changed

+16381
-15088
lines changed

CumulusMX/Api.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public class EditControllerGet : WebApiController
105105
public EditControllerGet(IHttpContext context) : base(context)
106106
{
107107
}
108-
108+
109109
[WebApiHandler(HttpVerbs.Get, RelativePath + "edit/*")]
110110
public bool EditData()
111111
{
@@ -121,6 +121,18 @@ public bool EditData()
121121

122122
case "raintoday":
123123
return this.JsonResponse(dataEditor.EditRainToday(this));
124+
125+
case "currentcond.json":
126+
return this.JsonResponse(dataEditor.GetCurrentCond());
127+
128+
case "alltimerecords.json":
129+
return this.JsonResponse(dataEditor.GetAllTimeRecData());
130+
131+
case "alltimerecordsdayfile.json":
132+
return this.JsonResponse(dataEditor.GetAllTimeRecDayFile());
133+
134+
case "alltimerecordslogfile.json":
135+
return this.JsonResponse(dataEditor.GetAllTimeRecLogFile());
124136
}
125137

126138
throw new KeyNotFoundException("Key Not Found: " + lastSegment);
@@ -173,6 +185,12 @@ public bool EditData()
173185

174186
case "diarydelete":
175187
return this.JsonResponse(dataEditor.DeleteDiary(this));
188+
189+
case "currcond":
190+
return this.JsonResponse(dataEditor.EditCurrentCond(this));
191+
192+
case "alltime":
193+
return this.JsonResponse(dataEditor.EditAllTimeRecs(this));
176194
}
177195

178196
throw new KeyNotFoundException("Key Not Found: " + lastSegment);

0 commit comments

Comments
 (0)