ironsheep / RPi-Reporter-MQTT2HA-Daemon

Linux service to collect and transfer Raspberry Pi data via MQTT to Home Assistant (for RPi Monitoring)
GNU General Public License v3.0
471 stars 64 forks source link

Jetson Nano Support #22

Open jonwilliams84 opened 4 years ago

jonwilliams84 commented 4 years ago

Is your feature request related to a problem? Please describe. It would be awesome if you could add Jetson Nano support - I have tested it as is and most things work but temperatures are not read.

Describe the solution you'd like Update to include Jetson Nano Temperature readings.

Describe alternatives you've considered Currently using a bash script to read the values from:

cat /sys/devices/virtual/thermal/thermal_zone*/type

AO-therm
CPU-therm
GPU-therm
PLL-therm
PMIC-Die
thermal-fan-est

cat /sys/devices/virtual/thermal/thermal_zone*/temp

31000
24500
26500
24500
100000
25500

Additional context N/A

jonwilliams84 commented 4 years ago

Here is the data currently being sent:

{
    "info": {
        "timestamp": "2020-11-02T13:00:40+00:00",
        "rpi_model": "NVIDIA Jetson Nano Developer Kit", 
        "ifaces": "e,w,b", 
        "host_name": "jetson-nano", 
        "fqdn": "jetson-nano", 
        "ux_release": "bionic\nbionic-backports\nbionic-security\nbionic-updates\nmain", 
        "ux_version": "4.9.140-tegra", 
        "up_time": "101 days,   4:07",
        "last_update": "2020-11-02T13:00:24+00:00", 
        "fs_total_gb": 128, 
        "fs_free_prcnt": 13, 
        "networking": {
            "eth0": {
                "IP": "192.168.1.2", "mac": "00:04:4b:e4:36:fd"
                }
            }, 
        "drives": {
            "root": {
                "size_gb": 128, 
                "used_prcnt": 13, 
                "device": "/dev/mmcblk0p1", 
                "mount_pt": "/"
                }, 
            "dev": {
                "size_gb": 2, 
                "used_prcnt": 0, 
                "device": "none", 
                "mount_pt": "/dev"
                }
            }, 
        "memory": {
            "size_mb": "3964.215", 
            "free_mb": "3227.848"
            }, 
        "cpu": {
            "hardware": "", 
            "model": "ARMv8 Processor rev 1 (v8l)", 
            "number_cores": 4, 
            "bogo_mips": "153.60", 
            "serial": ""
            }, 
        "throttle": ["Not Available"], 
        "temperature_c": -1.0, 
        "temp_gpu_c": -1.0, 
        "temp_cpu_c": -1.0, 
        "reporter": "ISP-RPi-mqtt-daemon v1.5.4", 
        "report_interval": 2
        }
    }
}