Hyppää sisältöön
    • Suomeksi
    • På svenska
    • In English
  • Suomi
  • Svenska
  • English
  • Kirjaudu
Hakuohjeet
JavaScript is disabled for your browser. Some features of this site may not work without it.
Näytä viite 
  •   Ammattikorkeakoulut
  • Turun ammattikorkeakoulu
  • Opinnäytetyöt (Avoin kokoelma)
  • Näytä viite
  •   Ammattikorkeakoulut
  • Turun ammattikorkeakoulu
  • Opinnäytetyöt (Avoin kokoelma)
  • Näytä viite

Rajapinnan luominen Withings API:a käyttäen

Girs, Arttu (2020)

Avaa tiedosto
Arttu_Girs_Opinnäytetyö.pdf (671.3Kt)
Lataukset: 


Girs, Arttu
2020
All rights reserved. This publication is copyrighted. You may download, display and print it for Your own personal use. Commercial use is prohibited.
Näytä kaikki kuvailutiedot
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-2020060115914
Tiivistelmä
Opinnäytetyön tavoitteena oli kehittää Turun ammattikorkeakoulun uudelle Healt Tech Labille eli terveysteknologian laboratoriolle verkkosivun tyyppinen rajapinta, joka automaattisesti keräisi, päivittäisi ja esittäisi laboratorion Withings-merkkisillä laitteilla saadun datan. Työn toissijainen tavoite oli yleinen tutustuminen Withings laitteisiin ja niiden käyttöönotto.

Laboratorion Withings laitteet ovat BPM Core -verenpainemittari, Sleep -unimatto ja Thermo älylämpömittari. Withings on kehittänyt oman alustansa, sovelluksen nimeltään Healthmate, johon kerääntyy yhden käyttäjän kaikilla eri laitteilla saatu data. Healt Tech Labissa kuitenkin haluttiin oma rajapinta, joka keräisi kaiken datan yhteen paikkaan ilman, että se menisi Healthmaten kautta.

Työn toteutuksessa käytettiin enimmäkseen kolmea eri teknologiaa: Withings API:a, Node-Redia ja Reactia. API tarkoittaa sovellusohjelmointirajapintaa ja Withings API on luotu tarjoamaan kehittäjille pääsy eri käyttäjien keräämiin tietoihin Withings laitteilla, ja juuri siihen sitä käytettiin myös tässä opinnäytetyössä. Kun käyttäjän dataan on päästy käsiksi Withings API:n avulla, käytettiin Node-Red nimistä ohjelmointityökalua, jolla yhdistettiin Withings API ja luotu rajapinta. Node-Redin avulla siis voitiin lähettää saatu data toiselle ohjelmalle, joka taas viimeistelisi sen muotoilun ja tulostaisi sen rajapinnan näytölle.Lopuksi itse rajapinta ja ohjelmonti tehtiin Reactnimisellä ohjelmointikehikolla, jolla yksinkertaisesti otettiin yhteys Node-Redin lähettämään dataan ja tulostettiin se näytölle pienen muotoilun jälkeen.

Kaiken kaikkiaan opinnäytetyön tavoite, eli rajapinnan luominen onnistui hyvin. Se hoitaa perustehtävänsä hyvin, mutta se vaatii tällä hetkellä liikaa ei toivottua ylläpitotyötä. Siinä on myös vielä tilaa jatkokehitykselle ja yleiselle kehitykselle, mutta siitä huolimatta, siitä on varmasti hyötyä toimeksiantajalle.
 
The objective of this thesis was to develop an interface, resembling a website, for the Health Tech Lab of Turku University of Applied Sciences. The purpose of this interface would be to automatically gather, update and present data gathered with the lab’s Withings branded devices. The secondary purpose of this thesis was to more generally become familiar with these devices and initially deploy them.

The Withings devices in the laboratory are the BPM Core blood pressure monitor, the Sleep tracking mat and the smart thermometer. Withings has previously already developed their own platform, an app called Healthmate, which gathers all the data a single user has generated with all their Withings devices, but the Health Tech Lab wanted their own interface, which would collect all the data, but without going through Healthmate.

Three different technologies were used in the execution of this project: The Withings API, NodeRed and React. API stands for for application programming interface, and the Withings API was created to give developers access to certain data of different users and that was exactly what it was used for in this thesis. After access to the users data had been acquired with the help of Withings API, a programming tool called Node-Red was used to connect the API with the created interface. So in essence, Node-Red was used to send the acquired data to another program which would in turn properly format it and print it out to the screen of the interface. Finally, the interface itself was programmed using the React programming framework. React was used to simply connect to the data sent by Node-Red and after small adjustments, display it on the screen.

All in all, the objective of the thesis, which was to create the interface, was successful. The interface handles it’s basic task well, although it occassionally requires some unwanted maintenance. It also has some room for further development and some refining but regardless it should be of benefit to the client.
 
Kokoelmat
  • Opinnäytetyöt (Avoin kokoelma)
Ammattikorkeakoulujen opinnäytetyöt ja julkaisut
Yhteydenotto | Tietoa käyttöoikeuksista | Tietosuojailmoitus | Saavutettavuusseloste
 

Selaa kokoelmaa

NimekkeetTekijätJulkaisuajatKoulutusalatAsiasanatUusimmatKokoelmat

Henkilökunnalle

Ammattikorkeakoulujen opinnäytetyöt ja julkaisut
Yhteydenotto | Tietoa käyttöoikeuksista | Tietosuojailmoitus | Saavutettavuusseloste