I am working on a university project at the moment where we have an exhibition of an interactive art installation that will be placed in my local city for 3 days. On our website about the art installation we want to implement a counter that simply counts the amounts of interactions that people have done with our installation in these 3 days. The signal that an interaction has taken place would come from the Arduino which is connected to the Photon.
I have done a prototype of this where I used a simple pushbutton that substitutes the signal coming from the Arduino.
The html/js code for this:
This works, the problem is that it stores the counter variable only locally in the browser.
What I actually need is storing the counter number somewhere on a web server and then display the number on my project website, where it gets updated regulary.
I’ve already researched a lot and tried to work with a MySQL database, unfortunately I’m lacking the experience and skills in these fields.
I’ve also followed this tutorial, as it looks like something that I need. Unfortunately it gives me a hook error in the console.particle event log. I can’t seem to find where the error is so I am looking for a different(possibly easier) solution for my problem.
At the moment I am quite desperate and any help or tips are appreciated!