Page 3 of 4

Re: RPIEasy

Posted: 19 Mar 2019, 18:57
by enesbcs
asuz wrote:
19 Mar 2019, 10:24
Thanks for that suggestion, it works with non-zero values. Actually I donot touch that area beause it says "Optional for this Device". Maybe that helps somebody after me.
Yes it is optional as you can write to the OLED with the OLED command from Rules, if you do not want to use automatic refresh feature...
asuz wrote:
19 Mar 2019, 10:24
What about remember last state situation at GPIO? Did you solve that issue?
As i tested it is fixed in the latest commit. https://github.com/enesbcs/rpieasy/comm ... 10875234ac

Re: RPIEasy

Posted: 20 Mar 2019, 14:01
by asuz
enesbcs wrote:
19 Mar 2019, 18:57
asuz wrote:
19 Mar 2019, 10:24
Thanks for that suggestion, it works with non-zero values. Actually I donot touch that area beause it says "Optional for this Device". Maybe that helps somebody after me.
Yes it is optional as you can write to the OLED with the OLED command from Rules, if you do not want to use automatic refresh feature...
asuz wrote:
19 Mar 2019, 10:24
What about remember last state situation at GPIO? Did you solve that issue?
As i tested it is fixed in the latest commit. https://github.com/enesbcs/rpieasy/comm ... 10875234ac
Dear enesbcs,
I think the not remembering latest state of the GPIO issue after reboot is still continue. You are the expert not me but I observe these situations;

I choose GPIO 17 to Output then make the GPIO state ( I connect it a relay) 1 then reboot, GPIO state become 0,
I choose GPIO 17 to Output-Lo then make the GPIO state 1 then reboot, GPIO state become 0,
I choose GPIO 17 to Output_Hi then make the GPIO state 1 then reboot, GPIO state become 1

so shoulnot GPIO 17 remember last state when its at only Output function?

Re: RPIEasy

Posted: 20 Mar 2019, 14:11
by henkdejonge
I would like to use the RFID / Wiegand reader. But the dependencies shows that i'm missing wiegand.io I've tried all kind of things but I can't get it to work.

Henk.

Re: RPIEasy

Posted: 20 Mar 2019, 16:55
by henkdejonge
henkdejonge wrote:
20 Mar 2019, 14:11
I would like to use the RFID / Wiegand reader. But the dependencies shows that i'm missing wiegand.io I've tried all kind of things but I can't get it to work.

Henk.
It's more easier than I thought.... just click on the blue link... et voila it's automatically installed... ;-)

Re: RPIEasy

Posted: 20 Mar 2019, 17:47
by enesbcs
asuz wrote:
20 Mar 2019, 14:01
so shoulnot GPIO 17 remember last state when its at only Output function?
I have'nt got any project that can benefit from remembering last state, but if you need it, i can add a filter to remember pin state only if type is pure Output.

Re: RPIEasy

Posted: 20 Mar 2019, 19:33
by asuz
enesbcs wrote:
20 Mar 2019, 17:47
asuz wrote:
20 Mar 2019, 14:01
so shoulnot GPIO 17 remember last state when its at only Output function?
I have'nt got any project that can benefit from remembering last state, but if you need it, i can add a filter to remember pin state only if type is pure Output.
If it is possible I will thankful to you. Sometimes the system (raspian)would be crash and need to be reboot by schedule or manually when that happen all scenery would be wrong if the GPIO doesnot remember last state. Easy ESP firmware already has that propery and it really help for the regular operations. Please add that property to the magnificent RPIEasy :)

Re: RPIEasy

Posted: 20 Mar 2019, 20:36
by enesbcs
asuz wrote:
20 Mar 2019, 19:33
If it is possible I will thankful to you. Sometimes the system (raspian)would be crash and need to be reboot by schedule or manually when that happen all scenery would be wrong if the GPIO doesnot remember last state
If the OS crashed OR the SD card is not in a writable state, there are no way that the system will remember it's last state...
Anyway, i've just tested with 19.079 and with a regular reboot it has to work. Please attach logs if yours not working at the same way.

First boot: GPIO setted to 1
20:14:20: Pi Zero W 40 pins
20:14:20: State preserving is enabled
20:14:20: Event: System#Boot
20:14:20: Webserver starting at port 80
20:14:20: Event: Clock#Time=Wed,20:14
20:14:37: CMD: gpio,17,1
20:14:37: BCM17 set to 1
20:14:37: Event: 17#State=1
20:14:44: CMD: reboot
20:14:44: Event: System#Shutdown
Second boot: Previous value of 1 restored...
20:15:18: Pi Zero W 40 pins
20:15:19: Event: 17#State=1
20:15:19: 17: Restoring previous GPIO value 1
20:15:19: State preserving is enabled
20:15:19: Event: System#Boot
20:15:19: Webserver starting at port 80
20:15:20: Event: Clock#Time=Wed,20:15
... then setted to 0 with gpio command and reboot
20:16:00: Event: Clock#Time=Wed,20:16
20:16:05: CMD: gpio,17,0
20:16:05: BCM17 set to 0
20:16:05: Event: 17#State=0
20:16:12: CMD: reboot
20:16:12: Event: System#Shutdown
Third boot: Previous value was 0 so there are nothing to do as it is already zero at boot...
20:16:44: Pi Zero W 40 pins
20:16:46: State preserving is enabled
20:16:46: Event: System#Boot
20:16:46: Webserver starting at port 80
20:16:46: Event: Clock#Time=Wed,20:16
20:17:06: Event: Clock#Time=Wed,20:17

Re: RPIEasy

Posted: 21 Mar 2019, 12:03
by asuz
20:14:20: Pi Zero W 40 pins
20:14:20: State preserving is enabled
20:14:20: Event: System#Boot
20:14:20: Webserver starting at port 80
20:14:20: Event: Clock#Time=Wed,20:14
20:14:37: CMD: gpio,17,1
20:14:37: BCM17 set to 1
20:14:37: Event: 17#State=1
20:14:44: CMD: reboot
20:14:44: Event: System#Shutdown
How can you paste the logs here, my logs are disappear after reboot. Issue still continue from my side. Sorry about that, I know you do too much efford to me and my topic :( I do not see anything like "State preserving is enabled" at logs

Re: RPIEasy

Posted: 21 Mar 2019, 18:15
by enesbcs
asuz wrote:
21 Mar 2019, 12:03
How can you paste the logs here, my logs are disappear after reboot. Issue still continue from my side. Sorry about that, I know you do too much efford to me and my topic :( I do not see anything like "State preserving is enabled" at logs
If you do not see "State preserving is enabled" at logs, than it will not work of course. Remove and backup full rpieasy, then reinstall it from github and try again. If you do not see State preserve option at P029 than it is more than interesting, if you checked this option and did not show up, than your pin mode maybe not Output.

I am using ssh console to get logs. If you entering into ssh with any user, than enter "sudo su" this way you entering into root console after enter "screen -r" and if you are using with the preferred autostart way with screen, than you will get console log, which you can copy-paste.

Re: RPIEasy

Posted: 22 Mar 2019, 16:24
by asuz
enesbcs wrote:
21 Mar 2019, 18:15
asuz wrote:
21 Mar 2019, 12:03
How can you paste the logs here, my logs are disappear after reboot. Issue still continue from my side. Sorry about that, I know you do too much efford to me and my topic :( I do not see anything like "State preserving is enabled" at logs
If you do not see "State preserving is enabled" at logs, than it will not work of course. Remove and backup full rpieasy, then reinstall it from github and try again. If you do not see State preserve option at P029 than it is more than interesting, if you checked this option and did not show up, than your pin mode maybe not Output.

I am using ssh console to get logs. If you entering into ssh with any user, than enter "sudo su" this way you entering into root console after enter "screen -r" and if you are using with the preferred autostart way with screen, than you will get console log, which you can copy-paste.
I connect to raspian with putty then apply your script that you mention above but ater restart RPIEasy putty warn me "server unexpectedly closed network connection". So connection is closed and cannot able to see the logs. I set 10 second seconds between keep alives then tick enable TCP keepalives option at putty but still lose conection after rebooting RPIEasy. Can you share your putty settings to me :)

There is a log i always see at log page Event can not be added, register backup timer Is that somethig related with my issue?

Re: RPIEasy

Posted: 22 Mar 2019, 19:25
by enesbcs
asuz wrote:
22 Mar 2019, 16:24
I connect to raspian with putty then apply your script that you mention above but ater restart RPIEasy putty warn me "server unexpectedly closed network connection". So connection is closed and cannot able to see the logs. I set 10 second seconds between keep alives then tick enable TCP keepalives option at putty but still lose conection after rebooting RPIEasy. Can you share your putty settings to me :)
Sorry i do not use Windows. I am using Ubuntu Linux with real ssh client, and it's screen remains readable after disconnect.
You can try to install a syslog server to your windows and enable syslog logging in rpieasy, this way the logs can be saved.
asuz wrote:
22 Mar 2019, 16:24
There is a log i always see at log page Event can not be added, register backup timer Is that somethig related with my issue?
This type of message coming from P001 (which is for input pins only) when this input pin state is already watched by another process.
You need to set a P029 (output) and set everything else to disabled state for testing.

Re: RPIEasy

Posted: 25 Mar 2019, 19:51
by asuz
enesbcs wrote:
22 Mar 2019, 19:25
Sorry i do not use Windows. I am using Ubuntu Linux with real ssh client, and it's screen remains readable after disconnect.
You can try to install a syslog server to your windows and enable syslog logging in rpieasy, this way the logs can be saved.
Hello enesbcs,
I install fresh raspian and also RPIEasy. As your suggest i get logs with syslog server way. Here is the logs.


<5>RPIEasy RPIEasy: Event: System#Shutdown 192.168.4.57 25/03 21:39:57.762
<5>RPIEasy RPIEasy: Event: relay#State=0 192.168.4.57 25/03 21:40:16.404
<3>RPIEasy RPIEasy: Event can not be added, register backup timer 192.168.4.57 25/03 21:40:16.404
<5>RPIEasy RPIEasy: Event: System#Boot 192.168.4.57 25/03 21:40:16.420
<5>RPIEasy RPIEasy: Webserver starting at port 80 192.168.4.57 25/03 21:40:16.420
<5>RPIEasy RPIEasy: Event: Clock#Time=Mon,21:40 192.168.4.57 25/03 21:40:16.466
<5>RPIEasy RPIEasy: Event: isi#Temperature=22.9 192.168.4.57 25/03 21:40:19.103
<5>RPIEasy RPIEasy: Event: isi#Humidity=38.0 192.168.4.57 25/03 21:40:19.103
<5>RPIEasy RPIEasy: CMD: GPIO,17,1 192.168.4.57 25/03 21:40:33.065
<5>RPIEasy RPIEasy: Event: relay#State=1 192.168.4.57 25/03 21:40:33.174
<5>RPIEasy RPIEasy: CMD: GPIO,17,0 192.168.4.57 25/03 21:40:35.389
<5>RPIEasy RPIEasy: Event: relay#State=0 192.168.4.57 25/03 21:40:35.483
<5>RPIEasy RPIEasy: CMD: GPIO,17,1 192.168.4.57 25/03 21:40:37.995
<5>RPIEasy RPIEasy: Event: relay#State=1 192.168.4.57 25/03 21:40:38.119
<5>RPIEasy RPIEasy: CMD: reboot 192.168.4.57 25/03 21:40:59.351
<5>RPIEasy RPIEasy: Event: System#Shutdown 192.168.4.57 25/03 21:40:59.367
<5>RPIEasy RPIEasy: Event: relay#State=0 192.168.4.57 25/03 21:41:22.642
<3>RPIEasy RPIEasy: Event can not be added, register backup timer 192.168.4.57 25/03 21:41:22.657
<5>RPIEasy RPIEasy: Event: System#Boot 192.168.4.57 25/03 21:41:22.657
<5>RPIEasy RPIEasy: Webserver starting at port 80 192.168.4.57 25/03 21:41:22.657

<5>RPIEasy RPIEasy: Event: Clock#Time=Mon,21:41 192.168.4.57 25/03 21:41:22.735
<3>RPIEasy RPIEasy: DHT read failed, using cached value! 192.168.4.57 25/03 21:41:25.356
<5>RPIEasy RPIEasy: Event: isi#Temperature=22.9 192.168.4.57 25/03 21:41:31.893
<5>RPIEasy RPIEasy: Event: isi#Humidity=38.0 192.168.4.57 25/03 21:41:31.893

Here,GPIO17 is at Output. what can you suggest to me after reading logs? There is nothing "State preserving is enabled" at my logs :(

Re: RPIEasy

Posted: 25 Mar 2019, 22:31
by enesbcs
asuz wrote:
25 Mar 2019, 19:51
enesbcs wrote:
22 Mar 2019, 19:25
Sorry i do not use Windows. I am using Ubuntu Linux with real ssh client, and it's screen remains readable after disconnect.
You can try to install a syslog server to your windows and enable syslog logging in rpieasy, this way the logs can be saved.
Hello enesbcs,
I install fresh raspian and also RPIEasy. As your suggest i get logs with syslog server way. Here is the logs.

Here,GPIO17 is at Output. what can you suggest to me after reading logs? There is nothing "State preserving is enabled" at my logs :(
The only reason can be that you are not using the Output helper plugin.
Please delete the device you named "relay" and recreate it with "P029 - Output - Output helper" and you have to see something similar that i attached just now.

Re: RPIEasy

Posted: 25 Mar 2019, 22:40
by asuz
enesbcs wrote:
25 Mar 2019, 22:31
The only reason can be that you are not using the Output helper plugin.
Please delete the device you named "relay" and recreate it with "P029 - Output - Output helper" and you have to see something similar that i attached just now.
<5>RPIEasy RPIEasy: Event: isi#Temperature=23.0 192.168.4.57 26/03 00:36:48.742
<5>RPIEasy RPIEasy: Event: isi#Humidity=38.1 192.168.4.57 26/03 00:36:48.742
<5>RPIEasy RPIEasy: CMD: GPIO,17,1 192.168.4.57 26/03 00:37:01.456
<5>RPIEasy RPIEasy: Event: 17#State=1 192.168.4.57 26/03 00:37:01.471
<5>RPIEasy RPIEasy: CMD: GPIO,17,1 192.168.4.57 26/03 00:37:01.736
<5>RPIEasy RPIEasy: Event: 17#State=1 192.168.4.57 26/03 00:37:01.752
<5>RPIEasy RPIEasy: State preserving is enabled 192.168.4.57 26/03 00:37:12.797
<5>RPIEasy RPIEasy: CMD: GPIO,17,0 192.168.4.57 26/03 00:37:46.820
<5>RPIEasy RPIEasy: Event: 17#State=0 192.168.4.57 26/03 00:37:46.820
<5>RPIEasy RPIEasy: CMD: GPIO,17,1 192.168.4.57 26/03 00:38:30.797
<5>RPIEasy RPIEasy: Event: 17#State=1 192.168.4.57 26/03 00:38:30.797
<5>RPIEasy RPIEasy: CMD: reboot 192.168.4.57 26/03 00:38:51.046
<5>RPIEasy RPIEasy: Event: System#Shutdown 192.168.4.57 26/03 00:38:51.046
<5>RPIEasy RPIEasy: State preserving is enabled 192.168.4.57 26/03 00:39:10.171
<5>RPIEasy RPIEasy: Event: System#Boot 192.168.4.57 26/03 00:39:10.187
<5>RPIEasy RPIEasy: Webserver starting at port 80 192.168.4.57 26/03 00:39:10.187
<5>RPIEasy RPIEasy: Event: Clock#Time=Tue,00:39 192.168.4.57 26/03 00:39:10.249
<5>RPIEasy RPIEasy: Event: isi#Temperature=23.0 192.168.4.57 26/03 00:39:12.870
<5>RPIEasy RPIEasy: Event: isi#Humidity=38.1 192.168.4.57 26/03 00:39:12.886

It seems its workinggggg. Thank you very muchhh :)

Re: RPIEasy

Posted: 29 Mar 2019, 20:05
by asuz
Hello enesbcs,
Is it possible to add Display button: as esp firmware has? It really fits my project, please see isn't it? After add 10 piece 18b20, my central heating automation will be OK.

Re: RPIEasy

Posted: 29 Mar 2019, 22:44
by enesbcs
asuz wrote:
29 Mar 2019, 20:05
Hello enesbcs,
Is it possible to add Display button: as esp firmware has? It really fits my project, please see isn't it? After add 10 piece 18b20, my central heating automation will be OK.
Nice project! I've never used the "Display button" setting before... is it simply switching on and off the display? :)

Re: RPIEasy

Posted: 30 Mar 2019, 00:14
by asuz
enesbcs wrote:
29 Mar 2019, 22:44
asuz wrote:
29 Mar 2019, 20:05
Hello enesbcs,
Is it possible to add Display button: as esp firmware has? It really fits my project, please see isn't it? After add 10 piece 18b20, my central heating automation will be OK.
Nice project! I've never used the "Display button" setting before... is it simply switching on and off the display? :)
Yes, right

Re: RPIEasy

Posted: 30 Mar 2019, 12:13
by Domosapiens
is it simply switching on and off the display?
more precise ... it switches the back light.

Re: RPIEasy

Posted: 30 Mar 2019, 18:33
by enesbcs
asuz wrote:
30 Mar 2019, 00:14
enesbcs wrote:
29 Mar 2019, 22:44
asuz wrote:
29 Mar 2019, 20:05
Hello enesbcs,
Is it possible to add Display button: as esp firmware has? It really fits my project, please see isn't it? After add 10 piece 18b20, my central heating automation will be OK.
Nice project! I've never used the "Display button" setting before... is it simply switching on and off the display? :)
Yes, right
Display button added to P012 plugin at commit https://github.com/enesbcs/rpieasy/comm ... 3d4e066129

Re: RPIEasy

Posted: 04 Apr 2019, 16:00
by asuz
enesbcs wrote:
30 Mar 2019, 18:33
asuz wrote:
30 Mar 2019, 00:14
enesbcs wrote:
29 Mar 2019, 22:44

Nice project! I've never used the "Display button" setting before... is it simply switching on and off the display? :)
Yes, right
Display button added to P012 plugin at commit https://github.com/enesbcs/rpieasy/comm ... 3d4e066129
Thank you very much again for that effort :)

Re: RPIEasy

Posted: 10 Apr 2019, 10:11
by henkdejonge
Hi,

I still got a small issue. I can't get pygame installed. Tried all kind of things but NOGO.

Henk

Re: RPIEasy

Posted: 10 Apr 2019, 20:18
by enesbcs
henkdejonge wrote:
10 Apr 2019, 10:11
Hi,
I still got a small issue. I can't get pygame installed. Tried all kind of things but NOGO.
Henk
Hi,
Please send me the output of the following linux commands:

Code: Select all

cat /etc/os-release
dpkg -s python3-pip
cat /etc/apt/sources.list
Then try to run installation manually:

Code: Select all

sudo apt-get update
sudo apt-get install python3-pip
sudo pip3 install pygame
If the above writes some error messages please provide it also for narrowing the problem.

Re: RPIEasy

Posted: 11 Apr 2019, 09:18
by henkdejonge
Hi,

I've run the commands as requested. Everything went well. Only the last command for installing pygame exited with a error code 1.
Attached the output.

Henk

Re: RPIEasy

Posted: 11 Apr 2019, 17:32
by enesbcs
henkdejonge wrote:
11 Apr 2019, 09:18
I've run the commands as requested. Everything went well. Only the last command for installing pygame exited with a error code 1.
Attached the output.
I see. Please try:

Code: Select all

sudo apt-get install libsdl1.2-dev
Then:

Code: Select all

sudo pip3 install pygame

Re: RPIEasy

Posted: 12 Apr 2019, 15:43
by henkdejonge
Hi,

Tried the command... same result... :-( I think I'll try to reinstall the whole stuff from the beginning. Nice job for the weekend.. ;-)
Thanks anyway for your support.. or perhaps somethings else pops up in your head..

Henk.

Re: RPIEasy

Posted: 12 Apr 2019, 20:23
by enesbcs
henkdejonge wrote:
12 Apr 2019, 15:43
Hi,
Tried the command... same result... :-( I think I'll try to reinstall the whole stuff from the beginning. Nice job for the weekend.. ;-)
Thanks anyway for your support.. or perhaps somethings else pops up in your head..
Henk.
Hi!
It is very odd, looks like you have more dependencies missing, than i have ever installed.. :)
Please run the below command, than try to reinstall pygame with pip or with RPIEasy.

Code: Select all

sudo apt-get install libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev ffmpeg libfreetype6-dev python3-dev
If it solves the problem i will add all of them to the dependency list.

Re: RPIEasy

Posted: 13 Apr 2019, 13:33
by henkdejonge
Hi,

Still dependencies missing...but almost there... ;-)
See attached output file.

Grtz,

Henk.

Re: RPIEasy

Posted: 13 Apr 2019, 13:59
by henkdejonge
Hi,

The next command almost did the trick... ;-)

sudo apt-get install libportmidi-dev libportmidi0

pi@raspberrypi:~ $ sudo pip3 install pygame
Collecting pygame
Using cached https://files.pythonhosted.org/packages ... 9.5.tar.gz
Building wheels for collected packages: pygame
Running setup.py bdist_wheel for pygame ... done
Stored in directory: /root/.cache/pip/wheels/4b/e1/2a/58ce2aefc91564e870fcc388f04e69d96159ff64671ca0e22d
Successfully built pygame
Installing collected packages: pygame
Successfully installed pygame-1.9.5


Unfortunately the pygame successfully installed but the output of the dependencies page still shows red crosses

Grtz,

Henk.

Re: RPIEasy

Posted: 13 Apr 2019, 14:01
by henkdejonge
Hi,

After a reboot the red crosses are gone... ;-)

Henk

Re: RPIEasy

Posted: 13 Apr 2019, 19:18
by enesbcs
henkdejonge wrote:
13 Apr 2019, 14:01
After a reboot the red crosses are gone... ;-)
Thank you for your feedback I've added extra dependencies in todays commit to RPIEasy.

Re: RPIEasy

Posted: 24 May 2019, 18:12
by bennybubble
Hi,

I really like the RPIeasy initiative, same look and feel as the originial ESPeasy !

To get more I/O, I'm replacing an 8266 with a RPI but now I'm almost there, I see there is no Generic - Puls Counter plugin.

Are there plans to make such a plugin ?

-ben

Re: RPIEasy

Posted: 24 May 2019, 19:09
by enesbcs
bennybubble wrote:
24 May 2019, 18:12
Hi,

I really like the RPIeasy initiative, same look and feel as the originial ESPeasy !

To get more I/O, I'm replacing an 8266 with a RPI but now I'm almost there, I see there is no Generic - Puls Counter plugin.

Are there plans to make such a plugin ?

-ben
I am not sure if real-time pulse counting is even possible in Python language on a multi-tasking operating system. Please show me a working example for Raspberry and i will look into it.

Re: RPIEasy

Posted: 24 May 2019, 19:50
by bennybubble
enesbcs wrote:
24 May 2019, 19:09
bennybubble wrote:
24 May 2019, 18:12
Hi,

I really like the RPIeasy initiative, same look and feel as the originial ESPeasy !

To get more I/O, I'm replacing an 8266 with a RPI but now I'm almost there, I see there is no Generic - Puls Counter plugin.

Are there plans to make such a plugin ?

-ben
I am not sure if real-time pulse counting is even possible in Python language on a multi-tasking operating system. Please show me a working example for Raspberry and i will look into it.
What is the defintion of real-time?
In my case I want to count pulses from my gas- and energymeter, puls rate would be less then 1 Hz ...
I don't think this would be an issue with Python running on RPI/Raspbian.

-ben

Re: RPIEasy

Posted: 24 May 2019, 21:37
by enesbcs
bennybubble wrote:
24 May 2019, 19:50
What is the defintion of real-time?
In my case I want to count pulses from my gas- and energymeter, puls rate would be less then 1 Hz ...
I don't think this would be an issue with Python running on RPI/Raspbian.
-ben
Yes one per second can be achieved if it is enough.

Re: RPIEasy

Posted: 27 May 2019, 12:31
by bennybubble
enesbcs wrote:
24 May 2019, 21:37
bennybubble wrote:
24 May 2019, 19:50
What is the defintion of real-time?
In my case I want to count pulses from my gas- and energymeter, puls rate would be less then 1 Hz ...
I don't think this would be an issue with Python running on RPI/Raspbian.
-ben
Yes one per second can be achieved if it is enough.
It would be great if this could be implemented, can't you use edge-based-interrupt for counting (https://parg.co/hbz) ?
I'm more then happy to test it if needed !

-ben

Re: RPIEasy

Posted: 27 May 2019, 17:08
by enesbcs
bennybubble wrote:
27 May 2019, 12:31
It would be great if this could be implemented, can't you use edge-based-interrupt for counting (https://parg.co/hbz) ?
I'm more then happy to test it if needed !
-ben
https://github.com/enesbcs/rpieasy/issues/65

Re: RPIEasy

Posted: 28 May 2019, 11:13
by pirquadrat
Hi!
I already use ESPEasy and found your project today. I must say: great work! That's a thing for a Raspberry Pi I was long looking for. Really nice idea :)

But let me ask one question: do you plan to support FHEM as a controller? Or is MQTT the only way for now and near future?

Best regards

Re: RPIEasy

Posted: 28 May 2019, 11:53
by bennybubble
enesbcs wrote:
27 May 2019, 17:08
bennybubble wrote:
27 May 2019, 12:31
It would be great if this could be implemented, can't you use edge-based-interrupt for counting (https://parg.co/hbz) ?
I'm more then happy to test it if needed !
-ben
https://github.com/enesbcs/rpieasy/issues/65
Thanks, I will test it this weekend!

-ben

Re: RPIEasy

Posted: 28 May 2019, 17:29
by enesbcs
pirquadrat wrote:
28 May 2019, 11:13
Hi!
I already use ESPEasy and found your project today. I must say: great work! That's a thing for a Raspberry Pi I was long looking for. Really nice idea :)

But let me ask one question: do you plan to support FHEM as a controller? Or is MQTT the only way for now and near future?

Best regards
Thank you!

Personally i do not use FHEM, but it can be added. It's some sort of HTTP based protocol as i saw the current ESPEasy implementation:
https://github.com/letscontrolit/ESPEas ... /_C009.ino
Can you add it to the github as a new issue? I will look after it, when i will have some time.
But some kind of simple API description (for dummies as me) will also be necessary, as i do not know how it is working. :)

Re: RPIEasy

Posted: 28 May 2019, 19:57
by pirquadrat
enesbcs wrote:
28 May 2019, 17:29
you add it to the github as a new issue? I will look after it, when i will have some time.
But some kind of simple API description (for dummies as me) will also be necessary, as i do not know how it is working. :)
Done ;)

Re: RPIEasy

Posted: 30 Jul 2019, 19:57
by StefanD
Hi Enesbcs,
I am using RPIEasy for some time and it is a great piece of software. When do you think that will be possible for you to implement in RPIeasy ToniA infrared plugin for controlling air conditioning units(I think is HeatpumpIR plugin)?
Thank you

Re: RPIEasy

Posted: 30 Jul 2019, 20:23
by enesbcs
StefanD wrote:
30 Jul 2019, 19:57
Hi Enesbcs,
I am using RPIEasy for some time and it is a great piece of software. When do you think that will be possible for you to implement in RPIeasy ToniA infrared plugin for controlling air conditioning units(I think is HeatpumpIR plugin)?
Thank you
Hi,
I am very sorry, but as i wrote earlier in the github issue, i was unable to find any python examples which are able to send/receive RAW IR codes through LIRC. And from a multi-tasking operating system the only way to generate a 38Khz IR signal is to use a kernel-driver such as LIRC...

Re: RPIEasy

Posted: 06 Aug 2019, 21:58
by StefanD
Hi Enesbcs,
regarding infrared plugin I want to tell you that am using with success in other python application pigpio library and according with the documentation it is also capable to be an alternative to lirc for transmitting and receiving IR codes. You can check this link :
https://raspberrypi.stackexchange.com/q ... g-ir-codes
and for python example this link:
http://abyz.me.uk/rpi/pigpio/examples.h ... on_irrp_py
Waiting your feedback
Best regards

Re: RPIEasy

Posted: 07 Aug 2019, 07:04
by enesbcs
StefanD wrote:
06 Aug 2019, 21:58
Hi Enesbcs,
regarding infrared plugin I want to tell you that am using with success in other python application pigpio library and according with the documentation it is also capable to be an alternative to lirc for transmitting and receiving IR codes. You can check this link :
https://raspberrypi.stackexchange.com/q ... g-ir-codes
and for python example this link:
http://abyz.me.uk/rpi/pigpio/examples.h ... on_irrp_py
Waiting your feedback
Best regards
Thank you for your suggestion, but in the last 12 months i tried everything to avoid usage of pigpio and its background services, and i want to continue this practice. I hope that someday the LIRC kernel driver can be used properly from python.

Re: RPIEasy

Posted: 15 Aug 2019, 10:53
by StefanD
Hi Enesbcs,
looking at the plugins implemented in rpieasy I found one that looks very promising for me. It is about plugin P511 - Run OS command. My question is: with this command it is possible to run/stop any executable script even it is not a python3 script? Can be used in rules ? Please give me some details about this plugin...
Thank you

Re: RPIEasy

Posted: 15 Aug 2019, 17:43
by enesbcs
StefanD wrote:
15 Aug 2019, 10:53
Hi Enesbcs,
looking at the plugins implemented in rpieasy I found one that looks very promising for me. It is about plugin P511 - Run OS command. My question is: with this command it is possible to run/stop any executable script even it is not a python3 script? Can be used in rules ? Please give me some details about this plugin...
Thank you
Hi!
Usage is super-easy, if the P511 device 1st value receives 0 than it executes first command, if it receives 1 than it executes second command.
https://github.com/enesbcs/rpieasy/blob ... unOSCmd.py
Value can be setted with "taskvalueset" command (from Rules or URL) or directly through MQTT. (it works similarly than the Output helper plugin)
Command can be anything that the Linux OS accepts.

I am using it to control tvheadend service through a Domoticz Switch.
Image

Re: RPIEasy

Posted: 19 Aug 2019, 10:51
by enesbcs
I've published some basic RPIEasy usage manual at instructables:
https://www.instructables.com/id/RPIEas ... or-Device/

Re: RPIEasy

Posted: 28 Sep 2019, 21:13
by llevet
Hi enesbcs,

Very cool project !

It is miss in Controller : Generic HTTP
I use it for my Jeedom.

Thank's a lot.

Ludo.

Re: RPIEasy

Posted: 03 Oct 2019, 20:14
by llevet
Hi enesbcs,

Is there a special reason that the http return value of "/control?cmd=GPIO,15,1" return a "OK" instead of Json status like this ?
{
"log": "GPIO 15 Set to 1",
"plugin": 1,
"pin": 15,
"mode": "output",
"state": 1
}

Thanks.

Ludo.

Re: RPIEasy

Posted: 04 Oct 2019, 08:23
by enesbcs
llevet wrote:
03 Oct 2019, 20:14
Hi enesbcs,

Is there a special reason that the http return value of "/control?cmd=GPIO,15,1" return a "OK" instead of Json status like this ?
{
"log": "GPIO 15 Set to 1",
"plugin": 1,
"pin": 15,
"mode": "output",
"state": 1
}

Thanks.

Ludo.
Yes, the reason is that status array is not implemented yet.