GithubHelp home page GithubHelp logo

line-dementiaalarm's Introduction

Dementia Alarm Chatbot

A new way to connect to dementia people. Want to remind patient something? Start with LINE.

Your voice message in LINE can be directly broadcasted to the speaker, which can be heard by patient easily. It comes with alarm feature, so your voice message will be automatically broadcasted to patient, at the right time. Note that, the alarm is customizable voice message... Now that is revolutionary!

Please send feedback to us, so we can keep better our customer experience, deliver better service!

only software part of development is completed, the hardware part is still a work in progress - device to receive LINE voice message

it is designed to work on smartphones only, certain features will not work on LINE desktop app



Using Chatbot

Scan the QRCode below or search with LINE ID to use it.

Dementia Alarm Chatbot
https://liff.line.me/1645278921-kWRPP32q/?accountId=843ffueb



User Interface

  • menu

  • floating button




  • alarm info after recording



Terminology

Alarm Watcher Alarm Deleter Task Manager



Tutorials

there are many โ–บ buttons below, press them to watch tutorial video

Selecting language:

Procedures
1. type in "lang"
2. navigate floating button
how to...
select language

Setting up voice alarm:

Procedures
1. record voice message to start
2. pick a datetime for your voice alarm
3. received details about the alarm you just set
how to...
record

View info about recorded alarms:

just after recording
Procedures
navigate floating button
how to...
view

with AlarmWatcher
Procedures
navigate floating button
how to...
view all

how to...
view single

Reconfiguring recorded alarms:

Procedures
1. navigate floating button
2.
  • press "Edit" to reassign timer for the voice alarm
  • press "View" to listen to recorded voice alarm
  • how to...
    reconfigure

    There's two ways to delete an alarm

    just after recording
    Procedures
    press "Cancel" just after recording voice alarm
  • delete only that particular voice message you just recorded
  • how to...
    cancel

    with AlarmDeleter
    Procedures
    press "Delete Alarms" icon on Richmenu
  • delete any alarms of your choice
  • delete all alarms
  • how to...
    delete

    how to...
    exit




    Project Structure:

    Serverless Backend

    I've selected Firebase as the backend for 5 reasons:

    1. almost zero-downtime backend server (99.99% uptime)
    2. easier to set up and therefore great for prototyping
    3. friendly NoSQL, document-oriented database
    4. manageable cloud functions
    5. using AWS is a bit overkill, since my project userbase is currently very small

    Firestore Database

    Firebase offers a NoSQL, document-oriented database in Cloud Firestore. Unlike a SQL database, there are no tables or rows. Instead, you store data in documents, which are organized into collections. Allowed datatypes: string, number, boolean, map, array, null, timestamp, geopoint, reference.

    Their database structure enables me to store data without having to worry about datatypes constrain and resort to converting, which allows easier data-writing and data-retrieval. A huge plus.

    Firebase Cloud Functions

    The biggest reason to use Firebase comes down to Google cloud functions. It is easier for developers to get started and automatically scale their applications. Unlike in the case of AWS Lambda, the number of steps required to deploy the functions is less, and the platform also installs the dependencies automatically taking the load out of developers. Comes packaged with an HTTP endpoint which can be used as a trigger Integration with Google Cloud big data services allows use cases like real-time stream processing and other big data use cases without much operational overhead.

    Firebase empowers an app with userbase over 200k

    Integrating LINE and Firebase API

    I used LINE api to generate message in a meaningful layout, making each interaction steps intuitive

    • Designed Line Chatbot user-interface and with the following message formats:

    Debugging

    For debugging, I prefer to emulate cloud functions locally, since the error logging is much more in a complete-piece, rather than broken into separate lines in Cloud Logger.

    Unfortunately, I did not write any test that catch bugs earlier. Rather than finding out the problem while trying out the LINE chatbot myself, I could have automate the test to Google Cloud Platform, and allow them to throw me error, so the bugs can be found earlier, avoid accumulating to a huge problem where multiple bugs exist.

    line-dementiaalarm's People

    Watchers

    Jonas Ng avatar

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google โค๏ธ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.