Skip to content

Commit

Permalink
StandAlone version of sending events to an external server
Browse files Browse the repository at this point in the history
Usage: php -f event_sender.php <ring> <remote_server_url>
Example: event_sender 1 "http://external.server.ip.address:port/my_event/path"

Just a set of cut&paste of everything needed to retrieve events related to given ring and
send it to an external server to be parsed

program flow
1- check arguments
2- retrieve sessionID from ring number
3- connect to server. wait to get first "init" event on selected ring ( tablet inizialization )
4- get initial EventID for 'init' on evaluated sessionID
5- retrieve new events. update last received EventID from received data
6- re-send event information to provided url
7- loop over 5,6,7 until user closes program (Ctrl-C)

Need some cleanups, but works
  • Loading branch information
jonsito committed Sep 18, 2021
1 parent d7662ac commit 3d06379
Show file tree
Hide file tree
Showing 2 changed files with 1,041 additions and 1 deletion.
1 change: 0 additions & 1 deletion agility/server/database/classes/DBConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

require_once (__DIR__."/../../auth/Config.php");
/**
* DB connection handler
* This class should only be used from DBConnection objects
Expand Down
Loading

0 comments on commit 3d06379

Please sign in to comment.