Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename application to erltricity

  • Loading branch information...
commit fff82f230d14c7d2dab9daf3671924dcf84f50b3 1 parent ffda7d0
@wardbekker authored
View
3  .gitignore
@@ -2,4 +2,5 @@
*.beam
config/database.config
.DS_Store
-
+deps
+ebin
View
6 README.md
@@ -6,7 +6,7 @@ Developer: Ward Bekker <ward@equanimity.nl>
Description
----------
-An Erlang Client library for the [ThinkGear Socket Protocol](http://developer.neurosky.com/docs/lib/exe/fetch.php?media=app_notes:thinkgear_socket_protocol.pdf) from [NeuroSky](http://neurosky.com/).
+An Erlang/OTP Client Application for the [ThinkGear Socket Protocol](http://developer.neurosky.com/docs/lib/exe/fetch.php?media=app_notes:thinkgear_socket_protocol.pdf) from [NeuroSky](http://neurosky.com/).
###You'll need one of [these](http://store.neurosky.com/products/mindwave-1):
@@ -21,7 +21,7 @@ An Erlang Client library for the [ThinkGear Socket Protocol](http://developer.ne
###Usage
-Create a new MySQL database eg. `mindwave` and run the table creation statements from `table.sql`
+Create a new MySQL database eg. `erltricity` and run the table creation statements from `table.sql`
Copy the database.config example file and adapt it to your MySQL Server needs:
@@ -35,7 +35,7 @@ Now is a good time to turn on your Mindwave headset.
Inside Erlang shell:
-`application:start(mindwave).`
+`application:start(erltricity).`
And point your browser to [http://localhost:8000/chart](http://localhost:8000/chart) to see the recorded EGG signals. Manual refreshing is required in this version.
View
4 makefile
@@ -6,11 +6,11 @@ build-plt:
-pa deps/mysql/ebin \
-pa deps/erlydtl/ebin \
-pa deps/parse_trans/ebin \
- --output_plt mindwave_dialyzer.plt \
+ --output_plt erltricity_dialyzer.plt \
--apps kernel crypto stdlib sasl inets tools xmerl erts
dialyzer: compile
- dialyzer --plt mindwave_dialyzer.plt \
+ dialyzer --plt erltricity_dialyzer.plt \
--src src \
-pa deps/webmachine/ebin \
-pa deps/mysql/ebin \
View
2  src/connection_ser.erl
@@ -5,7 +5,7 @@
%% @end
-module(connection_ser).
-behaviour(gen_server).
--include("mindwave.hrl").
+-include("erltricity.hrl").
-define(SERVER, ?MODULE).
-define(CONNECTOR_HOSTNAME, "127.0.0.1").
View
4 src/database_ser.erl
@@ -4,7 +4,7 @@
%% @end
-module(database_ser).
-behaviour(gen_server).
--include("mindwave.hrl").
+-include("erltricity.hrl").
-define(SERVER, ?MODULE).
-define(POOL_ID, 1).
@@ -60,7 +60,7 @@ init(Config) ->
Host = proplists:get_value(mysql_host, Config, "localhost"),
User = proplists:get_value(mysql_user, Config, "root"),
Password = proplists:get_value(mysql_password, Config, ""),
- Database = proplists:get_value(mysql_database, Config, "mindwave"),
+ Database = proplists:get_value(mysql_database, Config, "erltricity"),
% open first connection
mysql:start_link(
View
2  src/entry_resource.erl
@@ -15,7 +15,7 @@
%% ------------------------------------------------------------------
-include_lib("webmachine/include/webmachine.hrl").
--include("mindwave.hrl").
+-include("erltricity.hrl").
%% ------------------------------------------------------------------
%% API Function Definitions
View
4 src/mindwave.app.src → src/erltricity.app.src
@@ -1,4 +1,4 @@
-{application, mindwave,
+{application, erltricity,
[
{description, ""},
{vsn, "1"},
@@ -7,6 +7,6 @@
kernel,
stdlib
]},
- {mod, { mindwave_app, []}},
+ {mod, { erltricity_app, []}},
{env, []}
]}.
View
0  src/mindwave.hrl → src/erltricity.hrl
File renamed without changes
View
4 src/mindwave_app.erl → src/erltricity_app.erl
@@ -2,7 +2,7 @@
%% @doc
%% Mindwave OTP app
%% @end
--module(mindwave_app).
+-module(erltricity_app).
-behaviour(application).
%% ------------------------------------------------------------------
@@ -20,7 +20,7 @@ start(_StartType, _StartArgs) ->
application:start(inets),
application:start(mochiweb),
application:start(webmachine),
- mindwave_sup:start_link().
+ erltricity_sup:start_link().
stop(_State) ->
ok.
View
2  src/mindwave_sup.erl → src/erltricity_sup.erl
@@ -2,7 +2,7 @@
%% @doc
%% application supervisor
%% @end
--module(mindwave_sup).
+-module(erltricity_sup).
-behaviour(supervisor).
%% Helper macro for declaring children of supervisor
-define(CHILD(I, Type, Args), {I, {I, start_link, [Args]}, permanent, 5000, Type, [I]}).
View
2  src/records.erl
@@ -4,6 +4,6 @@
%% @end
-module(records).
-compile({parse_transform, exprecs}).
--include("mindwave.hrl").
+-include("erltricity.hrl").
-export_records([blink, poorsignal, esense, event]).
Please sign in to comment.
Something went wrong with that request. Please try again.