Read the statement by Michael Teeuw here.
Touch input examples for MM Module
-
@jcleary05 so, first you have to put MM on a system with a touch screen…
after than your module would create a small html ‘page’ with a normal html form in it,
and use the exact same techniques as any javascript driven page…you add am event Handler to the button on the form, and then use the document. xxx methods to extract the field data
push info to database… what database? in Mongodb adding a record looks like
db.collection(collection_name).insertOne(jsondata, function(err,result){ }) -
@jcleary05 For touch input, have a look at these:
https://github.com/werthdavid/MMM-Bring
https://github.com/lavolp3/MMM-Keyboard (not ready yet, but soon!)
https://github.com/lavolp3/MMM-NavigationBarAs you see I’m working extensively on a “touch MM” as a kitchen hub.
Regarding a database, I can’t help you
-
@sdetweil Thanks for getting back to me!
The database will most likely be based of mySQL using phpMyAdmin (The university provides this)
Im unsure how I would actually gain access to this database and submit to it using the current setup of modules. Could this potentially be done using node js?
-
@jcleary05 mysql, yes , see the node library https://www.npmjs.com/package/mysql, which gives you node methods to call to connect and access the database
-
@sdetweil
Thanks again for getting back to me!Do you believe it will be possible for me to submit an entry to a database using the nodehelper.js file?
I am currently trying to find an example but I am unsure of any which are available?
-
@jcleary05 sure… I use mongodb, and connect to it via the node helper
here is a web page that describes all the operations (connect, search/get/select,
update, -
@lavolp3 Sorry man just seeing your message now,
Thank you! this will be extremely helpful! -
@jcleary05 sorry, forgot to paste in the url
-
Just reviewing your modules, they look great! in particular I may have a use case for the keyboard, do you have an estimation when it will be ready to use?
-
@jcleary05 also see https://forum.magicmirror.builders/topic/8734/mmm-mysqlquery-module-just-released
for connection and query…