Search found 38 matches

by Pjedr
Friday 16 September 2022 11:02
Forum: Temperature and Weather
Topic: different ways to determine average temperature ?
Replies: 6
Views: 1315

Re: different ways to determine average temperature ?

Did that years ago, also for humidity, wanted to calculate when i need to water the plans based on temp and hum, some code: #!/bin/bash DomoServer="nnn.nnn.nnn.nn:8080"; strUrl="http://$DomoServer/json.htm?type=graph&sensor=temp&idx=52&range=day" # TempVochtBaro Binnen #strCurl=`nice -n 10 curl -s ...
by Pjedr
Sunday 03 October 2021 2:32
Forum: dzVents
Topic: dzvents .json to device
Replies: 2
Views: 1138

Re: dzvents .json to device

I use "jq" for .json data, for example: battery_plugged=$(cat $sTempDir/wired_battery.json | jq -r '.data.attributes.plugStatus') if [ "$battery_plugged" == "1" ]; then battery_plugged='On'; else battery_plugged='Off'; fi sudo apt-get install jq Test it works! Try this to see it pretty print some ...
by Pjedr
Thursday 30 July 2020 22:54
Forum: Suggestions
Topic: Enhance round function in dzVents/runtime/Utils.lua
Replies: 6
Views: 1599

Re: Enhance round function in dzVents/runtime/Utils.lua

Ok, thanks, i will create my own helper functions in the global_data.lua so it is not overwritten when upgrading. In the meanwhile I also made a solution with flexible nearest numbers for example 5 20 25 33 50 75 200 500 function self.fNearest(value, nearest) local nVal=tonumber(value) bNearest = 0 ...
by Pjedr
Thursday 30 July 2020 16:51
Forum: Suggestions
Topic: Enhance round function in dzVents/runtime/Utils.lua
Replies: 6
Views: 1599

Re: Enhance round function in dzEvents/runtime/Utils.lua

My use case is that I have a text to voice function which uses free voicerss #VoiceRSS 350 free per day http://www.voicerss.org/personel/ So I need to limit the calls per day. I do do that by keeping the generated mp3 is in a cache. So I only get to voicerss when a line of tekst is not already in ...
by Pjedr
Thursday 30 July 2020 12:49
Forum: Suggestions
Topic: Enhance round function in dzVents/runtime/Utils.lua
Replies: 6
Views: 1599

Enhance round function in dzVents/runtime/Utils.lua

Hello folks, I just converted half of my lua scripts to dzVents scripts. In the domoticz.utils.round I mis the option to use negative decimals as a way to round on the left side of the indented point. -1 should round 3333.333 to 3330 -2 should round 3333.333 to 3300 -3 should round 3333.333 to 3000 ...
by Pjedr
Tuesday 19 November 2019 20:22
Forum: Utility
Topic: No data from sbfspot to Domoticz
Replies: 30
Views: 4149

Re: No data from sbfspot to Domoticz

My config is still working, maybe it helps you, comparing settings. # ____ ____ _____ _ # / ___|| __ )| ___|__ _ __ ___ | |_ # \___ \| _ \| |_ / __| '_ \ / _ \| __| # ___) | |_) | _|\__ \ |_) | (_) | |_ # |____/|____/|_| |___/ .__/ \___/ \__| # |_| ... # OutputPath (Place to store CSV files ...
by Pjedr
Sunday 30 December 2018 17:22
Forum: LUA
Topic: Volume control by dimmer
Replies: 1
Views: 677

Re: Volume control by dimmer

Maybe my script can help, it looks for changed device with a specific name, and if the value contains the word 'level' it extracts it and calculates a level for the soundlevel between 0 and max of 70 function round(num, idp) local mult = 10^(idp or 0) --Round number to identent point if num >= 0 ...
by Pjedr
Friday 21 December 2018 23:58
Forum: Python
Topic: New Python plugin for Logitech Harmony
Replies: 67
Views: 14133

Re: New Python plugin for Logitech Harmony

I am trying now XMPP supported firmware update 4.15.206 for developpers and local use only. An yes I can control my heating air conditioner and all multimedia again now via domoticz and google home mini connected via controlicz again. That was where I bought the "Harmony Ultimate" special for. Ps ...
by Pjedr
Sunday 02 December 2018 22:36
Forum: Speech & Voice Systems
Topic: Controlicz - Domoticz to Google Home/Assistant integration
Replies: 2277
Views: 488972

Re: Controlicz - Domoticz to Google Home/Assistant integration

https:\\Controlicz.com down? Aha after about 10 minutes it is up again.
by Pjedr
Thursday 28 June 2018 14:38
Forum: Examples & Solutions
Topic: Is the washing machine done?
Replies: 80
Views: 20476

Re: Is the washing machine done?

Ik doe dit al jaren met als groep4 (sGroep4Watt) langer dan een bepaalde tijd (timedifference) onder een bepaalde waarde (sElektrBoiler1Cap)) zit, is mijn water opgewarmd en kan de leidingwaterboiler (otherdevices['LeidingWaterBoiler 15 Liter']) uit, en zet ik een virtuele schakelaar (commandArray ...
by Pjedr
Monday 30 October 2017 18:08
Forum: Cameras
Topic: How add a camera in Dashboard?
Replies: 18
Views: 31311

Re: How add a camera in Dashboard?

Yeah that would be nice. I added the switch which turns on the camera. Now i receive mail, but camera is still turning on. I added the virtual switch which turns on when camara pings. Now i receive again an email, with picture if i select send picture as atachment in gmail. But i don't want email ...
by Pjedr
Tuesday 04 July 2017 12:36
Forum: Show your projects
Topic: Run time scripts at different intervals than every minute
Replies: 12
Views: 19097

Re: Run time scripts at different intervals than every minute

In case you are curriouse to my Ping.sh I use from the lua script: #!/bin/bash sDomoticzServer="192.168.192.234:8080"; #ping -q -c1 -W 1 ping -c3 -w5 $1 > /dev/null; if [ $? -eq 0 ]; then echo Node with IP: $1 is up. if [ "$2" == "On" ]; then echo Node with IP: $1 is nog steeds up.; else echo Node ...
by Pjedr
Tuesday 04 July 2017 12:32
Forum: Show your projects
Topic: Run time scripts at different intervals than every minute
Replies: 12
Views: 19097

Re: Run time scripts at different intervals than every minute

Try also using the nohup (no hang up) function and & at the end of your executions to start it in a new process. Then the lua scripts immidiatly continues, while the executions kan still go on, like pinging every few seconds every minute. So the time script does basically nothing else then lunching ...
by Pjedr
Friday 09 June 2017 23:54
Forum: Cameras
Topic: Foscam FI9928P PTZ control
Replies: 5
Views: 4045

Re: Foscam FI9928P PTZ control

TG_PjedrBot.sh #!/bin/bash if [ -e "/var/ramdrive/domoticz" ]; then RUNDIR="/var/ramdrive"; else RUNDIR="/opt/domoticz-extra/"; fi TEMPDIR="${RUNDIR}/temp"; LOGDIR="${RUNDIR}/log"; echo "`date` $*" >> ${LOGDIR}/${0##*/}.log; TOKEN=<your_telegram_token>; CHATID=<your_chat_id>; echo "Sending Telegram ...
by Pjedr
Friday 09 June 2017 23:51
Forum: Cameras
Topic: Foscam FI9928P PTZ control
Replies: 5
Views: 4045

Re: Foscam FI9928P PTZ control

I did it like this, with a foscam compatible camera: #!/bin/bash #Doorbell ringing, send telegram notification: if [ -e "/var/ramdrive/domoticz" ]; then RUNDIR="/var/ramdrive"; else RUNDIR="/opt/domoticz"; fi; TEMPDIR="${RUNDIR}/temp"; SCRIPTSDIR="${RUNDIR}/scripts" #wget -q --output-document ...
by Pjedr
Tuesday 04 April 2017 22:48
Forum: Z-Wave
Topic: zigbee compatibility
Replies: 19
Views: 17521

Re: zigbee compatibility

https://tweakers.net/nieuws/123149/ikea ... rland.html

It would be usefull for the new IKEA lights.
by Pjedr
Saturday 19 November 2016 18:14
Forum: Android
Topic: Domoticz app 2.0
Replies: 2380
Views: 617727

Re: Domoticz app 2.0

Hello, Selecting wear adjusted list is working again :lol: , after I fixed a negative Humidity % to a positive value. Also I had negative temperatures fixed. So the fault is in my own lua scripting, where I use Unix Time. I learned that midnight is the beginning of the day (I thought it was at the ...
by Pjedr
Tuesday 08 November 2016 22:30
Forum: Android
Topic: Domoticz app 2.0
Replies: 2380
Views: 617727

Re: Domoticz app 2.0

I cannot select wear adjusted list anymore on latest beta and latest domoticz development version.
by Pjedr
Friday 07 October 2016 21:35
Forum: Android
Topic: Domoticz app 2.0
Replies: 2380
Views: 617727

Re: Domoticz app 2.0

Hello,

I like the Domoticz Wear app, only it loads so slow and text size is much too small.
Now i have 527 devices, but only 50 enabled for wear.
by Pjedr
Sunday 28 August 2016 22:17
Forum: Language / Translation
Topic: Missing words on Transifex
Replies: 1
Views: 4169

Re: Missing words on Transifex

Yup, what i still see missing is:

Code: Select all

    "May": "Maa",
    "Waterflow": "Wettertrochfier",
    "About": "Ynfo oer..."