RPIEasy

Moderators: grovkillen, Stuntteam, TD-er, enesbcs

Message
Author
User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#101 Post by enesbcs » 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

asuz
Normal user
Posts: 174
Joined: 31 Oct 2018, 18:22

Re: RPIEasy

#102 Post by asuz » 20 Mar 2019, 14:01

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?

henkdejonge
Normal user
Posts: 13
Joined: 22 Nov 2017, 13:47

Re: RPIEasy

#103 Post by henkdejonge » 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.
Attachments
Wiegand2.JPG
Wiegand2.JPG (35.01 KiB) Viewed 67814 times
Wiegand1.JPG
Wiegand1.JPG (91.29 KiB) Viewed 67814 times

henkdejonge
Normal user
Posts: 13
Joined: 22 Nov 2017, 13:47

Re: RPIEasy

#104 Post by henkdejonge » 20 Mar 2019, 16:55

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... ;-)

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#105 Post by enesbcs » 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.

asuz
Normal user
Posts: 174
Joined: 31 Oct 2018, 18:22

Re: RPIEasy

#106 Post by asuz » 20 Mar 2019, 19:33

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 :)

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#107 Post by enesbcs » 20 Mar 2019, 20:36

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

asuz
Normal user
Posts: 174
Joined: 31 Oct 2018, 18:22

Re: RPIEasy

#108 Post by asuz » 21 Mar 2019, 12:03

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

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#109 Post by enesbcs » 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.

asuz
Normal user
Posts: 174
Joined: 31 Oct 2018, 18:22

Re: RPIEasy

#110 Post by asuz » 22 Mar 2019, 16:24

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?

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#111 Post by enesbcs » 22 Mar 2019, 19:25

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.

asuz
Normal user
Posts: 174
Joined: 31 Oct 2018, 18:22

Re: RPIEasy

#112 Post by asuz » 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.


<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 :(

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#113 Post by enesbcs » 25 Mar 2019, 22:31

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.
Attachments
Sample
Sample
rpieasy_p029.png (49.86 KiB) Viewed 67559 times

asuz
Normal user
Posts: 174
Joined: 31 Oct 2018, 18:22

Re: RPIEasy

#114 Post by asuz » 25 Mar 2019, 22:40

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 :)

asuz
Normal user
Posts: 174
Joined: 31 Oct 2018, 18:22

Re: RPIEasy

#115 Post by asuz » 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.
Attachments
unnamed1.jpg
unnamed1.jpg (621.11 KiB) Viewed 67511 times

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#116 Post by enesbcs » 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? :)

asuz
Normal user
Posts: 174
Joined: 31 Oct 2018, 18:22

Re: RPIEasy

#117 Post by asuz » 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

Domosapiens
Normal user
Posts: 307
Joined: 06 Nov 2016, 13:45

Re: RPIEasy

#118 Post by Domosapiens » 30 Mar 2019, 12:13

is it simply switching on and off the display?
more precise ... it switches the back light.
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#119 Post by enesbcs » 30 Mar 2019, 18:33

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

asuz
Normal user
Posts: 174
Joined: 31 Oct 2018, 18:22

Re: RPIEasy

#120 Post by asuz » 04 Apr 2019, 16:00

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 :)

henkdejonge
Normal user
Posts: 13
Joined: 22 Nov 2017, 13:47

Re: RPIEasy

#121 Post by henkdejonge » 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
Attachments
pygame.JPG
pygame.JPG (27 KiB) Viewed 67212 times

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#122 Post by enesbcs » 10 Apr 2019, 20:18

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.

henkdejonge
Normal user
Posts: 13
Joined: 22 Nov 2017, 13:47

Re: RPIEasy

#123 Post by henkdejonge » 11 Apr 2019, 09:18

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
Attachments
RPIEasy output.zip
(1.42 KiB) Downloaded 610 times

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#124 Post by enesbcs » 11 Apr 2019, 17:32

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

henkdejonge
Normal user
Posts: 13
Joined: 22 Nov 2017, 13:47

Re: RPIEasy

#125 Post by henkdejonge » 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.
Attachments
RPIEasy output.zip
(646 Bytes) Downloaded 610 times

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#126 Post by enesbcs » 12 Apr 2019, 20:23

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.

henkdejonge
Normal user
Posts: 13
Joined: 22 Nov 2017, 13:47

Re: RPIEasy

#127 Post by henkdejonge » 13 Apr 2019, 13:33

Hi,

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

Grtz,

Henk.
Attachments
RPIEasy output.zip
(642 Bytes) Downloaded 587 times

henkdejonge
Normal user
Posts: 13
Joined: 22 Nov 2017, 13:47

Re: RPIEasy

#128 Post by henkdejonge » 13 Apr 2019, 13:59

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.
Attachments
pygame.JPG
pygame.JPG (26.03 KiB) Viewed 67120 times

henkdejonge
Normal user
Posts: 13
Joined: 22 Nov 2017, 13:47

Re: RPIEasy

#129 Post by henkdejonge » 13 Apr 2019, 14:01

Hi,

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

Henk
Attachments
pygame.JPG
pygame.JPG (19.16 KiB) Viewed 67119 times

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#130 Post by enesbcs » 13 Apr 2019, 19:18

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.

bennybubble
Normal user
Posts: 44
Joined: 31 Jan 2016, 21:05

Re: RPIEasy

#131 Post by bennybubble » 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

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#132 Post by enesbcs » 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.

bennybubble
Normal user
Posts: 44
Joined: 31 Jan 2016, 21:05

Re: RPIEasy

#133 Post by bennybubble » 24 May 2019, 19:50

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

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#134 Post by enesbcs » 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.

bennybubble
Normal user
Posts: 44
Joined: 31 Jan 2016, 21:05

Re: RPIEasy

#135 Post by bennybubble » 27 May 2019, 12:31

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

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#136 Post by enesbcs » 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

pirquadrat
New user
Posts: 3
Joined: 28 May 2019, 11:10

Re: RPIEasy

#137 Post by pirquadrat » 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

bennybubble
Normal user
Posts: 44
Joined: 31 Jan 2016, 21:05

Re: RPIEasy

#138 Post by bennybubble » 28 May 2019, 11:53

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

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#139 Post by enesbcs » 28 May 2019, 17:29

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. :)

pirquadrat
New user
Posts: 3
Joined: 28 May 2019, 11:10

Re: RPIEasy

#140 Post by pirquadrat » 28 May 2019, 19:57

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 ;)

StefanD
Normal user
Posts: 21
Joined: 28 Jan 2017, 20:07

Re: RPIEasy

#141 Post by StefanD » 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

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#142 Post by enesbcs » 30 Jul 2019, 20:23

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...

StefanD
Normal user
Posts: 21
Joined: 28 Jan 2017, 20:07

Re: RPIEasy

#143 Post by StefanD » 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

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#144 Post by enesbcs » 07 Aug 2019, 07:04

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.

StefanD
Normal user
Posts: 21
Joined: 28 Jan 2017, 20:07

Re: RPIEasy

#145 Post by StefanD » 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

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#146 Post by enesbcs » 15 Aug 2019, 17:43

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

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#147 Post by enesbcs » 19 Aug 2019, 10:51

I've published some basic RPIEasy usage manual at instructables:
https://www.instructables.com/id/RPIEas ... or-Device/

llevet
New user
Posts: 6
Joined: 19 Oct 2018, 16:59

Re: RPIEasy

#148 Post by llevet » 28 Sep 2019, 21:13

Hi enesbcs,

Very cool project !

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

Thank's a lot.

Ludo.

llevet
New user
Posts: 6
Joined: 19 Oct 2018, 16:59

Re: RPIEasy

#149 Post by llevet » 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.

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: RPIEasy

#150 Post by enesbcs » 04 Oct 2019, 08:23

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests