Search found 5 matches

by Reinz
Sunday 10 April 2016 21:21
Forum: Others
Topic: Huawei 3G modem with domoticz
Replies: 4
Views: 4226

Re: Huawei 3G modem with domoticz

I made something similar, but with SMS Servertools3 and had the problem that the sms deamon could not move the text files (for the sms) in the spool directory from "outgoing" to "sent" due owner ship problems. Here is my solution https://www.domoticz.com/forum/viewtopic.php?f=23&t=10251&p=72192 ...
by Reinz
Sunday 10 April 2016 11:30
Forum: Raspberry Pi GPIO ( WiringPi )
Topic: GPIO meter pulse counting with instant power calculation
Replies: 30
Views: 28915

Re: GPIO meter pulse counting with instant power calculation

Could you explain your script a little, I would like to adapt it for my meter with 75 revolutions per kWh.
Also I tried to comment out the gas metering but since I have no python experience I totally broke it ;)

thanks in advance
by Reinz
Thursday 28 January 2016 16:23
Forum: PHP and all others
Topic: Bash script for SMS Server tools
Replies: 1
Views: 1409

Re: Bash script for SMS Server tools

After searching and puzzling found a solution, "sudu -u smsd" calls "tee" as another user (in this case sms deamon user) and writes the file. #!/bin/bash timefile=`date '+%Y_%m_%d_%H_%M_%S'`; timesms=`date '+%H:%M %d/%m'`; echo -e "To: 436XXXXXXXXXXXXX\n\nWAN is not reachable. $timesms" | sudo -u ...
by Reinz
Wednesday 27 January 2016 21:05
Forum: PHP and all others
Topic: Bash script for SMS Server tools
Replies: 1
Views: 1409

Bash script for SMS Server tools

Iam trying to create a text file for processing in SMS server tools but if the the script is fired via a switch in domoticz the created file is owned by "root" and the sms daemon "smsd" cannot acces the file. for those who dont know sms server tools yet, its a sms gateway daemon which is monitoring ...