Skip to content

arslabs/MacMon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MacMon

MacMon

Display CPU temperature & FAN RPM

  1. Connect Feather M0 or arduino nano to the mac
  2. Execute 'find_serial.py' for getting pid, vid, serial number for serial port
Macmini:macmon $ ./find_serial.py
/dev/cu.Bluetooth-Incoming-Port - n/a, vid: None, pid: None, serial no.: None
/dev/cu.usbmodem1463201 - Feather M0, vid: 9114, pid: 32779, serial no.: 25657693514D503259202020FF101F3E
  1. Change 'config.json' appropriately. MacMon use serial_no first for finding the device. Otherwise use vid & pid for finding the device.
Macmini:macmon $ cat config.json
{
	"uart_enabled":1,
	"duration": 2,
	"baud":115200,
	"vid":9114,
	"pid":32779,
	"serial_no":"25657693514D503259202020FF101F3E",
	"mqtt_enabled":1,
	"mqtt_broker":"arslabs.myds.me",
	"mqtt_port":31883,
	"mqtt_topic1": "macmon/temp",
	"mqtt_topic2":"macmon/fan"
}
  • uart & mqtt support can be enabled respectively.
  • For UART support, you should specify the parameters for choosing uart device (vid, pid, serial_no) and communication parameter (baud).
  • For MQTT support, you should specify the mqtt broker, port, and two topics (for temperature and fan speed).
  1. Execute 'macmon.py' with root privilidge for opening serial port
Macmini:macmon $ nohup sudo ./macmon.py &
  • Hardware connections can be found in Hardware directory.
  • Arduino sketch (/Arduino/MacTempFan.ino) can be used for Adafruit Feather M0 and Arduino Nano without any modification.

About

Display CPU temperature & FAN RPM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published