Search found 16 matches

by julien92
Sunday 03 March 2019 22:38
Forum: Blockly
Topic: Switch values not displaying
Replies: 1
Views: 589

Switch values not displaying

Hi all,

I've added th Xiaomi Switch (zigbee version) within Domoticz, but can't find the different states of the switch when using a Blocky script.
I guess I should be able to see "click", "double click", "long click" but these values does not exist within Blockly.

See attached

Does somebody have ...
by julien92
Saturday 16 February 2019 19:43
Forum: Blockly
Topic: Send temperature by email with blockly script
Replies: 3
Views: 1178

Re: Send temperature by email with blockly script

I'm still answering to myself :

The script needs to be launched with source command :
source ./get_sensors_values.sh
or
. ./get_sensors_values.sh

It's working fine like this.

Now I just need to know how to make this variable useable by domoticz, so that I can use this variable within an ...
by julien92
Saturday 16 February 2019 16:06
Forum: Blockly
Topic: Send temperature by email with blockly script
Replies: 3
Views: 1178

Re: Send temperature by email with blockly script

Hi,

I've managed to get the temperature and put it into a variable :

temp_ext=$(curl -s 'http://192.168.1.45:8082/json.htm?type=devices&rid=59' | awk -F "\"" '/Data/ {print $4}')

IDX 59 being my temperature sensor


When I type :
echo $temp_ext

It displays the temperature.


BUT when ...
by julien92
Friday 15 February 2019 14:48
Forum: Blockly
Topic: Send temperature by email with blockly script
Replies: 3
Views: 1178

Send temperature by email with blockly script

Hi all,

I’m a newbie this Domoticz and would like to send the external temperature by email every hour, via a blockly script.

In order to manage this, I’m wondering how :
- Get the value of the temperature and put it into a variable
- Send the content of this variable within an email

Could you ...
by julien92
Wednesday 13 February 2019 9:25
Forum: Blockly
Topic: Blockly starts with 5 to 15 minutes delay
Replies: 0
Views: 567

Blockly starts with 5 to 15 minutes delay

Hi,

I’m trying to execute my first blockly script. The goal is really basic :
If external temperature is below 15°C
- turn my Philips Hue light on
- write “Philips Hue blockly start” into the logs

Hue si temp inf a 15 degrés avec log.JPG

But for a reason I could not figure out, this blockly ...
by julien92
Wednesday 23 January 2019 23:17
Forum: Other questions and discussions
Topic: Display the result of a script into the Dashboard
Replies: 16
Views: 1495

Re: Display the result of a script into the Dashboard

I've found the solution to replace line break by its hexadecimal character. It must be like this :
myvar3="${myvar2//$'\n'/%0A}"

It's more or less by chance that I've found that, by trying some ideas found on different websites.
Do you confirm this syntax is correct, indeed? :)

I've then made ...
by julien92
Wednesday 23 January 2019 20:00
Forum: Other questions and discussions
Topic: Display the result of a script into the Dashboard
Replies: 16
Views: 1495

Re: Display the result of a script into the Dashboard

Thanks for your reply Waaren.

Unfortunately, that does not work...
I've tried with :

myvar3="${myvar2//\\n/%0A}"

and
myvar3="${myvar2// \\n/%0A}"

and
myvar3="${myvar2// \ \n/%0A}"

But each time, when trying to execute the script, I get this result :

pi@raspberrypi:~/domoticz/scripts ...
by julien92
Wednesday 23 January 2019 17:19
Forum: Blockly
Topic: Send content of a file via Blockly
Replies: 1
Views: 547

Send content of a file via Blockly

Hi,

I would like to know if it possible to send the content of a text file (for instance a log file) within an email, via a Blockly script?

Thanks in advance.

Julien
by julien92
Sunday 20 January 2019 21:11
Forum: Other questions and discussions
Topic: Display the result of a script into the Dashboard
Replies: 16
Views: 1495

Re: Display the result of a script into the Dashboard

Hi Waaren,

Many thanks for your help ! It works fine, I’m now able to display text within a widget thanks to your help by indicating :

#!/bin/bash
echo "Today is $(date)" > /dev/null 2>&1

myvar=$(date) # get date string in var
myvar="${myvar// /%20}" # prepare for curl (replace spaces with %20 ...
by julien92
Saturday 19 January 2019 0:00
Forum: Other questions and discussions
Topic: Display the result of a script into the Dashboard
Replies: 16
Views: 1495

Re: Display the result of a script into the Dashboard

Thanks a lot Waaren :)
But still one question : will the result of the script be displayed if I use a switch as device?
If so, where would it be supposed to be displayed?

(that's why I fisrt tried to use "text" device type)

Thanks again for your help, much appreciated! ;)
by julien92
Friday 18 January 2019 22:51
Forum: Other questions and discussions
Topic: Display the result of a script into the Dashboard
Replies: 16
Views: 1495

Re: Display the result of a script into the Dashboard

Hi Waaren

Thanks for your feedback.
But can you please give me some more precision?

My Domoticz IP is : 192.168.1.45
port : 8082
Id of the text device : 34

so the command would be :

curl "http://192.168.1.45:8082/json.htm?type=command&param=udevice&idx=34&svalue=yourText"


But let's assume I ...
by julien92
Friday 18 January 2019 22:19
Forum: Other questions and discussions
Topic: Display the result of a script into the Dashboard
Replies: 16
Views: 1495

Re: Display the result of a script into the Dashboard

I've tried to execute the shell script with the push button, but there is no way to display the result.
I've also tried to look around the text device, but the value of this keeps displaying "hello world" :roll:
by julien92
Friday 18 January 2019 16:59
Forum: Other questions and discussions
Topic: Display the result of a script into the Dashboard
Replies: 16
Views: 1495

Display the result of a script into the Dashboard

Hello,

I’ll ask a newbie question (I’m discovering Domoticz since 2 weeks, and everything that could be done with it :D ).

I would like to know if it would be possible to display within a widget the result of a bash script.

For instance (some basic examples) :
- display in the widget the number ...
by julien92
Wednesday 09 January 2019 9:49
Forum: Python
Topic: Python plugin : no device added
Replies: 4
Views: 655

Re: Python plugin : no device added

@Dnpwwo,

Hi,
Thanks for your reply.

I think the issue is rather related to the Python plugin, as I get the exact same issue with any other plugin I try to add.
Neverthless, I've managed to add the Denon/Marrantz plugin easily by following this :
https://github.com/dnpwwo/Domoticz-Denon-Plugin ...
by julien92
Tuesday 08 January 2019 13:58
Forum: Python
Topic: Python plugin : no device added
Replies: 4
Views: 655

Re: Python plugin : no device added

The "Accept new Hardware Devices" was already active.

I've just tried this :
- click on "Alllow for 5 mintutes"
- reproduce the new hardware creation through the Python Plugin Manager

But same result :(
by julien92
Tuesday 08 January 2019 10:56
Forum: Python
Topic: Python plugin : no device added
Replies: 4
Views: 655

Python plugin : no device added

Hi,

This is my very first post here :)

I would like to manage my Denon CEOL N9 through Domoticz (installed on a Rpi).
For this, I followed this tutorial :
https://www.domoticz.com/wiki/Python_Plugin_Manager


I've then clicked on Setup > Hardware > I entered a name > in type, I selected "Denon ...