GithubHelp home page GithubHelp logo

timothybrown / bsec-conduit Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 11.0 146 KB

A first class Systemd process which acts as a conduit between between BSEC Library and MQTT.

License: MIT License

Python 100.00%

bsec-conduit's People

Contributors

timothybrown avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bsec-conduit's Issues

Failed to start BSEC-Conduit Daemon

I tried to setup your code but stuck at the end with to above mentioned message after using:
sudo systemctl start bsec-conduit.service; journalctl -f -u bsec-conduit.service

I am trying to summarize my setup: I have HA installed on a Pi 3+ using the "Manual installation on a Raspberry Pi" from the HA docs page. Due to this installation my homeassistant user doesn't have a password, so he can't run sudo commands (I am fairly new to the Pi / Linux stuff). Therefore I did running the intall.py as user pi.
I run a MQTT broker on my QNAP NAS, no need for user and passoword for that.
I did not recognize that I need the python-systemd & paho.mqtt so I went thru the installation getting the error message from above. After that I installed the pyhton-sytemd & paho.mqtt using the pip3 command (apt-get didn't work) getting the same error message again.
Let me know if I should try using the internal HA MQTT broker, or if you need some more information. Would be great if we could get it running on my Pi :-) I really apreciate your work! Thanks again.

2018-11-13 1

Cant Find File

hi there,
seems the file location might have changed. Getting the following issue

Traceback (most recent call last):ive...
File "install.py", line 43, in
with urllib.request.urlopen('{}/{}.zip'.format(bsec_url, bsec_ver)) as response, open(bsec_zip, 'wb') as out_file:
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.7/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/usr/lib/python3.7/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

ImportError: cannot import name 'journal' from 'systemd'

Followed the steps, however, can't get past this error.
Any ideas?

(bsec) pi@raspberrypizero:/opt/bsec $ sudo systemctl start bsec-conduit.service; journalctl -f -u bsec-conduit.service
Job for bsec-conduit.service failed because the control process exited with error code.
See "systemctl status bsec-conduit.service" and "journalctl -xe" for details.
-- Logs begin at Sat 2019-11-02 22:17:02 GMT. --
Nov 02 23:49:09 raspberrypizero systemd[1]: bsec-conduit.service: Succeeded.
Nov 02 23:49:09 raspberrypizero systemd[1]: Stopped BSEC-Conduit Daemon.
Nov 02 23:55:58 raspberrypizero systemd[1]: Starting BSEC-Conduit Daemon...
Nov 02 23:55:59 raspberrypizero python3[782]: Traceback (most recent call last):
Nov 02 23:55:59 raspberrypizero python3[782]: File "/opt/bsec/bsec-conduit", line 37, in
Nov 02 23:55:59 raspberrypizero python3[782]: from systemd import journal
Nov 02 23:55:59 raspberrypizero python3[782]: ImportError: cannot import name 'journal' from 'systemd' (/home/pi/.local/lib/python3.7/site-packages/systemd/init.py)
Nov 02 23:56:00 raspberrypizero systemd[1]: bsec-conduit.service: Main process exited, code=exited, status=1/FAILURE
Nov 02 23:56:00 raspberrypizero systemd[1]: bsec-conduit.service: Failed with result 'exit-code'.
Nov 02 23:56:00 raspberrypizero systemd[1]: Failed to start BSEC-Conduit Daemon.
Nov 02 23:56:05 raspberrypizero systemd[1]: bsec-conduit.service: Service RestartSec=5s expired, scheduling restart.
Nov 02 23:56:05 raspberrypizero systemd[1]: bsec-conduit.service: Scheduled restart job, restart counter is at 1.
Nov 02 23:56:05 raspberrypizero systemd[1]: Stopped BSEC-Conduit Daemon.

IAQ always 0

Hello Timothy,

I´ve been running your BSEC Conduit for quite a while now and it´s working stable.

However, the IAQ returned by it to home assistant is always 0.0

Have you had this problem as well? What could be the issue?

sudo systemctl start bsec-conduit.service; journalctl -f -u b sec-conduit.service -- Logs begin at Thu 2016-11-03 18:16:42 CET. -- Dez 28 14:25:54 RaspPi-Ni-2 systemd[1]: Starting BSEC-Conduit Daemon... Dez 28 14:25:54 RaspPi-Ni-2 BSEC-Conduit[12418]: BSEC-Conduit v0.3.4 Dez 28 14:25:54 RaspPi-Ni-2 BSEC-Conduit[12418]: Generated MQTT Client ID: BME68 0-9D57DF51 Dez 28 14:25:54 RaspPi-Ni-2 BSEC-Conduit[12418]: Generated MQTT Base Topic: Rasp Pi-Ni-2/BME680 Dez 28 14:25:55 RaspPi-Ni-2 BSEC-Conduit[12418]: Connected to MQTT Broker. Dez 28 14:25:56 RaspPi-Ni-2 BSEC-Conduit[12418]: Found existing BSEC-Library exe cutable, skipping build. Dez 28 14:25:56 RaspPi-Ni-2 BSEC-Conduit[12418]: Using existing BSEC-Library con figuration [generic_33v_3s_4d]. Dez 28 14:25:56 RaspPi-Ni-2 BSEC-Conduit[12418]: Found existing BSEC-Library sta te file, skipping creation. Dez 28 14:25:56 RaspPi-Ni-2 BSEC-Conduit[12418]: BSEC-Library started. Dez 28 14:25:56 RaspPi-Ni-2 systemd[1]: Started BSEC-Conduit Daemon.

image

Thank you for your work!
Max

temp_offset values are inverted

Hi! The temp_offset values seem to be inverted. I used -10.0 and the temperature got 10 degrees higher instead of getting lower.

Now, I have it at 10.0 and it shows as I'd expect.

NEW Library unsupported

Your software is amazing!! Is it possible to update the code to support the latest library please?

Bosch just released version v1.4.7.4, and now after upgrading I'm getting this error message:

Captura de Pantalla 2019-07-10 a la(s) 14 36 44

I would appreciate your help. :)

sudo python3 install.py fails

I get the following when I run sudo python3 install.py:


************************** BSEC-Conduit Installer **************************


Install Location: /opt/bsec
Press CTRL-C to abort. Starting in 1...

Bosch Sensortec Environmental Cluster (BSEC) Setup
Traceback (most recent call last):ive...
File "install.py", line 43, in
with urllib.request.urlopen('{}/{}.zip'.format(bsec_url, bsec_ver)) as response, open(bsec_zip, 'wb') as out_file:
File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.5/urllib/request.py", line 472, in open
response = meth(req, response)
File "/usr/lib/python3.5/urllib/request.py", line 582, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.5/urllib/request.py", line 510, in error
return self._call_chain(*args)
File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
result = func(*args)
File "/usr/lib/python3.5/urllib/request.py", line 590, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found


The previous commands seemed to go through properly. Anything I need to double check?
Thanks

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.