Things used in this project

Hardware components:
475267 240424 01 front zoom kankcmvqdh
Raspberry Pi Zero Wireless
×1
Software apps and online services:
Particle CLI
Hand tools and fabrication machines:
09507 01
Soldering iron (generic)

Code

Retrive CPU TemperatureC/C++
# include "Particle.h"

int getTempC(String args)
{
  Process proc = Process::run("vcgencmd measure_temp");
  proc.wait(); // The output is temp=43.5'C, so read past the = and parse the number
  proc.out().find("=");
  float cpuTemp = proc.out().parseFloat();
  Particle.publish("cpu-temp", String(cpuTemp));
  return 0;
}

void setup()
{
  Particle.function("getTempC", getTempC);
}

void loop()
{
  // Nothing in the loop
} 
Wi-Fi ConfigurationPlain text
network={
    ssid="MyWiFiNetwork"
    psk="the_password"
    key_mgmt=WPA-PSK
}

Credits

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

    Blynk GPS Tracker
    Intermediate
    • 218
    • 5

    Full instructions

    Simple GPS tracker using a Particle Photon (or Electron) and an EM406 GPS module with location visible on Blynk app map.

    Pool Buddy
    Intermediate
    • 1,847
    • 11

    Work in progress

    Monitor and log water quality (pH & ORP) and temperature from everywhere.

    IoT Thermometer Using Python
    Intermediate
    • 1,200
    • 10

    Full instructions

    How to develop a simple but powerful IoT thermometer using a Zerynth-powered single-board MCU and the Zerynth App.

    Particle Photon Flip Dot Clock
    Intermediate
    • 2,213
    • 31

    Full instructions

    The flip dot display uses an electromechanical dot matrix that spin from black to yellow to display text, numbers and more!

    Do You Know How Your Plants Are Feeling? [Particle+Ubidots]
    Intermediate
    • 186
    • 4

    Full instructions

    Build and deploy a soil moisture and temperature sensor for commercial greenhouses or private garden monitoring and treatment.

    Patriot iOS App
    Intermediate
    • 560
    • 9

    Use an old iPhone device to control and display the status of your Patriot IoT devices.

    Patriot iOS App

    Team Patriot

    Add projectSign up / Login