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

    Lightweight Sliding Door Automator
    Intermediate
    • 1,547
    • 8

    Work in progress

    Automate the opening and closing of a lightweight sliding door (e.g. a screen door), including remote controls on your phone.

    Christmas Gift Box
    Intermediate
    • 3,634
    • 595

    Full instructions

    Christmas Gift Box plays music and sends an email when it is opened.

    Carbon Fiber Vacuum Chamber
    Intermediate
    • 2,907
    • 94

    Full instructions

    Our project is a carbon fiber vacuum chamber that is monitored by multiple particle photons and various sensors.

    ConnectTheDots with Particle Azure IoT Hub Integration
    Intermediate
    • 842
    • 8

    Protip

    This project will allow you to connect your Particle device into an Azure IoT Hub for viewing data in real-time through an ASP.NET web app!

    What should I wear outside?
    Intermediate
    • 5,046
    • 67

    Full instructions

    A whimsical weather clock powered by Particle and forecast.io

    LED Reflection Clock
    Intermediate
    • 2,175
    • 35

    Work in progress

    Using 60 LED's facing a suitable wall, the time is projected in colour.

    Add projectSign up / Login