I am currently working with the photon to create a web application that will be recorded in the photon’s own network.
then I would like to know if the library should be used and the various steps to be done in order to recover the sensor data on this web page.
Given an internet connected WiFi network, the Photon can collect data and store it anywhere on the local network or the internet. I personally have a Photon that collects data about the electrical power that flows into my boiler. The Photon uploads events to Google Sheets. Each upload adds one line to the spreadsheet. I can view the spreadsheet vla the web at any time. If I wanted, I could also share the data with other specific people, I could share the data with anyone who has a link, or I could allow people to search for the data.
Of course, once in the Google spreadsheet, macros and scripts can manipulate the data, create charts, and do almost anything. I think Google is a good/secure option but other internet ‘cloud based’ solutions exist. You also have the option of doing everything locally.
For example, I have another Photon that monitors sensors and sends data to a Linux computer on my home network via MQTT. The Linux computer then updates a local log file. The same Linux computer has a secure HTTP server running on it, so I could easily expose that data via a web page without relying on any internet cloud service.
You asked about the steps that needed to be done … Your first step would be to determine if you want to use an internet service. If so, the second step would be to choose the service that is best for you.
I thank you for this explanation I will follow your steps to achieve my goal.
Hi there, and welcome to the community!
You may find some inspiration in the following topics:
I’m hoping to create an AC commercial power monitor using a photon. The idea is to watch commercial power (via an appropriate relay) connected to a particle photon. I’d like to add a second relay to monitor backup (generator) power.
The photon should be able to provide “power status” via text or email.
I need help with the coding to make all of these actions happen. I’m hoping to find someone who understands both my project and the code needed to make it into a functional system.
Interesting, I’ve been monitoring the off-peak power going to my boiler using a 5vdc power supply and a NO relay that connects a Photon pin to 3.3v when the relay is closed. I only planned to use that circuit for a short time, so I deployed it on a bread board and it’s still running that way after almost two years.
My Photon is plugged into a PowerShield which is powered from house power. This allows me to monitor house power as well as the off-peak power. The PowerSheld’s LiPo also keeps the Photon alive when house-power is off-line. I also power my router through a UPS, so every event has been logged.
I’ve recently been experimenting with an Xenon/LIPo, mounted on an ethernet feather-wing. I put a small circuit board on headers and plugged that into the feather-wing … alongside the Xenon. I expect this project to ultimately replace the Photon. It currently monitors the same off-peak circuit via a relay and publishes MQTT messages to Home Assistant. It also has relays to power the boiler controller and an air-exchanger on and off … while it monitors outdoor temperature and a few other things.
Using a relay as a sensor isolates the logic circuit from the power circuit, but the extra power supply and the relay add some bulk to the project. I’ve been tempted to experiment with an an AC/DC optocoupler like this one: https://www.onsemi.com/pub/Collateral/HCPL3700-D.pdf, but I have not yet taken time to research the idea.
When it comes to sending text or email, My Photon uses a webhook to send text messages via PushBullet. That is my only foray into this type of interface. PushBullet has been reliable, and has met my need. That said, I have not researched it enough to know if it is (or can be) commercial grade.
I understand Gmail has a SMTP service, but I have never looked into it.
Do you have any hardware to work with at this point?