how to use TingoDB in stead of MongoDB with Deployd? - openwrt

We want to use deployd on our homemade device running OpenWRT.
As MongoDB would required too much memory, we want to use TingoDB in stead of MongoDB.
How to configure Deployd to do so?
Thanks a lot!

Related

iOS Swift and external SQL databases

I need to Query an online SQL database from an iPhone app. I have been researching and have not been able to find a way to use SQL to directly query my non-local online database from my iOS app.
Is there any way to do this?
Or do you need a web service, restful api using json?
If so, can you lead me in the right direction on creating a web service (or resources that handle that for you)?
I have be trying the same thing and I endet up doing it via a MySQL DataBase on a 1&1 web domain, to Query the DataBase I made a PHP program, using (like you said) JSON to be read by the app. I dont know if that is what you meant if not maybe specifie pls. XD

Can I use parse with on an existing app that already connected to mysql?

I'd like to connect a specific part of my mobile app to parse.com in order to save work on the backend. Is it possible?
Thank you
Yes, of course. You can connect to as many web services and databases you need to. You just need the code/sdk for each web service or database you want to interact with.

Hbase and Rails to develop a web application

I am having data in the Hbase. Now i need to develop a web application in rails using this data.
can anyone help me on this how to proceed.
Hbase is a column based DB like cassandra and mongo-db.
I guess to start with you can use rhino and bigRecord or stargate.
Rhino and stargate and maintained but you can get the idea of how to start on this.
Let me know if that helps.

Arduino & Rails integration

I have developed a web aplication for storing sensor data.
Now I am starting the Arduino side development.
I have an arduino wiht network capabilities, of sensors and a relay. I want to send the information to my Rais app and activate the relay througth the web app.
Im thinking in connecting directly the arduino to the rails database (now im using SQLite, i have to migrate to mySQL).
Whats the better way to do it?
Thank You!!!
I would think that it would be beter to use the arduino json-library to insert the data over the rails app.
That way you are independent of any changes on the DB end and keep all the benefits of the MVC framework.
You should consider using ajson, it makes it very
simple to parse your arduino data.
http://interactive-matter.eu/blog/2010/08/14/ajson-handle-json-with-arduino/
You could send sensor values through the internet via an Ethernet shield like the ENC28J60 with the EtherCard library. Then you could make an RESTful API on your Rails app (e.g. with Grape), and from the Arduino shield, send the info to this API using the EtherCard library that I suggest.
With this, you have the sensor values stored on your Rails app, and then you could do whatever you want with the info. You could make the inverse process (send an request from your Rails app to the Arduino shield) using the EtherCard library too.
Here you have an example to do the first part, the inverse one (from Rails to Arduino) is not more complex.

iOS Web Database

I need to populate a table in an iOS application with data from a Web database
I already have a MySQL database set up but reading about this it seems there must be an easier way for the iOS to interact with a web database
Any help or pointers would be appreciated,
Thanks
You should make an API interface.
Then use the API to communicate with the database. Using the database directly is a very bad thing to do.
If you are really desperate, consider using the MySQL C library. This article explains it in great detail:
http://www.karlkraft.com/index.php/2010/09/17/mysql-for-iphone-and-osx/
For my application, I chose to create a web service to act as an intermediary between my application and the database.
This layout has several advantages. Considering you have MySQL database you can try to create some php scripts (I chose php because the API to work with mysql is very very simple and as you said, you don't need very high security or performance).
You can use these scripts through HTTP requests (you can use NSURLConnection to do these).. These scripts connect to mysql , fetch the data you need to pass the result back to the application in an easier to use format (e.g. I use JSON).

Resources