aosong | AOSONG Sensors Python 3 package

 by   roder Python Version: Current License: Apache-2.0

kandi X-RAY | aosong Summary

kandi X-RAY | aosong Summary

aosong is a Python library typically used in Manufacturing, Utilities, Machinery, Process, Automation applications. aosong has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub.

Python package that provides support for AOSONG Sensor. This package and it's modules have been organized to support additional AOSONG sensors. It currently only supports the AM2315 Temperature and Humidity Sensor. Additional sensors are encouraged and welcomed. Please submit a Pull Request. The original author of this library was Sopwith. This repository was originally forked from the code provided by the author on their blog. The purpose of the repository is to provide a pythonic library that can be installed with pip and setuptools.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              aosong has a low active ecosystem.
              It has 6 star(s) with 3 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              aosong has no issues reported. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of aosong is current.

            kandi-Quality Quality

              aosong has 0 bugs and 0 code smells.

            kandi-Security Security

              aosong has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              aosong code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              aosong is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              aosong releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              It has 162 lines of code, 18 functions and 5 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed aosong and discovered the below as its top functions. This is intended to give you an instant insight into aosong implemented functionality, and help decide if they suit your requirements.
            • Return the temperature in degrees
            • Read the data from the device
            • Convert celsius to fahrenheit
            • Get current temperature
            • Verify the CRC of a single character
            • Return the contents of a file
            • Return the temperature in celsius
            Get all kandi verified functions for this library.

            aosong Key Features

            No Key Features are available at this moment for aosong.

            aosong Examples and Code Snippets

            No Code Snippets are available at this moment for aosong.

            Community Discussions

            QUESTION

            AM2320 Sensor: CRCs doesn't match, CRC from sensor(0)
            Asked 2019-Feb-22 at 14:43

            Note: Code is cross-compiled in windows 10.

            Code:

            ...

            ANSWER

            Answered 2019-Feb-22 at 14:43

            Seems there was an issue with the library itself which was making two reads, but because the read code was not sent the values came as 0, as it can be seen in the logs:

            Source https://stackoverflow.com/questions/54652302

            QUESTION

            Temperature sensor not working
            Asked 2017-Sep-20 at 17:00

            Greetins,

            I recently bought a temperature & humidity sensor (aosong am2302). I hooked it to a rasp pi 3 and it works like charm with the adafruit library. The problem comes when i try to make it work on another board (described here). I used this library for gpio reading. I modified the file of beaglebone for gpio mapping and that's it. I run the tests and they work, so basically the lib looks like it works. So after that, I code the sensor reader and it doesnt work and I dont know why. After I run the sensor reader, If I check the file system, the gpio is exported.

            The sensor is installed like this: -Power to 5V (also tried with 3.3v) -VCC to gpio -Ground to GND.

            and here the code

            ...

            ANSWER

            Answered 2017-Sep-20 at 17:00

            Some things to try that might get you going....

            1. First increase the counter "counter++>10000" to something much larger, It could be that the new processor you are running increments the counter at a much faster rate and you just timeout before the pin drops.

            2. If that doesn't work remove the timeout counter and loop forever in your source, also remove the sensor, then physically pull the data line to ground with a piece of wire and see if your code/new processor catches the signal change, at least then you know your source/hardware is configured correctly so you can focus your efforts elsewhere.

            3. Double check the voltage compatibility between your new processor 'high' level and what the sensors 'high' threshold is to ensure it is catching a 'one' on the data line.

            4. Lettus know how you go!

            Tony

            Source https://stackoverflow.com/questions/46324018

            QUESTION

            How to assemble a float from two bytes?
            Asked 2017-May-20 at 09:46

            I am currently working on a project where I need to read out a DHT11 humidity and temperature sensor. The communication between the MCU and the serial device is quite low-level, but I managed to receive the measured values (humidity+temperature) as a byte array of length 4 (the 5th byte is the checksum):

            Values that I receive from the DHT11 sensor:

            ...

            ANSWER

            Answered 2017-May-20 at 09:46

            Unfortunately, both examples provided in the linked data sheet send zero for the decimal part. However, it appears from the description that the data from the upper byte can be added to the data from the lower byte divided by 256 (the number of states in the decimal portion of data):

            Source https://stackoverflow.com/questions/44084276

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install aosong

            You can download it from GitHub.
            You can use aosong like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            Pull requests and Issues are welcome!. Otherwise, please feel free to report bugs, comments, enhancement requests to: sopwith@ismellsmoke.net http://sopwith.ismellsmoke.net.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/roder/aosong.git

          • CLI

            gh repo clone roder/aosong

          • sshUrl

            git@github.com:roder/aosong.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Python Libraries

            public-apis

            by public-apis

            system-design-primer

            by donnemartin

            Python

            by TheAlgorithms

            Python-100-Days

            by jackfrued

            youtube-dl

            by ytdl-org

            Try Top Libraries by roder

            riakaws

            by roderRuby

            cozir

            by roderC++

            geppeto

            by roderRuby