I need assistance in setting up a raspberry pi to operate as a private ethereum blockchain node using the "go ethereum" client. I also need set up the Rpi to control an electric relay.
i need to develop an API which can read the event of a transaction to the rasp pi node and count how many tokens were received. Once the event has occured the Rpi needs to send a signal to an electric relay which closes, allowing electricity to flow through an electric circuit.
A current clamp connected to the Rpi and the electric circuit will be recording the flow of current. The Rpi will have to be programmed to convert this current to Watt hours and then to open the relay switch once the amount of electricity corresponding to the value of the transaction has passed through the circuit.