Code Monkey home page Code Monkey logo

beertap's Introduction

Description

Inspired by @TheBatTaps twitter feed, this app reads a twitter feed for specially formatted messages describing beers on tap at a pub, turning them into a list of what's currently on tap. It also helps with maintaining one of these lists if you're a pub manager/worker.

Download

A fairly up-to-date build will be available on phonegap build.

I don't have any developer accounts on Google Play, Apple etc, so only debug builds are available. There is no IOS build at all.

The only device I've tested on so far is a Samsung Galaxy S2, Android 4.0.3, so your mileage may vary.

Licence

MIT Licence, see LICENCE.txt

For following a pub's twitter feed

At the moment you don't need to authorise with twitter just to view a pub's feed. Just click the "Follow" button and add the pubs your interested in.

However, with the twitter API v1 being deprecated, you may need to authenticate the app in the near future.

As a tool for bar staff

If you go to the settings page and authenticate with a twitter account, then add that same account as somebody to follow, the app will show a different page allowing you to add, change or remove beers and get the tweet format correct automatically.

Authentication

There are two authentication methods, "Browser" and "PIN". Browser should be considered the default for authentication on a real device, and PIN is only there to make testing in a browser easier/possible. You are of course free to use this on a mobile device, but it's a bit of a hassle cutting and pasteing.

Plans/bugs

See the issues page for plans and known bugs.

Tweet format

You can still of course do the tweets by hand if they're in the correct format.

There's a demo feed here: @BeerTapDemo.

Tweets must follow this simple format:

OFF: Some beer
ON: Another brew

There must be a new line between commands.

Multiple OFF or ON commands per tweet is ok, but the order within a single tweet is important. For example, the following has the net effect of doing nothing - the second line cancels the first out:

ON: Malty Goodness
OFF: Malty Goodness

A single command is also ok. For example, these are also valid:

OFF: Different booze

or

ON: Tasty stuff

The app collects these together in chronological order and cancels out any previous ONs with an OFF so you end up with a list of current beers on tap.

For example, if these tweets were collected:

ON: Holy Hops
---
OFF: Malty Goodness
ON: Worts And All
---
ON: Magic Bevvy
---
OFF: Holy Hops
ON: Great Grog

You'd end up with this list:

  • Worts And All
  • Magic Bevvy
  • Great Grog

beertap's People

Contributors

coolhandmook avatar

Watchers

 avatar

beertap's Issues

Geolocation to find beers nearby

Geolocation can be coded into a tweet, so it would be possible to add the location of the pub to each tweet, and then allow users to see beers on now nearby.

Deal with twitter errors

Errors during ajax requests for timelines etc are just ignored, deal with them.

E.g. I just got this back from twitter but the app just displays "Error fetching data" to user.

{"request":"\/1\/statuses\/user_timeline.json?screen_name=daveappendix&trim_user=true&include_rts=false&count=100","error":"Rate limit exceeded. Clients may not make more than 150 requests per hour."}

However, once api v1 gets dropped this particular error is unlikely as only authenticated requests will work, and it becomes x requests per authenticated user.

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.