Code Monkey home page Code Monkey logo

zwerflogger's Introduction

Zwerflogger

Ideas and concept by: Kas C, Pieter1024 and Chris van Marle

Requirements

  • phpqrcode
  • php5-sqlite

Installation

  • git clone <repo location>
  • Edit config.sample.php and save as config.php
  • Make sure to set a session_name and hide_secret
  • Create the database, e.g. sqlite3 data/zwerfdata.db < zwerfdata.schema
  • Insert the required teams using sqlite3 data/zwerfdata.db:
    • Use cat teams.txt | ./teams2sql.py | sqlite3 data/zwerfdata.db, or
    • INSERT INTO teams VALUES(lower(hex(randomblob(16))), 'Team Unicorn');
    • Field 1, the id, must be a 32 characters hex string
  • Insert the beacons using sqlite3 data/zwerfdata.db:
    • Use cat beacons.txt | ./beacons2sql.py | sqlite3 data/zwerfdata.db, or
    • INSERT INTO beacons VALUES(lower(hex(randomblob(16))), 'First', 1);
    • Field 1, the id, must be a 32 characters hex string
    • Field 2, the name, a unique name for the beacon. Will be visible to the teams (website, QR-label)
    • Field 3, the score, the score for this beacon
  • Make the database writeable for your HTTP-server, e.g.:
    • chown -R :www-data data
    • chmod -R g+w data
  • Make the web directory accessible in your HTTP-server
  • Visit the qr.php page (e.g. https://domain.com/qr.php?hide=SECRET) and print the labels

zwerflogger's People

Contributors

qistoph avatar gerardklomp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.