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
  • 34
  • 2

Full instructions

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

Headless Voice Activated Google Assistant on Raspberry Pi
Intermediate
  • 623
  • 9

Full instructions

Turn your Raspberry Pi into a Google Assistant.

Pulse Train HAT for Raspberry Pi Mecanum Bot Example
Intermediate
  • 1,292
  • 19

Full instructions

With this example, we show how to use the PTHAT and wireless Xbox controller to control a Mecanum Bot.

VNC Configuration Without Display On Pi Zero W
Intermediate
  • 431
  • 6

Protip

Get started with Pi Zero W without a display. This tutorial helps you to enable SSH, VNC and configure VNC on your smartphone.

Pool Buddy
Intermediate
  • 1,588
  • 11

Work in progress

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

DIY Vintage Spotify Radio Using A Raspberry Pi
Intermediate
  • 1,495
  • 14

Full instructions

Make your own vintage radio that streams Spotify, Google Play Music, SoundCloud and your own local music!

ProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login
Feedback