Search found 27 matches
- Thursday 18 May 2023 20:33
- Forum: Design, usability and languages
- Topic: custom sensor with 4 inputs
- Replies: 8
- Views: 6691
Re: custom sensor with 4 inputs
because i'm using a time series graph on grafana 
- Tuesday 16 May 2023 20:45
- Forum: Design, usability and languages
- Topic: custom sensor with 4 inputs
- Replies: 8
- Views: 6691
Re: custom sensor with 4 inputs
the full code for you, python2.7 on a raspberry pi using an atlas scientific K.1 ec probe :)
import io # used to create file streams
import fcntl # used to access I2C parameters like addresses
import time
import string # helps parse strings
import datetime as dt
import urllib2
idx1 = 19
url ...
import io # used to create file streams
import fcntl # used to access I2C parameters like addresses
import time
import string # helps parse strings
import datetime as dt
import urllib2
idx1 = 19
url ...
- Saturday 13 May 2023 15:02
- Forum: Design, usability and languages
- Topic: custom sensor with 4 inputs
- Replies: 8
- Views: 6691
Re: custom sensor with 4 inputs
an idea, but i ended up with 4 custom sensors in the end & some copying and pasting ;)
ecvalue1 =values[0]
ecvalue2 =values[1]
ecvalue3 =values[2]
ecvalue4 =values[3]
cmd1 = url_json1 + str(idx1) + "&nvalue=0&svalue="+ecvalue1+";"
print (cmd1)
hf1 = urllib2.urlopen(cmd1)
hf1.close
time ...
ecvalue1 =values[0]
ecvalue2 =values[1]
ecvalue3 =values[2]
ecvalue4 =values[3]
cmd1 = url_json1 + str(idx1) + "&nvalue=0&svalue="+ecvalue1+";"
print (cmd1)
hf1 = urllib2.urlopen(cmd1)
hf1.close
time ...
- Friday 12 May 2023 17:31
- Forum: Design, usability and languages
- Topic: custom sensor with 4 inputs
- Replies: 8
- Views: 6691
custom sensor with 4 inputs
i have an ec probe which gives me conductivity, ppm, salinity & specific gravity
i can't see a way of sending all 4 to one dummy sensor ?
i could set up 4 custom sensors & then split the data in the one script and send 4 times but that seems inefficiant
i can't see a way of sending all 4 to one dummy sensor ?
i could set up 4 custom sensors & then split the data in the one script and send 4 times but that seems inefficiant
- Monday 09 May 2022 13:43
- Forum: Other questions and discussions
- Topic: TEMPERATURE SENSING
- Replies: 2
- Views: 305
Re: TEMPERATURE SENSING
i use a python3 script: (originally used on 2 ds18b)
import os
import glob
import time
from datetime import datetime
import urllib.request
########################
# Set up all variables #
########################
#allows use of the sensors
os.system('modprobe w1-gpio')
os.system('modprobe w1 ...
import os
import glob
import time
from datetime import datetime
import urllib.request
########################
# Set up all variables #
########################
#allows use of the sensors
os.system('modprobe w1-gpio')
os.system('modprobe w1 ...
- Monday 09 May 2022 12:34
- Forum: Other questions and discussions
- Topic: crontab doesn't change switch status
- Replies: 1
- Views: 174
Re: crontab doesn't change switch status
i should add that when the crontab runs it starts & stops the pump fine - there's no change in domoticz dashboard though
- Monday 09 May 2022 12:33
- Forum: Other questions and discussions
- Topic: crontab doesn't change switch status
- Replies: 1
- Views: 174
crontab doesn't change switch status
i have a python script which turns a pump on & off and changes the status in domoticz:
cmd1 = "http://192.168.1.150:8080/json.htm?type=command¶m=switchlight&idx=115&switchcmd=On"
hf1 = urllib.request.urlopen(cmd1)
hf1.close
when i run the script from command line the status changes fine, but ...
cmd1 = "http://192.168.1.150:8080/json.htm?type=command¶m=switchlight&idx=115&switchcmd=On"
hf1 = urllib.request.urlopen(cmd1)
hf1.close
when i run the script from command line the status changes fine, but ...
- Wednesday 19 January 2022 19:38
- Forum: Temperature and Weather
- Topic: weather sensors not being updated on dashboard
- Replies: 2
- Views: 597
Re: weather sensors not being updated on dashboard
i only just added them - the dashboard has a bunch of sensors & it's only the "weather" ones that don't update the "last seen" unless i switch to and back from the weather tab and then they update with the last update - to clarify - they *do* update in realtime on ather tab, just not on the ...
- Wednesday 19 January 2022 15:37
- Forum: Temperature and Weather
- Topic: weather sensors not being updated on dashboard
- Replies: 2
- Views: 597
weather sensors not being updated on dashboard
weather sensors (bme280 & a digital uv sensor) not being updated on the main dashboard - they are being updated ok in the weather tab but not dashboard
if i go to weather tab and *then* back to dashboard, the dashboard shows the new readings
ideas ?
if i go to weather tab and *then* back to dashboard, the dashboard shows the new readings
ideas ?
- Saturday 30 October 2021 13:42
- Forum: Temperature and Weather
- Topic: htu31 support ?
- Replies: 2
- Views: 442
Re: htu31 support ?
the htu21 and a couple of other i2c sensors are supported...
- Friday 29 October 2021 17:20
- Forum: Temperature and Weather
- Topic: htu31 support ?
- Replies: 2
- Views: 442
htu31 support ?
i have a couple of the new htu31d temp/humidity sensors and they work great but it seems no support in domoticz yet ?
- Thursday 24 December 2020 16:10
- Forum: Dashticz
- Topic: show y-axis labels on the right of graph
- Replies: 9
- Views: 944
Re: show y-axis labels on the right of graph
thanks, just fyi - it overwrote the custom.js & custom.css files in custom folder - which seems odd (i did a backup before upgrading
)
- Wednesday 23 December 2020 17:38
- Forum: Dashticz
- Topic: show y-axis labels on the right of graph
- Replies: 9
- Views: 944
Re: show y-axis labels on the right of graph
around line 2100 getting rid of the dew point display
if (typeof device['DewPoint'] !== 'undefined') {
if (single_block) {
blockValues[0].value +=
' '; // + number_format(device['DewPoint'], 1) + ' °';
} else {
no big deal, just wondering :)
noob, how do i implement that new beta and where ...
if (typeof device['DewPoint'] !== 'undefined') {
if (single_block) {
blockValues[0].value +=
' '; // + number_format(device['DewPoint'], 1) + ' °';
} else {
no big deal, just wondering :)
noob, how do i implement that new beta and where ...
- Wednesday 23 December 2020 16:47
- Forum: Dashticz
- Topic: show y-axis labels on the right of graph
- Replies: 9
- Views: 944
Re: show y-axis labels on the right of graph
b*lls, doesn't work for me (i haven't updated to v3.7 as i have some custom changes in a couple of js files (not related to graphs))
if i update will it over-write (cosmestic) changes i made in blocks.js or blocktypes.js ?
if i update will it over-write (cosmestic) changes i made in blocks.js or blocktypes.js ?
- Wednesday 23 December 2020 14:33
- Forum: Dashticz
- Topic: show y-axis labels on the right of graph
- Replies: 9
- Views: 944
show y-axis labels on the right of graph
i have an embedded graph but would like to show the labels on the right not the left as to me it makes more sense to see the current data and not have to trace across from the left side
is this possible (i dont mind if it's moved & only on the right but preferable to show y axis on both left and ...
is this possible (i dont mind if it's moved & only on the right but preferable to show y axis on both left and ...
- Thursday 29 October 2020 12:36
- Forum: Dashticz
- Topic: Dashticz External Access
- Replies: 18
- Views: 3293
Re: Dashticz External Access
if anyone manages to get a system working without opening ports on a router could they do a little simple tutorial on this as i imagine more & more ppl will be needing this 
- Monday 26 October 2020 14:19
- Forum: Dashticz
- Topic: Dashticz External Access
- Replies: 18
- Views: 3293
Re: Dashticz External Access
hi fargie - could you explain how you installed openvpn to be able to see dashticz externally (i'm currently using remote.it to be able to see domoticz on 8080 remotely but when i try and add dashticz 8082 i get an error screen when the browser loads it (it runs the loading screen but then dashticz ...
- Monday 05 October 2020 23:59
- Forum: Dashticz
- Topic: can't auto install on pi zero - error & ends ssh session
- Replies: 6
- Views: 678
Re: can't auto install on pi zero - error & ends ssh session
nope - i forgot to reboot so did that, checked domoticz is running - nada on 153:8082
thanks, but it's now midnight, need to do some backup images - giving up this for the day
thanks, but it's now midnight, need to do some backup images - giving up this for the day
- Monday 05 October 2020 23:39
- Forum: Dashticz
- Topic: can't auto install on pi zero - error & ends ssh session
- Replies: 6
- Views: 678
Re: can't auto install on pi zero - error & ends ssh session
naaaah that doesn't work
i checked the /custom/CONFIG.js details are correct but nope - can't be arsed to faff about with it (which is a shame as it looks great for what i want to do but don't need the headache)
Checking container dtv3-8082
Checking port 8082
sudo docker build --build-arg tz ...
i checked the /custom/CONFIG.js details are correct but nope - can't be arsed to faff about with it (which is a shame as it looks great for what i want to do but don't need the headache)
Checking container dtv3-8082
Checking port 8082
sudo docker build --build-arg tz ...
- Monday 05 October 2020 23:28
- Forum: Dashticz
- Topic: can't auto install on pi zero - error & ends ssh session
- Replies: 6
- Views: 678
Re: can't auto install on pi zero - error & ends ssh session
i saw that other thread, nothing worked for me either
great, i wont be using calendars so no probs
great, i wont be using calendars so no probs