Code Monkey home page Code Monkey logo

Comments (6)

glabmoris avatar glabmoris commented on July 26, 2024

On peut tirer tout ca via websocket

from poseidon.

Ddoiron-cidco avatar Ddoiron-cidco commented on July 26, 2024

il faut faire un module ros qui vas publier dans un topic ou cest le module du websocket qui vas récuperer les information pour les envoyer ?

from poseidon.

glabmoris avatar glabmoris commented on July 26, 2024

de #51

//CPU temps
ifstream fcputemp;
fcputemp.open ("/sys/class/thermal/thermal_zone0/temp");
if (fcputemp.is_open()){
getline (fcputemp,cputemp);
fcputemp.close();}
cputemp.erase (cputemp.begin()+2);
cputemp.insert(2,".");
//cputemp = température en string xx.xx C

//CPU load
ifstream fcpustat;
fcpustat.open ("/proc/loadavg");
if (fcpustat.is_open()){
getline (fcpustat,cpustat);
fcpustat.close();}
ret = sscanf(cpustat.c_str(), "%lf",&loadavg);
loadavg = loadavg / 8.0 * 100.0;
//loadavg = charge cpu sur 100 tenant compte que le raspberry a 4 core et 2 thread par core.

mémoire dispo dans /proc/meminfo

disque dur dans /proc/diskstats

up time dans /proc/uptime

from poseidon.

Ddoiron-cidco avatar Ddoiron-cidco commented on July 26, 2024

il faudrais ajouter l'identité des module charger. GPS Hemisphere, Sonar ethernet...

cela vas nous permetre d'Aficher la configuration actuelle de Poseidon

from poseidon.

Ddoiron-cidco avatar Ddoiron-cidco commented on July 26, 2024

voltage 5v monitor /sys/device/platform/fixedregulator_5V0/regulator/regulator.1/microvolt
voltage 3.3v monitor /sys/device/platform/fixedregulator_3v3/regulator/regulator.2/microvolt

from poseidon.

glabmoris avatar glabmoris commented on July 26, 2024

@Ddoiron-cidco il faudrait ajuster les progressbars pour finir cet issue.

from poseidon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.