Skip to content

Commit

Permalink
adds ‘version’ command, +discord webhook to travis
Browse files Browse the repository at this point in the history
  • Loading branch information
t413 committed Jun 24, 2020
1 parent 3092f98 commit b265a02
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ install:
- platformio update
script:
- platformio run
after_success:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $DISCORD_WEBHOOK_URL
after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $DISCORD_WEBHOOK_URL
1 change: 1 addition & 0 deletions lib/MPPTLib/solar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ void Solar::setup() {
pub_.add("restart",[](String s){ ESP.restart(); return ""; }).hide();
pub_.add("clear",[=](String s){ pub_.clearPrefs(); return "cleared"; }).hide();
pub_.add("debug",[=](String s){ psu_.debug_ = !(s == "off"); return String(psu_.debug_); }).hide();
pub_.add("version",[=](String){ log("Version " GIT_VERSION); return GIT_VERSION; }).hide();

server_.on("/", HTTP_ANY, [=]() {
log("got req " + server_.uri() + " -> " + server_.hostHeader());
Expand Down

0 comments on commit b265a02

Please sign in to comment.