Skip to content

Commit

Permalink
Fix for missing emoncms_path
Browse files Browse the repository at this point in the history
This fixes the issue where the emoncms path is ignored in the webui and not used to generate emoncms requests.
  • Loading branch information
fillycheezstake committed Nov 13, 2020
1 parent 9e038e3 commit 714e46c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app_config.cpp
Expand Up @@ -222,6 +222,7 @@ void config_save_emoncms(bool enable, String server, String path, String node, S
}

config.set(F("emoncms_server"), server);
config.set(F("emoncms_path"), path);
config.set(F("emoncms_node"), node);
config.set(F("emoncms_apikey"), apikey);
config.set(F("emoncms_fingerprint"), fingerprint);
Expand Down
3 changes: 2 additions & 1 deletion src/emoncms.cpp
Expand Up @@ -77,7 +77,8 @@ void emoncms_publish(JsonDocument &data)

if (config_emoncms_enabled() && emoncms_apikey != 0)
{
String url = post_path;
String url = emoncms_path;
url += post_path;
String json;
serializeJson(data, json);
url += F("fulljson=");
Expand Down

0 comments on commit 714e46c

Please sign in to comment.