Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 4568|Reply: 3

System Info API

[Copy link]

2

Threads

4

Posts

120

Credits

Registered member

Rank: 2

Credits
120
Post time 2015-10-27 23:05:44 | Show all posts |Read mode
I made a python script that creates a web server with an API to get system information from CPU, temp etc...


API routes(<ip>:8000/route):
  • /allinfo – Shows all info
  • /cpuinfo – Shows all information of CPU(Nº cores, arquitecture, etc...)
  • /meminfo – Shwos all RAM info(RAM available, in use, paginated, etc...)
  • /sysinfo – Shows system information(Distro, time, kernel version, etc...)
  • /systemp – Shows temperature of all sensors in the machine.


You can get the script in my gist
https://gist.github.com/Kurobyte/155cd5b293d3df090cac



0

Threads

3

Posts

73

Credits

Registered member

Rank: 2

Credits
73
Post time 2015-11-13 13:50:32 | Show all posts
Thanks. This is useful.

17

Threads

83

Posts

382

Credits

Intermediate member

Rank: 3Rank: 3

Credits
382
Post time 2016-3-4 01:39:50 | Show all posts
Reply

Use magic Report

11

Threads

286

Posts

1859

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
1859
Post time 2016-5-2 17:49:15 | Show all posts
very cool,thanks
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-8-25 23:53 GMT+8 , Processed in 0.026561 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list