@bobguehne the local mm web server starts at ~/MagicMirror
You cannot see local files outside this path
Make a link to that mount in your module folder, using the ln command
@bobguehne the local mm web server starts at ~/MagicMirror
You cannot see local files outside this path
Make a link to that mount in your module folder, using the ln command
@stampeder it MUST be desktop version… else u will run in serveronly mode and can access from another system
electron or chrome needs the graphical desktop environment to work
@bhepler that’s why I said minimze the mm UI. Back to the desktop, then all works… Then put mm UI back on screen by selecting it from the Task bar or alt tab
@richland007 open the developers console, either by
npm start dev
when you start the mirror
or ctrl-shift-i
when then mirror is running
then select the console tab
these tools send notifications from one module to another…
so you should see those messages in the console
you can also filter the messages by the name of the file so
put rfid in the filter field to see only messages sent from the rfid 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){ })
@stampeder the install script is bash… running is a different problem…
u will have to change the run-start.sh script to launch that browser
@richland007 said in Profile Switcher - RC522 RFID:
no ideas really… the node_helper code sends two different notices up to the module,
which forwards them on…
I don’t see any debug info in the module, so edit the MMM-RFID.js file
and change it like this
if (notification === "RFID_UID") {
Log.log(" UID received="+payload);
this.sendNotification("RFID_UID", payload);
}
and
if (notification === "RFID_DATA") {
Log.log(" DATA received="+payload);
this.sendNotification("RFID_DATA", payload);
this.dispatchEvents(payload.data)
}
it looks like the converter should work… u did WRITE those decimal values to the tags, right?
I see he has a test reader tool
sudo python modules/MMM-RFID/MFRC522-python/Read.py
@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
@chassain-0 yes, just erase the node_modules folders in each place, base and modules, and then redo npm installs each place…