TinyWebDB and acces to it from PC, running vb.net program

353 views
Skip to first unread message
Assigned to ewpa...@gmail.com by chrisw...@gmail.com

Sten Jensby

unread,
Jul 23, 2018, 5:43:16 AM7/23/18
to MIT App Inventor Forum
Is it possible to access the same data from 

TinyWebDB

if i can connect to it from a windows app, made in visiual Studio 2008 ( VB .net) ?

Would like to share the same data from my app and on my PC.


Chris Ward

unread,
Jul 23, 2018, 6:34:17 AM7/23/18
to MIT App Inventor Forum
Hi Sten

It should be possible, on your own Server.

Sten Jensby

unread,
Jul 23, 2018, 6:41:25 AM7/23/18
to MIT App Inventor Forum
As i understands it. It is for andriod to android to access the database. Not so that i can access it with a Windows app

Chris Ward

unread,
Jul 23, 2018, 7:42:56 AM7/23/18
to MIT App Inventor Forum
Hi Sten

I do not know the format of the TinyWebDB file, but I imagine it is either xml (like TinyDB) or one of the SQL type databases - or similar. Whatever the file type, it should be platform independent, but even if it isn't, the only thing that would really prevent access via a Windows PC based app: encryption.

I'll ask Evan Patton to clarify. He is more than extremely busy so it might take a while.

You could of course set-up a test on your own server, download the TinyWebDB file and examine it.....

Peter Mathijssen

unread,
Jul 23, 2018, 9:01:28 AM7/23/18
to MIT App Inventor Forum
Hi Sten,

I don't know if the data is really secret or not. There is a really easy way to use the TinyWebDB component from within App Inventor without setting up your own server. 


Data is stored in a textfile on your own webhost. Accessing the same file from within your Windows app should be really easy, the data is stored in a JSON type format. 

I tried it myself and setting it up is really easy. 

Peter

Juan Antonio

unread,
Jul 23, 2018, 9:32:18 AM7/23/18
to MIT App Inventor Forum

Evan Patton

unread,
Jul 25, 2018, 12:51:53 AM7/25/18
to MIT App Inventor Forum
TinyWebDB is a key-vslue store implemented over HTTP. The endpoint that is the on you want for your VB.net app would be /getvalue. To retrieve a value, you need to POST an application/x-www-form-urlencoded HTTP message containing the string "tag=tagname" with tagname being replaced with the tag you are interested in retrieving. The response from the server will be a JSON array of the form ["VALUE", tagname, tagvalue] where tagname is the tag you requested in the body of the HTTP POST and tagvalue is the value of the tag as a JSON-encoded string. You will need to parse the value to get it into a useful form inside of VB.net.

Regards,
Evan

Abraham Getzler

unread,
Jul 25, 2018, 11:43:03 AM7/25/18
to MIT App Inventor Forum

Jbela

unread,
Jul 25, 2019, 3:58:00 PM7/25/19
to MIT App Inventor Forum
Hi Evan,
Hi everybody,

Is there a way retrieve a tinywebdb value In Javascript with fetch command?
Could anyone tell me whats wrong in my code ?
Thanks in advance.
Regards,
Jbela 
index.html
Reply all
Reply to author
Forward
0 new messages