Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drylikov/remindme
Remindme - is a simple application written in Erlang which will remind you anything you want.
https://github.com/drylikov/remindme
app concurency erlang event linux otp server supervisor
Last synced: 24 days ago
JSON representation
Remindme - is a simple application written in Erlang which will remind you anything you want.
- Host: GitHub
- URL: https://github.com/drylikov/remindme
- Owner: drylikov
- License: mit
- Created: 2024-10-20T21:07:22.000Z (26 days ago)
- Default Branch: drylikov
- Last Pushed: 2024-10-20T21:11:43.000Z (26 days ago)
- Last Synced: 2024-10-21T01:42:57.287Z (26 days ago)
- Topics: app, concurency, erlang, event, linux, otp, server, supervisor
- Language: Erlang
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**Remindme** - is a simple application written in Erlang which will remind you anything you want. Just run it!
### Build
To run application just build:```
➜ erl -make
➜ erl -pa ebin/
➜ erl
```### Usage
```erlang
%% Run
1> remindme_server:start().
<0.39.0>%% Sublsicrbe
2> remindme_server:subscribe(self()).
{ok,#Ref<0.0.2.39>}%% Deadline datetime
3> DateTime = {{2017,9,17},{20,0,0}}.
{{2017,9,17},{20,0,0}}%% Add event
4> remindme_server:add_event("Sup", "test", DateTime).
ok%% Listen
5> remindme_server:listen(5).
[]%% Cancel event
6> remindme_server:cancel("Sup").
ok%% Add new event
7> remindme_server:add_event("Sup sup", "test", DateTime).
ok8> remindme_server:listen(2000).
[{done, "Sup sup", "test"}]
```### Thanks
Thanks for Fred Hebert for great book.