Search found 7 matches

by badabustyhh
Sunday 27 September 2020 20:57
Forum: Python
Topic: DHT22 stops reading after few hours script change
Replies: 1
Views: 1200

Re: DHT22 stops reading after few hours script change

sorry i think this is the scipt im using to update the data

#!/usr/bin/python
# coding: utf-8
import sys
import Adafruit_DHT
import urllib
#from urllib import request

# parameters
DHT_type = 22
OneWire_pin = 4
room_temp_idx = 1
url_json = "http://192.168.0.10:8080/json.htm?type=command&param ...
by badabustyhh
Sunday 27 September 2020 20:49
Forum: Bash / PowerShell / Batch etc.
Topic: Raspberry Pi hardware PWM fan control and monitoring
Replies: 1
Views: 3746

Re: Raspberry Pi hardware PWM fan control and monitoring

Hey, i found your tutorial (at first thanks for that) puttet everything together but there is a problem when i test the script.

pi@raspberrypi:~ $ sudo /usr/local/bin/fancontrol.sh
/usr/local/bin/fancontrol.sh: Zeile 38: interval: Kommando nicht gefunden.
sleep: fehlender Operand
„sleep --help ...
by badabustyhh
Sunday 27 September 2020 20:29
Forum: Python
Topic: DHT22 stops reading after few hours script change
Replies: 1
Views: 1200

DHT22 stops reading after few hours script change

Hey guys,

i got the dht22 running with a switch in domoticz, works fine but after 6 hours it stops working and data goes to 0
i googled and found a solution (at least thats whatt i think) but im not able to conect the scripts :?: This seems to be the solution

As fas as I am aware this is a fairly ...
by badabustyhh
Tuesday 07 July 2020 19:22
Forum: LUA
Topic: DHT22 humidity > 50 switch on ?! I am giving up
Replies: 8
Views: 1100

Re: DHT22 humidity > 50 switch on ?! I am giving up

f** yeah it works :D :D :D :D :D

thank you so much guys, Jos u gave the final Tip man, think this was the hook i was hangin on for a week.

muchas gracias

and to you freijn too for the script man.

BIG Up !!!

should load this up to github as a project to help others?

Peace out one love
by badabustyhh
Tuesday 07 July 2020 2:05
Forum: LUA
Topic: DHT22 humidity > 50 switch on ?! I am giving up
Replies: 8
Views: 1100

Re: DHT22 humidity > 50 switch on ?! I am giving up

it worked, it turned the switch on 1 time. i changed values and saved it again. turned the lamp off manually restarted, no action. cronjob was created. when i run the script in cmd

~/domoticz/scripts/lua $ lua solar.lua
lua: solar.lua:17: attempt to index global 'otherdevices_temperature' (a nil ...
by badabustyhh
Monday 06 July 2020 21:33
Forum: LUA
Topic: DHT22 humidity > 50 switch on ?! I am giving up
Replies: 8
Views: 1100

Re: DHT22 humidity > 50 switch on ?! I am giving up

Thanks 4 helpin out.

I shortend/change it cause it has a "relative startpoint"it checks humidity now and if there is a special amount of raise it switches on. but its not possible to say at 60% start and under 50% stop. so i tried to break it down to the "at least needed functions".

i just got ...
by badabustyhh
Monday 06 July 2020 18:16
Forum: LUA
Topic: DHT22 humidity > 50 switch on ?! I am giving up
Replies: 8
Views: 1100

DHT22 humidity > 50 switch on ?! I am giving up

Hey Guys,

Im not sure where the problem is, i already played around for hours but im kinda stuck.
I did a little project on raspberry a few years ago, but seems like i forgot almost everything.


I am tryin to set a switch on or off at a certain humidity, i tried it with blockly and it once ...