Skip to content

Commit

Permalink
Merge pull request #85 from fillycheezstake/master
Browse files Browse the repository at this point in the history
Fix for missing emoncms_path
  • Loading branch information
glynhudson committed Dec 14, 2020
2 parents 9e038e3 + 714e46c commit 84e4929
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 84e4929

Please sign in to comment.