Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Selfhosted
  3. How can I host a small api/database accessable from a phone app as cheap/easily as possible?

How can I host a small api/database accessable from a phone app as cheap/easily as possible?

Scheduled Pinned Locked Moved Selfhosted
selfhosted
35 Posts 27 Posters 140 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V [email protected]

    So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

    I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

    What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

    O This user is from outside of this forum
    O This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #24

    Maybe use a filesystem and syncthing this way? https://github.com/39aldo39/DecSync

    Or you could use the free tier of some PaaS like
    https://render.com/docs/free if you prefer a traditional approach

    1 Reply Last reply
    0
    • V [email protected]

      So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

      I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

      What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

      ? Offline
      ? Offline
      Guest
      wrote on last edited by
      #25

      I’m using a free web host plan from freehostia (chocolate plan), an SQLite database and a single php file from the github repo below to provide me api access to my database tables. I previously used the web hosts MySQL database.

      Create some QR codes or NFC tags for specific medication/seizure events to make logging easy. For visibility you can create some reports and you’ve got yourself a solution.

      I use this setup to manage and log my backup tape rotations at work.

      https://github.com/mevdschee/php-crud-api

      1 Reply Last reply
      0
      • V [email protected]

        I didn't know they had free tiers... I'll look into it

        P This user is from outside of this forum
        P This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #26

        I've read very bad experiences about Oracle free tier VPS, like VPS disappeared for good with all the data.

        1 Reply Last reply
        0
        • sxan@midwest.socialS [email protected]

          Do you need a web app, or would a mobile app do? There are a number of medication trackers and one specifically for tracking stuff like this called Track & Graph. The DB export is a SQLite DB, which can be SyncThing'ed to a computer and worked with with whatever rolls you like.

          N This user is from outside of this forum
          N This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #27

          This is what I was thinking.

          Syncthing will be the quickest to set up.

          There's a potential for collisions but that would likely be manageable.

          1 Reply Last reply
          0
          • V [email protected]

            So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

            I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

            What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

            E This user is from outside of this forum
            E This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #28

            You can get a VPS on Vultr for $5 a month that’ll be plenty for your use case. For security look into mTLS. Web servers like Caddy support it pretty easy. You put a certificate on you and your wife’s phones and only you will be able to connect to your endpoint.

            1 Reply Last reply
            0
            • undulyunruly@lemmy.worldU [email protected]

              This is c/selfhosted

              vk6flab@lemmy.radioV This user is from outside of this forum
              vk6flab@lemmy.radioV This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #29

              The boundary of where to host what, is not fixed. You cannot host the internet at home. Where people sit on the spectrum varies depending on skill, resources and need.

              I highlighted several options that provide a solution for someone with limited skills and resources.

              You could host a CALDAV server or a next cloud at home and use the suggestions I provided, or you could use those hosted by someone else.

              My answer was to provide ideas, not a how-to guide, answering, in my opinion, exactly what OP was looking for.

              That it doesn't match your idea about solving the problem tells you that there are many ways to solve software problems. My suggestions had a low barrier to entry.

              What's your recommendation for OP?

              1 Reply Last reply
              0
              • V [email protected]

                So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

                I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

                What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

                G This user is from outside of this forum
                G This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #30

                I'm not sure of the availability guarantees, but Oracle and other cloud services have free tiers for low CPU/RAM/storage needs. If the availability guarantees are there, this could be an option. It works fine for FoundryVTT and hasn't cost me anything for the last couple years, and I don't imagine your projected needs would outstrip Foundry's.

                1 Reply Last reply
                0
                • V [email protected]

                  So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

                  I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

                  What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

                  S This user is from outside of this forum
                  S This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #31

                  You can drploy a Cloudflare worker that exposes an APi endpoint with an SQLite DB completely for free and without doing any maintenance. I don’t think the DB is encrypted , so it wouldn’t be my first choice if privacy is a concern. There’s a bit of a learning curve with all the UI bloat but once you figured it out it’s a very hassle free solution.

                  1 Reply Last reply
                  0
                  • V [email protected]

                    So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

                    I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

                    What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

                    ? Offline
                    ? Offline
                    Guest
                    wrote on last edited by
                    #32

                    Something like DigitalOcean or Hetzner will set you back a max of 10 euros a month. But that does require some technical know how with a terminal.

                    Would that suffice, or are you looking for something more ‘UI Based’ that will manage it for you?

                    1 Reply Last reply
                    0
                    • V [email protected]

                      So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

                      I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

                      What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

                      S This user is from outside of this forum
                      S This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #33

                      I've used airtable for these sorts of "personal use" use cases (eg: home built rocketry flight log) and I was even able to use their iPhone / Android app to enter data.

                      I haven't paid a cent for it yet as I'm well under their data caps.

                      1 Reply Last reply
                      0
                      • V [email protected]

                        So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

                        I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

                        What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

                        K This user is from outside of this forum
                        K This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #34

                        I have a very similar situation: a cat with a severe kidney disability, meds 5 times a day with at least 2h between each. We've been using a whiteboard but I am currently setting a smarter solution. My WIP setup is a raspberry pi with a static IP on my local network and a FastAPI app. This way I can also do a household to-do lists (did anybody watered plants recently?) and add connection to local smart lights (effects if meds could not be given with 2h interval before our usual go-to-bed time), etc.

                        It would only work for us since it is a household only solution. Our cats do not travel anywhere and I do not currently need to check for these todos when not at home. It may be different for you. Good luck OP, hope you will find something that suits you.

                        1 Reply Last reply
                        0
                        • ? Guest

                          Why not Home Assistant?
                          You can log seizures via buttons on the UI (web or mobile app), or via an NFC tag, have counters and stats.
                          Counters can also be used for medication tracking. More advanced solution exist via custom integrations, e.g this.

                          plutoniumacid@lemmy.worldP This user is from outside of this forum
                          plutoniumacid@lemmy.worldP This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #35

                          Wow, that does seem really useful! So clever to use Home Assistant, and nfc tags. Plus, it's plain csv when you need the data.

                          1 Reply Last reply
                          0
                          • System shared this topic on
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups