SRL Archive - Research & Development Lounge

On-The-Go Notifications


Justin

2012-01-06 04:18:22

Hey all.

I have been working on a little notification system that enables the end-user, who has a iPhone to set up a custom notification system.

What this means is that you will be able to intergrade your script to the API that I have set up.

Here are some screenshots. I am currently using a "Dev Script" for this demo.


Intergraded to Flights Naturez Lite script:

Android (Thanks Shuttleu)

***In the picture, you will see "?username='+Notifo", That is the Notifo username, NOT your runescape username.***

If I release this, I will get a SSRL+ member to view the API and source code so they are able to verify that it is safe and clean.

The reason why I have blurred out some of the domain is because I don't want un-needed traffic to the server at the moment.

Video might be coming soon.


How this works..

Script -> www.srljustin.com -> Notifo -> Apple -> iPhone

Most of the work is done at my server, 'www.srljustin.com' and Notifo's server. This was to keep the 'integration' lightweight and to make it as easy as possible for the end-user.

It might look like a long way to travel but it takes ~2-3 seconds to receive the notification.

Every 'report' has a unique 15 character count, reports are automatically stored on my domain for 30 minutes then a cron job cleans it up.

I am currently working on a 'talk back' feature that will enable the end-user to send a custom command to my server that simba will read and do the command, for example: 'shutdown' would terminate the script. This will be set up by the end-user, in the script there will be a String they will have to fill out with a 'secret key' this will give them access to Simba remotely.

The main reason why I started this little project was because I needed a way to be able to see how my bot was going without needing to TeamView into my computer. Also if you are running more then 1 bot with TeamViewer it can be hard to select what bot you want to view, and then when you do get the bot you want to view it can be 'laggy'.

My domain is hosted on my VPS, not a shared host.

No RuneScape data is sent to my server or anywhere.

Please leave your feedback!

Any questions feel free to post here/PM me.


[J]ustin.

Shuttleu

2012-01-06 04:25:01

interesting…

any chance for a android app?

~shut

Justin

2012-01-06 04:26:25

From: Shuttleu
interesting…

any chance for a android app?

~shut


The Android app is currently in beta-testing. I don't have an android phone so I am unable to see if it currently works..

Shuttleu

2012-01-06 04:27:10

i will be happy to test if you let me be a beta tester

~shut

ShawnjohnSJ

2012-01-06 04:27:37

From: [J]ustin
The Android app is currently in beta-testing. I don't have an android phone so I am unable to see if it currently works..


There's an android emulator online made by Google. You can test the android app on there. Its pretty much there to test apps with.

momotron

2012-01-06 04:29:52

Wow looks nifty, how much work did it take for you to get this set up and running?

Justin

2012-01-06 04:43:14

From: momotron
Wow looks nifty, how much work did it take for you to get this set up and running?


I've been working on it for around 3 hours.

Installing the Android Emulator now to test

ShawnjohnSJ

2012-01-06 04:50:45

From: [J]ustin
I've been working on it for around 3 hours.

Installing the Android Emulator now to test


If it works with SMS, it might not work. Unless you do something like this:

http://learnandroid.blogspot.com/2008/01/sms-emulation-on-android.html

Justin

2012-01-06 04:54:23

From: ShawnjohnSJ
If it works with SMS, it might not work. Unless you do something like this:

http://learnandroid.blogspot.com/2008/01/sms-emulation-on-android.html


This doesn't use SMS, it uses Wifi/3G data connections.

ShawnjohnSJ

2012-01-06 05:12:32

From: [J]ustin
This doesn't use SMS, it uses Wifi/3G data connections.


Alright, I'm not sure if the emulator will work or not. Worth a try though.

P1nky

2012-01-06 05:19:21

Oh goodness… Can't wait to have this baby on my Iphone!

Justin

2012-01-06 05:21:58

From: P1nky
Oh goodness… Can't wait to have this baby on my Iphone!


I know, going to be so good to be able to get reports on-the-go.

Also


Anyone offering to test this service out for me? PM me on forums please. (Need someone with a Andriod phone)

ShawnjohnSJ

2012-01-06 05:34:58

From: [J]ustin
I know, going to be so good to be able to get reports on-the-go.

Also


Anyone offering to test this service out for me? PM me on forums please. (Need someone with a Andriod phone)


You can emulate the SD card

http://blog.jayway.com/2009/04/22/working-with-sd-cards-in-the-android-emulator/

Justin

2012-01-06 05:54:14

From: ShawnjohnSJ
You can emulate the SD card

http://blog.jayway.com/2009/04/22/working-with-sd-cards-in-the-android-emulator/



I'll need someone with a Android phone :S

ShawnjohnSJ

2012-01-06 05:55:38

Hmm.. if I had a android phone I'd help you out, sorry. Good luck on your project though, its a good idea.

Shuttleu

2012-01-06 05:56:54

PM'd you

~shut

Justin

2012-01-06 06:55:41

Android OS has been tested and working.

Thanks to Shuttleu for testing and giving me images.

Swatarianess

2012-01-06 07:13:48

Im gonna make my own :D like the idea maybe for Dycing ;) becuase you can make "bots" which sounds awesome and it even has a dice feature already GoodLuck with this should go really far imo! with Notifo you can also receive info from the ipod(and/or device used) like to make the script start and/or stop? Anyways looks awesome ETA?

E1: If you need test i can do 1 got meh Ipod Touch 4.3.3(Jailbroken) here .

E2: https://api.notifo.com/docs/bots << Bot i'm talking about :P

offtopic:
200th Post ^^


~Bro433

Justin

2012-01-06 07:34:51

From: bro433
Im gonna make my own :D like the idea maybe for Dycing ;) becuase you can make "bots" which sounds awesome and it even has a dice feature already GoodLuck with this should go really far imo! with Notifo you can also receive info from the ipod(and/or device used) like to make the script start and/or stop? Anyways looks awesome ETA?

E1: If you need test i can do 1 got meh Ipod Touch 4.3.3(Jailbroken) here .

E2: https://api.notifo.com/docs/bots << Bot i'm talking about :P

offtopic:
200th Post ^^


~Bro433



I am working on a way for the end-user to talk back to simba, could be useful for when someone is talking to you. Just got to iron out some bugs that I have discovered.

Yeah I haven't looked that much into the bots that can be made.

I hope to have it fully done and released within 48 hours.

Swatarianess

2012-01-06 07:48:38

From: [J]ustin
I am working on a way for the end-user to talk back to simba, could be useful for when someone is talking to you. Just got to iron out some bugs that I have discovered.

Yeah I haven't looked that much into the bots that can be made.

I hope to have it fully done and released within 48 hours.


Thats fast :O I'm making my own too ^^ just need to read the API and stuff :/

https://api.notifo.com/docs/messages << This is the 2 way messaging doc also the bot has small coding which uses this

Justin

2012-01-06 07:58:31

From: bro433
Thats fast :O I'm making my own too ^^ just need to read the API and stuff :/

https://api.notifo.com/docs/messages << This is the 2 way messaging doc also the bot has small coding which uses this


That 2 way messaging between user->user. This won't really help me, but thanks for trying!
I have an idea on how I am going to do it.. Might release it without the talk-back feature and make that an update.

Edit: Just saw this - http://blog.notifo.com/notifo - Notifo will be shutting down 'soon'. I will find another service to use if and when they shutdown.

Swatarianess

2012-01-06 08:53:57

awww they are pretty good :/ oh well i guess i just have to go back to HTML/PHP etc coding and learn from there :(


From: http://blog.notifo.com/notifo


Some alternatives include:

- Boxcar for iPhone/iPad - http://boxcar.io/

- Prowl for iPhone/iPad - http://www.prowlapp.com/

- SMS with Twilio - http://twilio.com/

- Urban Airship - http://urbanairship.com/

- Xtify - http://xtify.com/


I'll try some of these ^^

Kyle Undefined

2012-01-06 09:06:53

Nice! Glad to see you got it working! Never heard of that app before, I still like Boxcar ;)

Justin

2012-01-06 09:35:18

From: Kyle Undefined
Nice! Glad to see you got it working! Never heard of that app before, I still like Boxcar ;)


I will probably move to BoxCar if and when this one shut-down.

Swatarianess

2012-01-06 16:01:42

From: [J]ustin
I will probably move to BoxCar if and when this one shut-down.


I've pm'd you the perfect "app" way better I guess IMO ^^

P1nky

2012-01-06 16:07:34

I'd like to test this out, could you please send me a PM of how I can get this all install and ready to go. :)

Swatarianess

2012-01-06 16:38:30

Agh nvm about pm just realised that the app needed times to notify 0.0 it'd only be good I you wanted it to tell you in a certain time I guess or w/e also didn't work for me :/ ohh well on to the next one…

Justin

2012-01-06 21:39:48

Okay I think I am ready to release. Who would like to beta-test this for me?

Gu3st...

2012-01-06 21:44:37

Very cool!

Brow

2012-02-24 23:39:00

Not much activity here for a while I see… this looks like a very good idea! The idea of on the go reports is great, I wouldn't mind this at all… did you end up releasing this then Justin? If so how can I get this all ready to go on my iPhone? lol Thanks
-Brow

LordJashin

2012-02-26 21:55:07

This would be extremely useful. But if you have Google voice SMS is free I think still. Just get a free service that can send SMS from your computer. Then read the text on the page. If the text says 'TerminateScript' then your script terminates. I don't know how that works though. Like with HTTP client could you do that without interrupting the RS script. Multithreading it? Or use the SCAR minimizable web client?


Flight

2012-02-26 22:08:45

Really neat. I'd use it to notify me of random events. I'd like to see it for Android, I think most people have grown out of iPhone and moved on to Android anyways…

Camaro'

2012-02-26 22:31:01

From: Flight
Really neat. I'd use it to notify me of random events. I'd like to see it for Android, I think most people have grown out of iPhone and moved on to Android anyways…


I'd imagine that, especially on a forum like this one.

If you went to my school it would be a different story, tons of iPhone fanboys (and girls :) )

Justin

2012-02-27 01:58:50

Okay sorry for no update in awhile, been busy with work. Anyway I got an Android tablet so I will be able to test the Android out and make sure it is all working.

This WILL be released soon!

footballjds

2014-11-04 15:45:59

From: Justin
Okay sorry for no update in awhile, been busy with work. Anyway I got an Android tablet so I will be able to test the Android out and make sure it is all working.

This WILL be released soon!


How soon? :)

NKN

2014-11-04 17:35:40

From: footballjds
How soon? :)


2 years soon

Ashaman88

2014-11-04 17:38:19

From: NKN
2 years soon


You can't rush perfection.

Lipcot

2014-11-04 18:48:39

This would be real nice heh

The Mayor

2014-11-04 18:56:31

Justin and I actually done this earlier in the week

procedure sendPushNotification(title, priority, botName, reason: string);

e.g.:
sendPushNotification('Terminated', '0', players[currentPlayer].displayName, 'Unexpected Terminate');

Ian

2014-11-04 18:58:31

From: The Mayor
Justin and I actually done this earlier in the week

procedure sendPushNotification(title, priority, botName, reason: string);

e.g.:
sendPushNotification('Terminated', '0', players[currentPlayer].displayName, 'Unexpected Terminate');


Bot has terminated because Unexpected Terminate


Unexpected Terminate is annoying isn't it?

The Mayor

2014-11-04 19:02:09

From: BMWxi
Unexpected Terminate is annoying isn't it?


Just an example. You could chuck that specific message in addOnTerminate to catch those access violation errors etc

NKN

2014-11-04 19:12:17

From: The Mayor
Justin and I actually done this earlier in the week

procedure sendPushNotification(title, priority, botName, reason: string);

e.g.:
sendPushNotification('Terminated', '0', players[currentPlayer].displayName, 'Unexpected Terminate');


he made me buy this app, and he didnt tell me how to use it.

Justin

2014-11-04 19:26:03

From: NKN
he made me buy this app, and he didnt tell me how to use it.


Correct, I've been very busy, sorry I don't have time to spoon-feed you everything.

As for the project, I no longer have the files. If Mayor wants to, he can release his.

Clarity

2014-11-04 20:37:30

A great idea. Set this up in a few minutes. Here's a simple version, you can obviously add in a bunch of variables based on your scripts like Mayor did.

This is for iPhone, I assume everything is pretty much the same for Android.

1. Download Pushover from the App Store.
2. Register an application at https://pushover.net/apps/build (I called mine SRLClarity)
3. Get the app token and your user token, as well as your device ID (you get/create these when you download and use the app).
4. Use this code:


procedure notifyMyPhone(title, message: string);
const
TOKEN = '';
USER = '';
DEVICE = '';
var
c: integer;
begin
c := initializeHTTPClient(false);
postHTTPPage(c, 'http://api.pushover.net/1/messages.json', 'token=' + TOKEN + '&user=' + USER + '&device=' + DEVICE + '&title=' + title + '&message=' + message);
freeHTTPClient(c);
end;

begin
notifyMyPhone('Test Title','A test message.');
end.

Result:



NKN

2014-11-04 20:48:38

From: Justin
Correct, I've been very busy, sorry I don't have time to spoon-feed you everything.

As for the project, I no longer have the files. If Mayor wants to, he can release his.


How dare you be busy.

Goldfarm is life.

Lipcot

2014-11-05 04:18:20

From: Clarity
. .. .


Well this is useful :)