Skip to content

Commit

Permalink
Merge pull request #160 from mcrossley/master
Browse files Browse the repository at this point in the history
v3.22.0 Updates
  • Loading branch information
mcrossley authored Oct 7, 2022
2 parents d7932e2 + 239ebb2 commit 89736d5
Show file tree
Hide file tree
Showing 18 changed files with 611 additions and 18 deletions.
13 changes: 13 additions & 0 deletions CumulusMX/Api.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public static class Api
public static CalibrationSettings calibrationSettings;
public static NOAASettings noaaSettings;
public static MysqlSettings mySqlSettings;
public static CustomLogs customLogs;
public static Wizard wizard;
internal static AlarmSettings alarmSettings;
internal static DataEditor dataEditor;
Expand Down Expand Up @@ -1068,6 +1069,12 @@ public async Task SettingsGet(string req)
Response.ContentType = "text/plain";
await writer.WriteAsync(CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern);
break;
case "customlogsintvl.json":
await writer.WriteAsync(customLogs.GetAlpacaFormDataIntvl());
break;
case "customlogsdaily.json":
await writer.WriteAsync(customLogs.GetAlpacaFormDataDaily());
break;
default:
Response.StatusCode = 404;
break;
Expand Down Expand Up @@ -1146,6 +1153,12 @@ public async Task SettingsSet(string req)
case "wizard.json":
await writer.WriteAsync(wizard.UpdateConfig(HttpContext));
break;
case "updatecustomlogsintvl.json":
await writer.WriteAsync(customLogs.UpdateConfigIntvl(HttpContext));
break;
case "updatecustomlogsdaily.json":
await writer.WriteAsync(customLogs.UpdateConfigDaily(HttpContext));
break;
default:
Response.StatusCode = 404;
break;
Expand Down
Loading

0 comments on commit 89736d5

Please sign in to comment.