Skip to content

It is a system aiming to amuse and entertain people. Inspired by the old jukebox, a machine that reproduces music to insert coins, this system enables the choice of music that will be played on the environment.

License

Notifications You must be signed in to change notification settings

diogocezar/dctb-play-this

Repository files navigation

#Play This#

It is a system aiming to amuse and entertain people. Inspired by the old jukebox, a machine that reproduces music to insert coins, this system enables the choice of music that will be played on the environment.

##Technologies##

The system was developed based at:

  • PHP 5.x
  • JavaScript
  • JQuery

##Usage##

You will need config your social tokens first at file Config/config.php

After that, you will need to put your mp3 songs at Musics folder

And now you are able to start the system accessing your index.php file.

##How to ask an Music?##

The system reconize, until now, the same name of music, so you need to tweet

@youtweetaccount [artist name] - [music name]

or

@youtweetaccount #play[music number]

To ask for a music in the instagram, just, follow:

#somehashtag [artist name] - [music name]

or

#somehashtag #play[music number]

#How the system works?#

The system is always looking for a specific folder, and indexes all the songs are there (Musics). These are the songs that can be chosen.

When starting the system, we take a look at the social networks, and check if there are any request. If so, we recorded this request in a queue in the order that was requested.

While the list is populated, we play.

At the end of this song, the next in line (if any) will be performed.

If the list of requests finish, random songs will be performed until a new entry is identified.

#System Files#

The system does not use any database until now, just store the information in some files:

  • Data/in_last_id.txt is the control of the last id checked in instagram, cleaning this, the system will fill the row with all instagrams requests from the begining of requests;

  • Data/row.txt is the row of musics that will be played;

  • Data/tw_last_id.txt is the control of the last id checked in tweets, cleaning this, the system will fill the row with all tweets requests from the begining of requests;

  • Data/unidentified.txt stores all unidentifieds requests;

  • Logs/errors.txt store any system error;

  • Logs/in_requests.txt store all instragram requests;

  • Logs/tw_requests.txt store all twiter requests;

#Showing the list of musics#

The system can show the number indexer of all musics in the root file list.php this list can show the links to tweet or insta an music request;

About

It is a system aiming to amuse and entertain people. Inspired by the old jukebox, a machine that reproduces music to insert coins, this system enables the choice of music that will be played on the environment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published