B4J Question Gmail REST API - Pi Startup

lip

Active Member
Licensed User
Longtime User
I am trying to get Raspberry Pi's to send an e-mail to me on startup containing some information about themselves (Local IP Address, Teamviewer ID etc...).

I will not have the physical Pi with me at any stage, I will be sending SD cards out for customers to put into their Pi.

The Pi application is a non-UI B4J app and the Pi is embedded in other equipment. There is no possibility of connecting a screen or keyboard to the Pi.

If I try to use the Gmail API to send the mail, can I set it up so that an email is sent to me (not to the pi) requesting permission to send email? Or will the initial authentication have to come from the physical pi? Or could I perhaps load the SD card on to my own Pi before I send it out, pre-authorise that SD card to use the GMail API, then send the SD card to site and it works in the different Pi?

Or should I be doing this a different way?
 
Top