Skip to content

Commit

Permalink
CMake copies python push script into build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
fyquah committed Jun 6, 2015
1 parent 10655c7 commit d1171a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -7,4 +7,5 @@ target_link_libraries( json chilitags_static)
add_executable( live live.cpp rectangle.cpp FiducialMap.cpp)
target_link_libraries( live ${OpenCV_LIBS} )
target_link_libraries( live chilitags_static)
file(COPY push.py DESTINATION ./)
set_property(TARGET live PROPERTY CXX_STANDARD 11)
6 changes: 5 additions & 1 deletion push.py
Expand Up @@ -35,8 +35,12 @@
# Remove the file
subprocess.call(["rm", sys.argv[1]])

# Note : the password and username simply changes from time to time
# The client password and username was hardcoded to simplify task, right way to
# do would be to make a proper HTTP request.

# Connect and transfer data to Meteor
mongo_url = 'mongodb://client-9dfb4dde:e62f03e2-90ae-3bcb-7ca9-6ecbf52519d9@production-db-c2.meteor.io:27017/fishotron_meteor_com'
mongo_url = 'mongodb://client-903649ab:5a67abcb-0ff9-e131-58e3-130b03bd04cc@production-db-c2.meteor.io:27017/fishotron_meteor_com'
client = MongoClient(mongo_url)
db = client.fishotron_meteor_com
db.fish.insert_one(payload)

0 comments on commit d1171a5

Please sign in to comment.