nerdlesstosay
Posts: 1
Joined: Wed Nov 11, 2015 9:54 am

Dump outputs of ArduPi to mySQL server

Wed Nov 25, 2015 8:49 am

Hello everyone,
I've been working on this ehealth project for quite sometime. The sensors i bought, are from Libelium. Here is the link for it. https://www.cooking-hacks.com/ehealth-s ... spberry-pi

They have provided a library for me called "ArduPi" which makes me program Raspberry Pi the same way we do for Arduino boards.
They have also written some libraries for their sensors, to integrate with this ArduPi library and Raspberry Pi board. My basic work is to dump all the outputs of my health sensors to cloud(mySQL) and read it via a Admin panel, in a graphical manner.

I'm a newbie to raspberry pi boards, and its making me tough to figure out the process of taking values out of this ArduPi library to cloud. I can connect my Raspberry Pi to Internet using a Ethernet cable or Wifi Dongle, so it is accessible to internet. All i have to do is integrate my mySQL server with my ArduPi program, so i could dump all its output values to my server instantly.

Any kind of help is appreciated.

Below is the documentation page, where all sensors are integrated and ready to be displayed in a Serial Monitor.

https://www.cooking-hacks.com/documenta ... i-medical/

-rst-
Posts: 1316
Joined: Thu Nov 01, 2012 12:12 pm
Location: Dublin, Ireland

Re: Dump outputs of ArduPi to mySQL server

Wed Nov 25, 2015 2:40 pm

I would start by examining the the provided app (source code user-e-health-app.cpp) uses the library and writing a new app that reads the sensors dumping the output to console or file.

Then look up how to connect to a mySQL server over the network from C++ code and write a test app that dumps some data to the database.

Finally combine these two.

One option of course would be to write for example a Python wrapper around the ArduPI library - might make it easier to code the rest.

They seem to have some ready made stuff for WiFi https://www.cooking-hacks.com/documenta ... e-tutorial - the source code for the 'wifi' app might be of interest too.
http://raspberrycompote.blogspot.com/ - Low-level graphics and 'Coding Gold Dust'

Return to “C/C++”