• Python

    From Spectre@21:3/101 to Anybody Else on Monday, February 03, 2020 19:46:00
    Todays problem...

    Does anyone have a reasonable hand at python? I have a script that will read the temperature from the USB thermometer. It tries to be a swiss army knife talking to a number of models by querying the device first to see what it is.

    I'm guessing it has to change modes for all this to work, and theres some kind of timeout on how it works. But for all intents I have no idea how it works or any idea just how to read this script.

    What I need is it to be cut into a specific device script and if the read fails
    then use an error not some stdout message. So I know what the device is going
    in, I've only got one, and it'll always be in the same place. And I just need to get the reading out of it, everything else is superfluous. All I really need... as output is...

    the time and the temp, to stdout for redirection. I'll pop the existing script as temp.zip up at

    http://tlp.zapto.org/hidden_stuff/temp.zip

    If anyone is interested in having a look....

    Spec


    --- SuperBBS v1.17-3 (Eval)
    * Origin: < Scrawled in blood at The Lower Planes > (21:3/101)
  • From Spectre@21:3/101 to Spectre on Monday, February 03, 2020 19:54:00
    Forgot to add... the current output from the python script is...

    Bus 001 Dev 004 413d:2107 TEMPerX_V3.3 21.4C 70.5F - 18.9C 66.0F -

    and all I need is, there are two sensors, on board and remote, the second value
    is the remote, thats the one I need.

    00:00 18.9C


    Spec the rambling and forgetful


    --- SuperBBS v1.17-3 (Eval)
    * Origin: < Scrawled in blood at The Lower Planes > (21:3/101)
  • From Barmed@21:4/127 to All on Wednesday, February 03, 2021 04:55:36
    I'm trying to make something to pull articles from RSS feeds and convert them to text files to post to the BBS. I found at least part of the solution, but I'm getting an error trying to install necessary libraries.

    Any ideas how to get passed this? I've tried sudo apt install --fix-broken
    but nothing happened.

    ~ apt-get install python python-pip #python2
    Reading package lists... Done
    Building dependency tree Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created or been moved out of Incoming.
    The following information may help to resolve the situation:
    The following packages have unmet dependencies: python
    : PreDepends: python-minimal (= 2.7.16-1) but it is not going to be installed
    Depends: libpython-stdlib (= 2.7.16-1) but it is not going to be installed
    Depends: python2 (= 2.7.16-1) but 2.7.17-2ubuntu4 is to be installed
    python-pip : Depends: python-pip-whl (=
    18.1-5) but 20.0.2-5ubuntu1.1 is to be installed
    Recommends: python-setuptools but it is not going to be installed
    Recommends: python-wheel but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

    --- Mystic BBS v1.12 A46 2020/08/26 (Raspberry Pi/32)
    * Origin: theoasisbbs.ddns.net:1357 (21:4/127)
  • From Oli@21:3/102 to Barmed on Saturday, February 13, 2021 23:55:51
    Barmed wrote (2021-02-03):

    I'm trying to make something to pull articles from RSS feeds and convert them to text files to post to the BBS. I found at least part of the solution, but I'm getting an error trying to install necessary libraries.

    Any ideas how to get passed this? I've tried sudo apt install
    --fix-broken but nothing happened.

    this should not happen. which ubuntu is it? have you done a "apt update" before? and why not Python 3? Python 2 is EOL.

    ---
    * Origin: . (21:3/102)
  • From Barmed@21:4/127 to Oli on Saturday, February 13, 2021 17:28:22
    On 13 Feb 2021, Oli said the following...
    Any ideas how to get passed this? I've tried sudo apt install --fix-broken but nothing happened.

    this should not happen. which ubuntu is it? have you done a "apt update" before? and why not Python 3? Python 2 is EOL.


    Ubuntu 20.4 LTS.

    I finally figured out the problem and fixed it. Although off hand I don't recall exactly how.

    Python 2.7 I think is the version that Mystic uses for it's python mods, if
    I'm not mistaken, which is why I'm using it. If I manage to get it working
    lije I want it, I figured it would be easiest using it as a daily event in Mystic that way.

    I may be incorrect with that, but I'm still figuring a lot of things out.

    --- Mystic BBS v1.12 A46 2020/08/26 (Raspberry Pi/32)
    * Origin: theoasisbbs.ddns.net:1357 (21:4/127)
  • From gcubebuddy@21:4/129 to Barmed on Monday, February 22, 2021 21:49:14
    Hi, what is the name of the original package you are trying to install?


    On 03 Feb 2021, Barmed said the following...

    I'm trying to make something to pull articles from RSS feeds and convert them to text files to post to the BBS. I found at least part of the solution, but I'm getting an error trying to install necessary libraries.

    Any ideas how to get passed this? I've tried sudo apt install --fix-broken but nothing happened.

    ~ apt-get install python python-pip #python2
    Reading package lists... Done
    Building dependency tree Reading state information... Done
    Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
    The following information may help to resolve the situation:
    The following packages have unmet dependencies: python : PreDepends: python-minimal (= 2.7.16-1) but it is not going to
    be installed Depends:
    libpython-stdlib (= 2.7.16-1) but it is not going to be installed
    Depends: python2 (= 2.7.16-1) but 2.7.17-2ubuntu4 is to be installed
    python-pip : Depends: python-pip-whl (= 18.1-5) but 20.0.2-5ubuntu1.1 is to be installed
    Recommends: python-setuptools but it
    is not going to be installed
    Recommends: python-wheel but it is not going to be installed E: Unable to
    correct problems, you have held broken packages.

    --- Mystic BBS v1.12 A46 2020/08/26 (Raspberry Pi/32)
    * Origin: theoasisbbs.ddns.net:1357 (21:4/127)

    Thanks
    - Gamecube Buddy

    telnet --<{bbs.hive32.com:23333}>--

    --- Mystic BBS v1.12 A46 2020/08/26 (Linux/64)
    * Origin: Hive32 (21:4/129)