Planet maemo

Oksana Tkachenko

2015-02-10 Meeting Minutes

2015-02-13 05:47 UTC  by  Oksana Tkachenko
0
0

Meeting held 2015-02-10 on FreeNode, channel #maemo-meeting (logs)

Attending:
William McBee (gerbick), Jussi Ohenoja (juiceme), Alexander Kozhevnikov (MentalistTraceur), Peter Leinchen (peterleinchen), Oksana Tkachenko (Oksana/Wikiwide),

Peter Pichler (pichlo),

Partial:
Martin Kolman (M4rtinK), Paul Healey (sixwheeledbeast),

Absent:

Summary of topics (ordered by discussion):

  • Extras: maintainer of libssh2-1
  • eV: bank account
  • maemo.org domain registration and maemo trademarks
  • Autobuilder: thumb toolchain and GCC versions
  • Election system: automatic calculation of results and personal URL in email
  • IRC cloaks

Topic (Extras: maintainer of libssh2-1):

  • sixwheeledbeast: who is looking after maintainers on extras packages?
    Someone wishes to be a maintainer of libssh2-1 package, they got no response from the current maintainer; there should be pending requests in Midgard.

Topic (eV: bank account):

  • Juiceme sent a thick wad of signed and notarized papers to Germany , expecting them to be filled out correctly :) .

Topic (maemo.org domain registration and maemo trademarks):

  • Thanks to warfare for getting the domain switch done so neatly. He graciously paid up the domains for a year at the same time!
  • Win7Mac, member of Hildon Foundation Board, has emailed to Roschier Brand Attorneys about trademarks renewal.

Topic (Autobuilder: thumb toolchain and GCC versions):

  • Would thumb target and-or GCC versions make building Qt5 on Fremantle possible?
  • There are currently: 3.4.4 (for Diablo and Fremantle); 4.2.1 and 4.4 (failed) and 4.6.1 (why non-free?) (for Fremantle)

Topic (Election system: automatic calculation of results and personal URL in email):

  • MentalistTraceur hasn't looked at the PHP code for elections, yet.
  • juiceme will add the email template to the code repository - currently there's only the DB general schema.
    Besides combining email and token in email template to form a personal URL, the log-in mechanism needs to be tweaked a bit, to retain the state correctly when entering through personal URL.
    The personal URL should help with voting in cases where copy-and-paste is a problem, such as N9, Jolla, GeeksPhone (Firefox OS)...

Topic (IRC cloaks):

  • Did not hear back from X-Fade, yet, about alternative Group Contacts for Freenode...

Action Items:
  • -- old items:
    • The selected Code of Conduct (KDE) still needs to be published on (T)MO.
    • Looking into automatic calculation of election results ...
    • Possible addition of personal voting link into email template in the DB of election system...
    • Contacting freemangordon and merlin1991 about auto-builder: CSSU-thumb target, GCC versions?
    • Contacting X-Fade, as well as Freenode staff directly, about the GC.
    • Getting maemo trademark registration (everywhere!) renewed (and transferred to Hildon Foundation) by the end of February.
    • archiving Ovi/Nokia store, especially for Harmattan.
  • -- new items:
Categories: council
madman2k

Introducing Sensors Unity

2015-02-07 14:23 UTC  by  madman2k
0
0

Sensors-Unity is a new lm-sensors GUI for the Unity Desktop. It allows monitoring the output of the sensors CLI utility while integrating with the Unity desktop. This means there is no GPU/ HDD support and no plotting.
If you need those you are probably better suited with psensor. However if you just need a overview of the sensor readings and if you appreciate a clean UI you should give it a shot.

Sensors Unity is available from this PPA

It is written in Python3 / GTK3 and uses sensors.py. You can contribute code or help translating via launchpad.

Overview

In contrast to other applications the interface is designed around being a application. Instead of getting another indicator in the top-right, you get an icon in the launcher:

The user interfaceThe user interface

The idea is that you do not need the sensor information all the time. Instead you launch the app when you do. If you want to passively monitor some value you can minimize the app while selecting the value to display in the launcher icon.

To get the data libsensors is used which means that you need to get lm-sensors running before you will see anything.

However once the sensors command line utility works you will see the same results in Sensors-Unity as it shares the configuration in /etc/sensors3.conf.

Configuration

Unfortunately configuring lm-sensors via /etc/sensors3.conf this is quite poorly documented, so lets quickly recap the usage.

  • /etc/sensors3.conf contains the configuration for all sensors known by lm-sensors
  • however every mainboard can use each chip in a slightly different way
  • therefore you can override /etc/sensors3.conf by placing your specific configuration in /etc/sensors.d/ (see this for details)
  • you can find a list of these board specific configurations in the lm-sensors wiki
  • to disable a sensor use the ignore statement
  • #ignore everything from this chip
    chip "acpitz-virtual-0"
     ignore temp1
     ignore temp2
  • to change the label use the label statement
  • chip "coretemp-*"
     label temp1 "CPU Package"

    Sensors-Unity Specific Configuration

Sensors-Unity allows using the Pango Markup Language for sensor labels. For instance if you want “VAXG” instead of “CPU Graphics” to be displayed, you would write:

label in4 "V<sub>AXG</sub>"

In order not to interfere with other utilities and to allow per-user configuration of the labels/ sensors Sensors-Unity first tries to read ~/.config/sensors3.conf before continuing with the lm-sensors config lookup described above.

Categories: Articles
Oksana Tkachenko

2015-02-03 Meeting Minutes

2015-02-06 05:17 UTC  by  Oksana Tkachenko
0
0

Meeting held 2015-02-03 on FreeNode, channel #maemo-meeting (logs)

Attending:
Jussi Ohenoja (juiceme), Alexander Kozhevnikov (MentalistTraceur), Peter Leinchen (peterleinchen),

Rüdiger Schiller (chem|st), Peter Pichler (pichlo),

Partial: William McBee (gerbick), Oksana Tkachenko (Oksana/Wikiwide),
Falk Stern (warfare/fstern), Gido Griese (Win7Mac),

Absent:

Summary of topics (ordered by discussion):

  • maemo.org domain registration
  • maemo trademark
  • eV: bank account

Topic (maemo.org domain registration):

  • Domains (maemo.org and maemo.com) have been finally transferred, with juiceme as registrant and admin, and warfare as tech.

Topic (maemo trademark):

  • Wikiwide sent letter to Hildon Foundation asking them to claim-renew-pay for trademarks.
    Having HiFo to renew all TMs at once - and not just those (Europe and Germany) expiring in February - is better, because later the bank account will be transferred to MCeV.
    It would be troublesome for MCeV to renew trademarks which Nokia transferred to HiFo.
  • Concerns were expressed about funds for trademark renewal. Possibility of donations was discussed.
  • Hildon Foundation needs to contact Roschier Brands Attorney to discuss everything involved in trademark renewal, including funds needed.

Topic (eV: bank account):

  • Hopefully this bank-account thing is over this month (February) once and for all (chemist found a global player).
    As soon as we (MCeV) have a bank account, we can accept donations, papers are with juiceme at the moment.
    Juiceme's got a stack of papers he needs to go to a bank here (Finland) with, and get them signed to transfer to Germany.

Action Items:
  • -- old items:
    • The selected Code of Conduct (KDE) still needs to be published on (T)MO.
    • Looking into automatic calculation of election results ...
    • Possible addition of personal voting link into email template in the DB of election system...
    • Contacting freemangordon and merlin1991 about auto-builder: CSSU-thumb target, GCC versions?
    • Contacting X-Fade, as well as Freenode staff directly, about the GC.
    • Getting maemo trademark registration (everywhere!) renewed (and transferred to Hildon Foundation) by the end of February.
    • archiving Ovi/Nokia store, especially for Harmattan.
  • -- new items:
Categories: council
Oksana Tkachenko

2015-01-27 Meeting Minutes

2015-02-01 22:11 UTC  by  Oksana Tkachenko
0
0

Meeting held 2015-01-27 on FreeNode, channel #maemo-meeting (logs)

Attending:
William McBee (gerbick), Jussi Ohenoja (juiceme), Alexander Kozhevnikov (MentalistTraceur), Peter Leinchen (peterleinchen),
Philippe Coval (RzR),
Rüdiger Schiller (chem|st), Martin Kolman (M4rtinK), Falk Stern (warfare/fstern),

Partial: Oksana Tkachenko (Oksana/Wikiwide),

Absent:

Summary of topics (ordered by discussion):

  • maemo.org domain registration
  • maemo trademark
  • IRC cloaks
  • eV: bank account
  • Autobuilder: thumb toolchain and GCC versions
  • Miscellaneous

Topic (maemo.org domain registration):

Topic (maemo trademark):

  • Hildon Foundation needs to claim-renew-pay for trademarks; it seems they are still waiting for juice and chemist to get that bank thing managed.

Topic (IRC cloaks):

  • GeneralAntilles is in contact with X-Fade

Topic (eV: bank account):

  • Chemist is doing the paperwork with Deutche Bank, but proceedings will take some time so MCeV won't be operational by mid-February to March

Topic (Autobuilder: thumb toolchain and GCC versions):

  • freemangordon will try to find some time during the weekend, to investigate feasibility of adding CSSU-thumb repository to auto-builder

Topic (Miscellaneous):

  • M4rtinK and rZr will be on FOSDEM, near Fedora stand.
  • rZr will talk about Tizen OS on FOSDEM.
  • Ovi/Nokia store is about to go down. archive.org saved Fremantle; anybody here knows about archive.org or has connections, to make such tar for Harmattan, too?

Action Items:
  • -- old items, already acted-on:
    • Getting maemo.org domain registration transferred from Nokia to Hildon Foundation.
  • -- old items:
    • The selected Code of Conduct (KDE) still needs to be published on (T)MO.
    • Looking into automatic calculation of election results ...
    • Possible addition of personal voting link into email template in the DB of election system...
    • Contacting freemangordon and merlin1991 about auto-builder: CSSU-thumb target, GCC versions?
    • Contacting X-Fade, as well as Freenode staff directly, about the GC.
    • Getting maemo trademark registration renewed by the end of February.
  • -- new items:
    • archiving Ovi/Nokia store, especially for Harmattan.
Categories: council
Thomas Perl

Running Debian sid on Sailfish OS

2015-01-29 18:40 UTC  by  Thomas Perl
0
0
This assumes you have a Debian/Ubuntu host computer on which to run debootstrap. Theoretically you can run this on the device, but it's not as easy as on Harmattan (where you can just install the debootstrap package. On the host, run the first init and create a tarball:

sudo debootstrap --arch armhf --foreign sid sid
sudo tar czvf sid.tgz -C sid .
du -sh sid.tgz
# 98M sid.tgz
scp sid.tgz nemo@192.168.2.15:
To unpack the chroot tarball:

ssh nemo@192.168.2.15
devel-su
# password

mkdir sid
cd sid
tar xvf ../sid.tgz
chroot /home/nemo/sid/ /debootstrap/debootstrap --second-stage
chroot /home/nemo/sid/ apt-get clean
echo "deb http://http.debian.net/debian sid main" \
>/home/nemo/sid/etc/apt/source.list
To enter the chroot:

ssh nemo@192.168.2.15
devel-su
# password

mount --bind /proc /home/nemo/sid/proc
mount --bind /sys /home/nemo/sid/sys
mount --bind /dev /home/nemo/sid/dev
mount --bind /dev/pts /home/nemo/sid/dev/pts
cp /etc/resolv.conf /home/nemo/sid/etc/
chroot /home/nemo/sid/
apt-get update
Categories: chroot
Oksana Tkachenko

2015-01-20 Meeting Minutes

2015-01-25 03:56 UTC  by  Oksana Tkachenko
0
0

Meeting held 2015-01-20 on FreeNode, channel #maemo-meeting (logs)

Attending:
Jussi Ohenoja (juiceme), Oksana Tkachenko (Oksana/Wikiwide), Peter Leinchen (peterleinchen),

Partial:
William McBee (gerbick), Rüdiger Schiller (chem|st),

Absent:
Alexander Kozhevnikov (MentalistTraceur),

Summary of topics (ordered by discussion):

  • maemo.org domain registration
  • maemo trademark
  • IRC cloaks
  • eV: bank account
  • Autobuilder: thumb toolchain and GCC versions

Topic (maemo.org domain registration):

  • chemist sent mails to board^2 about TM domain & bankaccounts, and to nokia about TM and domain transfer
  • chemist sent mail to the current DNS service company for maemo.org requesting domain transfer linking to the statement on maemo.org, no response yet.

Topic (maemo trademark):

  • Maemo trademark is already owned by Hildon Foundation.
    Expiration of TMs is end of month it was applied + 10years, so it will expire in the end of February. It needs to be paid up for refreshment, though. "Owner" in the record (linked above) will change to Hildon Foundation (instead of Nokia).
    Roschier is the brands attorney who registers and renews the trademark.
    chemist sent mails to board and nokia about TM, as noted above?

Topic (IRC cloaks):

  • x-fade did not answer rzr's email at all... We are contacting Freenode staff directly, with the angle of having trademark owned by Hildon Foundation; previously the channels "belonged" to Nokia

Topic (eV: bank account):

  • We are trying to find a bank that is easy to set up with the MCEV account, that is usable both in Finland and in Gernmany.
    juiceme has contacted Handelsbanken, and they cannot open the account from Finland, as the e.V. is registered in Germany, but the other way is possible.
    Now we need to ask the German branch if they are willing to send the papers for signing to juiceme's local bank branch.

Topic (Autobuilder: thumb toolchain and GCC versions):

  • Oksana sent PM on TMO, to both freemangordon and merlin1991, about auto-builder, and asked about feasibility of adding thumb, and the versions of GCC

Action Items:
  • -- old items, already acted-on:
    • Juiceme and chemist clarified the bank account situation of e.V.
    • IRC channel operator situation: DocScrutinizer added juiceme, peterleinchen, MentalistTraceur, warfare, wikiwide to channel operators.
  • -- old items:
    • The selected Code of Conduct (KDE) still needs to be published on (T)MO.
    • Looking into automatic calculation of election results ...
    • Possible addition of personal voting link into email template in the DB of election system...
    • Contacting freemangordon and merlin1991 about autobuilder: thumb target in auto-builder, GCC version in auto-builder?
  • -- new items:
    • Contacting Freenode staff directly about the GC with the angle of having maemo trademark owned by Hildon Foundation.
    • Getting maemo.org domain registration transferred from Nokia to Hildon Foundation.
    • Getting maemo trademark registration renewed by the end of February.
Categories: council
Oksana Tkachenko

2015-01-13 Meeting Minutes

2015-01-16 05:42 UTC  by  Oksana Tkachenko
0
0

Meeting held 2015-01-13 on FreeNode, channel #maemo-meeting (logs)

Attending:
Jussi Ohenoja (juiceme), Alexander Kozhevnikov (MentalistTraceur), Oksana Tkachenko (Oksana/Wikiwide), Peter Leinchen (peterleinchen),

Partial:
Rüdiger Schiller (chem|st), Gido Griese (Win7Mac),

Absent:
William McBee (gerbick),

Summary of topics (ordered by discussion):

  • Election system: automatic calculation of results and personal URL in email
  • Autobuilder: thumb toolchain and GCC versions
  • IRC: cloaks and topic of the channel
  • eV

Topic (Election system):

  • If everything goes well, MentalistTraceur will take a look at the PHP code within another day or two.
  • juiceme:
    the email template is in the DB, and it contains placeholders that are filled by the user's email address and temporary token when the mail is processed for sending.
    it would be possible to add a personal URL mangled from the temporary token to be inserted to the mail as well.

Topic (Autobuilder):

Topic (IRC):

  • Topic of the channel should be changed, to reflect the current meeting time. It can only be done by a channel operator.
  • IRC cloaks can be given by GC; council cloak is actually being used as access list entry in admin-channel
    chem|st will send out an email to freenode again as xfade is unresponsive ever since and generalAntilles is more on twitter than on any of #our channels

Topic (eV):

  • All member applications have been accounted for; chem|st has sent emails to all of them. eV headcount is now 14, including founding members
  • Win7Mac locked wiki page so that only logged-in users would be able to edit it

Action Items:
  • -- old items:
    • Juiceme and chemist to clarify the bank account situation or e.V.
    • The selected Code of Conduct (KDE) still needs to be published on (T)MO.
    • Looking into automatic calculation of election results ...
  • -- new items:
    • Next week's tasks: possibly adding personal URL to email template of election system...
    • Contacting freemangordon and merlin1991 about autobuilder: thumb target in auto-builder, GCC version in auto-builder?
Categories: council
Oksana Tkachenko

2015-01-06 Meeting Minutes

2015-01-11 23:12 UTC  by  Oksana Tkachenko
0
0

Meeting held 2015-01-06 on FreeNode, channel #maemo-meeting (logs)

Attending:
William McBee (gerbick), Jussi Ohenoja (juiceme), Oksana Tkachenko (Oksana/Wikiwide), Peter Leinchen (peterleinchen),
Philippe Coval (RzR),
Paul Healey (sixwheeledbeast), Rüdiger Schiller (chem|st),

Partial: Alexander Kozhevnikov (MentalistTraceur),
Falk Stern (warfare), Gido Griese (Win7Mac),

Absent:

Summary of topics (ordered by discussion):

  • Results of election
  • Handover meeting
  • Miscellaneous

Topic (Results of election):

  • Winners are Alexander Kozhevnikov (Mentalist Traceur), Peter Leinchen (peterleinchen), William McBee (gerbick), Jussi Ohenoja (juiceme), and Oksana A. Tkachenko (Wikiwide).
  • The automatic calculation did/does not work, so the results were not immediately available at their foreseen place.
    Juiceme did the calculation manually and posted the results on his server.
    Meanwhile they are available, thanks to juiceme feeding the database manually.
  • Please see also this post on TMO.

Topic (Handover meeting):

  • A "handover meeting" was held by inviting members of both Old Council and New Council to join on IRC for this meeting.
  • Suitable meeting time was decided upon as 21:00 UTC, Tuesday.
  • Council mail-alias was updated by techstaff accordingly, to include members of New Council.
  • Council status on TMO was added by techstaff accordingly, for members of New Council.
  • Chair was elected.
    Wikiwide was proposed by peterleinchen, seconded by gerbick, and supported by MentalistTraceur; Wikiwide formally agreed.
    gerbick was proposed by peterleinchen, and rejected the position.
    No other proposals were put forth, since tradition is that first-timers will be chosen, and juiceme, MentalistTraceur, and peterleinchen already were Chairs previously.

Topic (Miscellaneous):

  • Automatic calculation of results not working for the last election was discussed.
    As juiceme said: "the previous elections computed OK when I redid them, but not this one."
    Wikiwide suggested empty ballots as possible trigger for the confusion.
    Mentalist Traceur volunteered to have a look at the php code.
  • Mentioned:
    IRC cloaks (ask sixwheeledbeast),
    thumb target in auto-builder,
    what's the GCC version on the autobuilder?
  • Officially on record: Mentalist Traceur is really grateful to Aapo Rantalainen for putting GCC 4.6 in the N900 community repos.

Action Items:
  • -- old items:
    • Juiceme and chemist to clarify the bank account situation or e.V.
    • The selected Code of Conduct (KDE) still needs to be published on (T)MO.
  • -- new items:
    • Next week's tasks: looking into automatic calculation of election results ...
    • possible action items: thumb target in auto-builder, GCC version in auto-builder?
Categories: council
peterleinchen

2014-12-30 Meeting Minutes

2015-01-06 21:12 UTC  by  peterleinchen
0
0

Meeting held 2014-12-30 on FreeNode, channel #maemo-meeting (logs)

Attending:
Ryan Cristal (klinglerware), Halit Bal (HtheB),
Gido Griese (Win7Mac),
Jussi Ohenoja (juiceme), Philippe Coval (RzR)

Partial: (xes), Misha K.(zogG), Aaron McEwan (chainswawbike), Peter Pichler (pichlo)

Absent: Peter Leinchen (peterleinchen)

Summary of topics (ordered by discussion):

  • Council Election
  • Miscellaneous

Topic (Council Election):

  • A "surprise party" was held by inviting all candidates to join on IRC for this meeting.
  • Voting tokens have been sent out on Friday, 26th Dec. Voting election page is up and working.
  • Juiceme helped a few cases where voting token was not sent. At time of meeting there were already 47/48 votes.
  • Pichlos "resignation" and the consequences were discussed. As he did not officially resigned via ML, but just told so on TMO, he is still a candidate. One possible/troublesome consequence would the voidness of election, as STV states. Luckily pichlo joined in and declared to stay as candidate but announces on TMO and wiki that he prefers to NOT be elected. So votes should go to others. In case of he still gets elected he will take the responsibility and accept.

Topic (Miscellaneous):

  • No input/questions/requests from community.
  • Again no news from GeneralAntilles regarding the IRC chan op situation.

Action Items:
  • -- old items:
    • Check if karma calculation/evaluation is fixed. - Karma calculation should work, only wiki entries (according to Doc) not considered. Works (might be cross-checked...)
    • NielDK to prepare a draft for letter to Jolla. - Obsolete
    • Sixwheeledbeast to clarify the CSS issue on wiki.maemo.org with techstaff. - Done
    • juiceme to create a wording draft for the referendum (to be counterchecked by council members). - See
    • Peterleinchen to announce resignation of DocScrutinizer*/joerg_rw from council. Done
    • Everybody to make up their own minds about referendum and give feedback.
    • RzR to contact Doc (neo900) and smokku (cordia) Done
    • Peterleinchen to announce the next council election Done
    • Juiceme and chemist to clarify the bank account situation
    • Council to clarify with HiFo board about the upcoming board election Council is in charge to announce/prepare the council/board/... elections
    • Juiceme to check/recalculate the karma points manually for all members where needed Done, all are eligible
    • The selected Code of Conduct (KDE) still needs to be published on (T)MO.
  • -- new items:
    • Next week's tasks: referendum, welcome/introduction of new council, ...
    • possible action item: contacting Opera about hosting (Nokia/OVI) store apps for N9
Categories: news
peterleinchen

2014-12-16 Meeting Minutes

2014-12-21 21:07 UTC  by  peterleinchen
0
0

Meeting held 2014-12-16 on FreeNode, channel #maemo-meeting (logs)

Click to read 1502 more words
Categories: news
peterleinchen

2014-12-09 Meeting Minutes

2014-12-12 18:10 UTC  by  peterleinchen
0
0

Meeting held 2014-12-09 on FreeNode, channel #maemo-meeting (logs)

Attending:
(wikiwide), Bernardo Reino (reinob), Sicelo Mhlongo (sicelo)
Gido Griese (Win7Mac),
Jussi Ohenoja (juiceme), Peter Leinchen (peterleinchen)

Partial: Rüdiger Schiller (chem|st), Paul Healey (sixwheeledbeast), (Oksana)

Absent: Philippe Coval (RzR)

Summary of topics (ordered by discussion):

  • Council Election
  • IRC, Miscellaneous

Topic (Council Election):

Topic (IRC, Miscellaneous):

  • Discussion about jyrjyr spamming the #maemo-meeting channel and how to get rid of that. Peterleinchen sent mail to him but it bounced back with "unknown inbox".
  • Council decided to contact GeneralAntilles once more to clarify the chan op situation.

Action Items:
  • -- old items:
    • Check if karma calculation/evaluation is fixed. - Karma calculation should work, only wiki entries (according to Doc) not considered. Works (might be cross-checked...)
    • NielDK to prepare a draft for letter to Jolla. - Obsolete
    • Sixwheeledbeast to clarify the CSS issue on wiki.maemo.org with techstaff. - Done
    • juiceme to create a wording draft for the referendum (to be counterchecked by council members). - See
    • Peterleinchen to announce resignation of DocScrutinizer*/joerg_rw from council. Done
    • Everybody to make up their own minds about referendum and give feedback.
    • RzR to contact Doc (neo900) and smokku (cordia) Done
    • Peterleinchen to announce the next council election Done
    • Juiceme and chemist to clarify the bank account situation
    • Council to clarify with HiFo board about the upcoming board election Council is in charge to announce/prepare the council/board/... elections
  • -- new items:
    • Juiceme to check/recalculate the karma points manually for all members where needed
    • Next weeks tasks: referendum, sub pages on m.o for e.V., preparing election
Categories: news
madman2k

introducing sensors.py

2014-12-07 12:30 UTC  by  madman2k
0
0

sensors.py is a new python wrapper for libsensors of the lm-sensors project. libsensors is what you want to use to programmatically read the sensor values of your PC with Linux instead of parsing the output of the sensors utility.

sensors.py is not the first wrapper – there are two alternatives, confusingly both named PySensors.

PySensors (ctypes) follows a similar approach to sensors.py by using ctypes. However instead of exposing the C API it tries to be a object-oriented(OO) abstraction, which unfortunately lacks many features and makes the mapping to the underlying API hard. Furthermore it does not support Python3.

PySensors (extension module)  does not use ctypes and thus is more efficient, but if you write a python script probably compiling a extension module is worse than losing some performance when reading the values.
Additionally there is python3 support and also some OO abstraction. The latter is somewhere in between the C API and proper OO: sensors_get_label(chip_name, feature) is ChipName.get_label(feature) instead of feature.get_label().

So what makes sensors.py immediately different is that it does not try to do any OO abstraction but instead gives you access to the raw C API. It only adds minor pythonification: you dont need to mess with pointers, errors are converted to exceptions and strings are correctly converted from/ to utf-8 for you.

However working with the C API directly is tiresome at times – therefore there is also an optional iterator API, which is best shown by a demo:

import sensors

sensors.init()

for chip in sensors.ChipIterator("coretemp-*"):
    print(sensors.chip_snprintf_name(chip)+" ("+sensors.get_adapter_name(chip.bus)+")")
    
    for feature in sensors.FeatureIterator(chip):
        sfi = sensors.SubFeatureIterator(chip, feature)
        vals = [sensors.get_value(chip, sf.number) for sf in sfi]
        label = sensors.get_label(chip, feature)
        
        print("\t"+label+": "+str(vals))

sensors.cleanup()

result:

coretemp-isa-0000 (ISA adapter)
	Physical id 0: [38.0, 80.0, 100.0, 0.0]
	Core 0: [37.0, 80.0, 100.0, 0.0]
	Core 1: [35.0, 80.0, 100.0, 0.0]
	Core 2: [38.0, 80.0, 100.0, 0.0]
	Core 3: [36.0, 80.0, 100.0, 0.0]

for a more sophisticated example see the example.py in the repository.

Categories: News