← Back to team overview

dhis2-users team mailing list archive

Re: [Dhis2-devs] sms gateway for android

 

Just to add, attached is a "manual" for the Android app:




On Fri, Oct 25, 2013 at 2:15 PM, Lars Helge Øverland <larshelge@xxxxxxxxx>wrote:

> Hi,
>
> just wanted to highlight a nifty Android app which you can set up as a
> standalone SMS gateway for testing the SMS functionality in DHIS 2. Its
> made by Lars Roland - you can get it from google play<https://play.google.com/store/apps/details?id=org.dhis2.androidsms>or from here:
>
> http://www.dhis2.org/appstore
>
> The app basically looks for incoming SMS arriving at the Android phone,
> parses them to look for keywords and forwards these messages to your DHIS 2
> server using HTTP. You can configure a list of SMS commands that should be
> forwarded to DHIS 2.
>
> If you for example have created an SMS called 'Report' command within DHIS
> 2 under Mobile Configuration -> SMS Commands, and you configure the app to
> forward any SMS starting with 'Report' to DHIS 2, you can use this to test
> data entry by sending for example 'Report A1 B2 C3' to your mobile phone.
>
> If your Android phone has an IP address that is accessible to your DHIS 2
> server you can also use this Android App to send SMS messages from DHIS 2
> to users. The URL to configure into DHISv2 is shown on the bottom of the
> app screen when running the app. This URL is configured in Mobile
> Configuration -> SMS Service Configuration -> Add Gateway -> Generic HTTP
> Gateway inside DHIS 2.
>
> regards,
>
> Lars
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Knut Staring
Dept. of Informatics, University of Oslo
+4791880522
http://dhis2.org
Log in to http://apps.dhis2.org/dev/ with admin/district
Create a user sms/SMStest1 with user role "Data Entry Clerk" and assigned to Sierra Leone > Bo > Baoma > Baoma Station CHP
Very important: Add the full mobile number of ANOTHER phone (not your Android), including country code, e.g. like this 4791880522 (including country code but no +)
Go to Maintenance > Mobile Configuration > SMS commands. You will see that one dataset is already defined, Mortality:
http://apps.dhis2.org/dev/dhis-web-maintenance-mobile/editSMSCommand.action?selectedCommandID=1

Now on your Android phone, install the DHIS2 SMS Gateway and open it
URL: 			http://apps.dhis2.org/dev/sms/smsinput.action
DHIS2 username: admin
DHIS2 password: district
Commands:		mortality (not case sensitive)

Forward messages should be green
Click Save

Now send the following message from the OTHER mobile TO your Android:
Mortality a22 b33

You can check that it was received in two places:
http://apps.dhis2.org/dev/dhis-web-maintenance-mobile/showReceivingPage.action
And also in data entry (for September)

Follow ups

References