# balenasense with Enviro+

**URL:** <https://forums.balena.io/t/balenasense-with-enviro/97612>\
**Category:** Product support\
**Created:** [April 22, 2020, 4:02pm UTC](https://forums.balena.io/t/balenasense-with-enviro/97612 "2020-04-22T16:02:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sirbondness](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sirbondness/32/3546_2.png) [@sirbondness](https://forums.balena.io/u/sirbondness)\
**Post date:** [April 22, 2020, 4:02pm UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/1 "2020-04-22T16:02:25Z")

</div>

I wanted to ask if you could change the Temp readings from the Enviro+ with a raspi Zero W to remove the rapsi temp spreading to the Enviro Temp sensor ?

i love your project and using it to track the weather outside only the temps that are read from the Enviro are not accurate as the rapsi is producing a bit of heat that is given to the sensor of the enviro.

if there is a fix already in place could you point me to that ?

Thank you for this project (as this is the only one that is also fancy on a screen :))

---

<div class="post-metadata">

**Author:** ![sirbondness](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sirbondness/32/3546_2.png) [@sirbondness](https://forums.balena.io/u/sirbondness)\
**Post date:** [April 22, 2020, 5:30pm UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/2 "2020-04-22T17:30:35Z")

</div>

as a small addition pimorino itself works with this:

# Tuning factor for compensation. Decrease this number to adjust the

# temperature down, and increase to adjust up

factor = 2.25

thats from there examples coming with the enviro+ installation under raspbian

---

<div class="post-metadata">

**Author:** ![mbalamat](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mbalamat/32/1245_2.png) [@mbalamat](https://forums.balena.io/u/mbalamat)\
**Post date:** [April 22, 2020, 9:24pm UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/3 "2020-04-22T21:24:14Z")

</div>

Hi @sirbondness and welcome to our forums! Are you running the balenaSense project?

---

<div class="post-metadata">

**Author:** ![sirbondness](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sirbondness/32/3546_2.png) [@sirbondness](https://forums.balena.io/u/sirbondness)\
**Post date:** [April 23, 2020, 4:41am UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/5 "2020-04-23T04:41:21Z")

</div>

Hi !

yes i do

---

<div class="post-metadata">

**Author:** ![rcooke-warwick](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@rcooke-warwick](https://forums.balena.io/u/rcooke-warwick)\
**Post date:** [April 23, 2020, 8:07am UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/7 "2020-04-23T08:07:53Z")

</div>

Hi there, thanks for using the project, we’re glad that you like it!

The project supports offsetting of the measured values before they are recorded in the database. To offset temperature, add a balenaCloud environment variable called `BALENASENSE_TEMP_OFFSET` , and add an offset in degrees C. Hopefully this will allow you to tune your setup to take the Pi temperature into account.

Let us know if this would be of help, thanks.

---

<div class="post-metadata">

**Author:** ![sirbondness](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sirbondness/32/3546_2.png) [@sirbondness](https://forums.balena.io/u/sirbondness)\
**Post date:** [April 23, 2020, 8:42am UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/9 "2020-04-23T08:42:43Z")

</div>

Heya 🙂

yeah i did that, i just thought this could get into consideration as mostly the enviro+ is used as a PHAT so i was wondering if this could be implemented in the python from the start, as you anyway have a own python script for the enviro+

Thanks for this great project anyway 🙂

---

<div class="post-metadata">

**Author:** ![sirbondness](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sirbondness/32/3546_2.png) [@sirbondness](https://forums.balena.io/u/sirbondness)\
**Post date:** [April 23, 2020, 9:14am UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/11 "2020-04-23T09:14:23Z")

</div>

me again…i just facing a bigger concerning problem right now. If i should open a new thread, please let me know…

when i first deploy the balena-sense repo as descripted in your blog post here:

> **[Build an air quality monitor with InfluxDB, Grafana, and Docker on a...](https://www.balena.io/blog/build-an-environment-and-air-quality-monitor-with-raspberry-pi/)**
>
> Updated 9th January 2020 - You can now add multiple projects to the same device. Try combining balenaSense with another project -- oh the possibilities! Updated 3rd January 2020 - Now includes MQTT support Have you ever been interested in monitoring...

it works perfectly and flawless until i reboot, after a reboot the containers not coming up anymore and the supervisor is not able to start anymore.

Apr 23 09:12:27 90cb70b avahi-daemon[820]: Registering new address record for fe80::e844:bff:fe32:2c7f on veth2800dbc._.  
Apr 23 09:12:27 90cb70b NetworkManager[829]: [1587633147.9688] device (veth0f15937): carrier: link connected  
Apr 23 09:12:29 90cb70b avahi-daemon[820]: Joining mDNS multicast group on interface veth0f15937.IPv6 with address fe80::3409:e9ff:fe99:f6d1.  
Apr 23 09:12:29 90cb70b avahi-daemon[820]: New relevant interface veth0f15937.IPv6 for mDNS.  
Apr 23 09:12:29 90cb70b avahi-daemon[820]: Registering new address record for fe80::3409:e9ff:fe99:f6d1 on veth0f15937._.  
Apr 23 09:12:32 90cb70b systemd[1]: resin-supervisor.service: Start-pre operation timed out. Terminating.  
Apr 23 09:12:32 90cb70b systemd[1]: resin-supervisor.service: Control process exited, code=killed, status=15/TERM  
Apr 23 09:12:32 90cb70b resin-supervisor[8361]: activating  
Apr 23 09:12:32 90cb70b systemd[1]: resin-supervisor.service: Control process exited, code=exited, status=3/NOTIMPLEMENTED  
Apr 23 09:12:32 90cb70b systemd[1]: resin-supervisor.service: Failed with result ‘timeout’.  
Apr 23 09:12:32 90cb70b systemd[1]: Failed to start Balena supervisor.  
Apr 23 09:12:32 90cb70b systemd[1]: balena.service: Start operation timed out. Terminating.  
Apr 23 09:12:32 90cb70b balenad[7625]: time=“2020-04-23T09:12:32.944253882Z” level=info msg=“Processing signal ‘terminated’”  
Apr 23 09:12:34 90cb70b kernel: eth0: renamed from veth34366cc  
Apr 23 09:12:35 90cb70b kernel: IPv6: ADDRCONF(NETDEV\_CHANGE): veth66b01c3: link becomes ready  
Apr 23 09:12:35 90cb70b kernel: br-3812f8442a5a: port 7(veth66b01c3) entered blocking state  
Apr 23 09:12:35 90cb70b kernel: br-3812f8442a5a: port 7(veth66b01c3) entered forwarding state  
Apr 23 09:12:35 90cb70b NetworkManager[829]: [1587633155.1265] device (veth66b01c3): carrier: link connected  
Apr 23 09:12:36 90cb70b avahi-daemon[820]: Joining mDNS multicast group on interface veth66b01c3.IPv6 with address fe80::e8ee:31ff:fe49:7fe4.  
Apr 23 09:12:36 90cb70b avahi-daemon[820]: New relevant interface veth66b01c3.IPv6 for mDNS.  
Apr 23 09:12:36 90cb70b avahi-daemon[820]: Registering new address record for fe80::e8ee:31ff:fe49:7fe4 on veth66b01c3.\*.

it goes in a loop were it tries to restart the services over and over again. I also tried to first stop the services and reboot afterwards, still the same problem.

iam running this on a raspi Zero W with a Enviro+

any idea what could cause this ?

---

<div class="post-metadata">

**Author:** ![rcooke-warwick](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@rcooke-warwick](https://forums.balena.io/u/rcooke-warwick)\
**Post date:** [April 23, 2020, 9:59am UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/12 "2020-04-23T09:59:46Z")

</div>

Hello again, has anything at all changed in your setup before the reboot?

Have you tried power cycling the device? If it is still unstable let us know and we can investigate further, thanks.

---

<div class="post-metadata">

**Author:** ![sirbondness](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sirbondness/32/3546_2.png) [@sirbondness](https://forums.balena.io/u/sirbondness)\
**Post date:** [April 23, 2020, 10:22am UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/14 "2020-04-23T10:22:54Z")

</div>

nothing changed, fresh deploy first restart, the problem appears.

power cycling doesnt help, after fresh deployment , stopping services and reboot same issue.

only on first deployment all is working as expected…mhhh only thing i changed is the password for the grafana login on the webinterface…i will try without changing it and restart and let you know.

---

<div class="post-metadata">

**Author:** ![sirbondness](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sirbondness/32/3546_2.png) [@sirbondness](https://forums.balena.io/u/sirbondness)\
**Post date:** [April 23, 2020, 12:40pm UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/16 "2020-04-23T12:40:30Z")

</div>

ok so even on a fresh install, no changes done before a reboot and it doesnt come back on anymore, the pi itself is reachable, only the services doesnt start anymore

root@d953477:~# journalctl -xe  
Apr 23 12:41:02 d953477 systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.  
Apr 23 12:41:02 d953477 systemd[1]: balena.service: Found left-over process 3269 (balena-engine-c) in control group while starting unit. Ignorin\>  
Apr 23 12:41:02 d953477 systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.  
Apr 23 12:41:02 d953477 systemd[1]: balena.service: Found left-over process 3277 (balena-engine-c) in control group while starting unit. Ignorin\>  
Apr 23 12:41:02 d953477 systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.  
Apr 23 12:41:02 d953477 systemd[1]: balena.service: Found left-over process 3298 (balena-engine-c) in control group while starting unit. Ignorin\>  
Apr 23 12:41:02 d953477 systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.  
Apr 23 12:41:02 d953477 systemd[1]: balena.service: Found left-over process 3343 (balena-engine-c) in control group while starting unit. Ignorin\>  
Apr 23 12:41:02 d953477 systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.  
Apr 23 12:41:02 d953477 systemd[1]: balena.service: Found left-over process 3698 (balena-engine-r) in control group while starting unit. Ignorin\>  
Apr 23 12:41:02 d953477 systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.  
Apr 23 12:41:02 d953477 systemd[1]: balena.service: Found left-over process 3701 (balena-engine-r) in control group while starting unit. Ignorin\>  
Apr 23 12:41:02 d953477 systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.  
Apr 23 12:41:02 d953477 systemd[1]: balena.service: Found left-over process 3704 (balena-engine-r) in control group while starting unit. Ignorin\>  
Apr 23 12:41:02 d953477 systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.  
Apr 23 12:41:02 d953477 systemd[1]: balena.service: Found left-over process 3743 (balena-engine) in control group while starting unit. Ignoring.  
Apr 23 12:41:02 d953477 systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.  
Apr 23 12:41:02 d953477 systemd[1]: balena.service: Found left-over process 3744 (balena-engine) in control group while starting unit. Ignoring.  
Apr 23 12:41:02 d953477 systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.  
Apr 23 12:41:02 d953477 systemd[1]: balena.service: Found left-over process 3745 (balena-engine) in control group while starting unit. Ignoring.  
Apr 23 12:41:02 d953477 systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.

---

<div class="post-metadata">

**Author:** ![sradevski](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sradevski/32/1609_2.png) [@sradevski](https://forums.balena.io/u/sradevski)\
**Post date:** [April 24, 2020, 7:51am UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/17 "2020-04-24T07:51:30Z")

</div>

Hi there, can you please try running diagnostics on the device? From the device page, you can go to the “Diagnostics” side menu, and run the checks from there. Also, can you please share the OS and supervisor version? Thanks!

---

<div class="post-metadata">

**Author:** ![sirbondness](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sirbondness/32/3546_2.png) [@sirbondness](https://forums.balena.io/u/sirbondness)\
**Post date:** [April 24, 2020, 8:16am UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/20 "2020-04-24T08:16:26Z")

</div>

Heya 🙂

sure !

SuperVisor Version is 10.8.0  
OS Version is: balenaOS 2.48.0+rev1

 ![Unbenannt](https://global.discourse-cdn.com/balena/original/2X/1/16b0eba308ff0fab8687715f426d936dfbc3af92.png)

---

<div class="post-metadata">

**Author:** ![sradevski](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sradevski/32/1609_2.png) [@sradevski](https://forums.balena.io/u/sradevski)\
**Post date:** [April 24, 2020, 8:32am UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/21 "2020-04-24T08:32:44Z")

</div>

I think we’ll need to do further investigation, can you please enable support access and share the device UUID with us? You can send it to me in a private message, and I’ll check it out.

---

<div class="post-metadata">

**Author:** ![sirbondness](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sirbondness/32/3546_2.png) [@sirbondness](https://forums.balena.io/u/sirbondness)\
**Post date:** [April 24, 2020, 8:40am UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/22 "2020-04-24T08:40:42Z")

</div>

done ! 🙂

---

<div class="post-metadata">

**Author:** ![robertgzr](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/robertgzr/32/1387_2.png) [@robertgzr](https://forums.balena.io/u/robertgzr)\
**Post date:** [April 24, 2020, 10:39am UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/26 "2020-04-24T10:39:29Z")

</div>

Hi,

I think I managed to fix up your device. I can’t say for sure but it looks like some bad interaction with the container runtime… what worries me is that it reads like you managed to reproduce this multiple times with a cleanly flashed device.

I am continuing to monitor the device until all services are running again.

---

<div class="post-metadata">

**Author:** ![robertgzr](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/robertgzr/32/1387_2.png) [@robertgzr](https://forums.balena.io/u/robertgzr)\
**Post date:** [April 24, 2020, 10:57am UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/27 "2020-04-24T10:57:47Z")

</div>

It all looks good now. If you could power-cycle the device again to see what’s going to happen that would be much appreciated.

---

<div class="post-metadata">

**Author:** ![sirbondness](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sirbondness/32/3546_2.png) [@sirbondness](https://forums.balena.io/u/sirbondness)\
**Post date:** [April 24, 2020, 10:58am UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/28 "2020-04-24T10:58:35Z")

</div>

will do ! will let you know

---

<div class="post-metadata">

**Author:** ![sirbondness](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sirbondness/32/3546_2.png) [@sirbondness](https://forums.balena.io/u/sirbondness)\
**Post date:** [April 24, 2020, 11:07am UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/30 "2020-04-24T11:07:19Z")

</div>

a powercycle brings the same problem back :-/

---

<div class="post-metadata">

**Author:** ![robertgzr](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/robertgzr/32/1387_2.png) [@robertgzr](https://forums.balena.io/u/robertgzr)\
**Post date:** [April 24, 2020, 11:25am UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/31 "2020-04-24T11:25:11Z")

</div>

To reiterate you get this every time after a clean flash \> power cycle ?

---

<div class="post-metadata">

**Author:** ![sirbondness](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sirbondness/32/3546_2.png) [@sirbondness](https://forums.balena.io/u/sirbondness)\
**Post date:** [April 24, 2020, 11:26am UTC](https://forums.balena.io/t/balenasense-with-enviro/97612/32 "2020-04-24T11:26:27Z")

</div>

correct and it doesnt matter what kind of reboot (power cycle, stop services, use the reboot button or the shutdown) evrytime the system comes back up it cant start the services anymore.

[Next page](https://forums.balena.io/t/balenasense-with-enviro/97612.md?page=2)
