• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
System update from pilight v7 to pilight v8
#1
I have an installed and working Raspberry with the pilight v7 running and managing many devices with lots of rules. 
I used a new SD Card and installed following your instructions the version 8. 

Everything is running well, but I do not get any feedback with pilight-receive. 

I used on v7 the default GPIOs for send and receive, do I need to change it?

I guess that many guys will have the question for the migration from v7 to v8. 
I'm open to everything you did a great job even with version 7.

What is the recommendation how to update to v8?

May be you can put a configuration template for this, thank you in advance.

best regards

Christian
 
Reply
#2
Hi Christian,

I often find here it is easier if you post your config to give a starting point on what could be going wrong (make sure to put it in code tags [code ] [/code ] so it is easier to read). Smile

However, from the manual

"You must now specify which GPIO platform pilight is running on. Refer to the settings page for more information. "

https://manual.pilight.org/configuration...o-platform

Josh
 
Reply
#3
Hello Josh,

thank you for the fast answer, yes I have seen the documentation already:
please find attached my config.json. I reduced it to the minimum to have at least one switch working, but until now no success:

Code:
{
 "devices": {
               "arbeit": {
                       "protocol": [ "kaku_switch" ],
                       "id": [{
                               "id": 21992446,
                               "unit": 1
                       }],
                       "state": "on"
               }
       },
       "rules": {},
       "gui": {
               "arbeit": {
                       "name": "Arbeitszimmer",
                       "group": [ "Funkschalter" ],
                       "media": [ "all" ],
                       "readonly": 0
               }
       },
       "settings": {
               "log-level": 6,
               "pid-file": "/var/run/pilight.pid",
               "log-file": "/var/log/pilight.log",
               "webserver-enable": 1,
               "webserver-root": "/usr/local/share/pilight/webgui",
               "webserver-http-port": 5001,
               "webserver-https-port": 5002,
               "gpio-platform": "raspberrypi3"
       },
       "hardware": {
               "433gpio": {
                       "sender": 0,
                       "receiver": 1
               }
       },
       "registry": {}
}
 
Reply
#4
Avoiding my day job and nothing to read on theregister Smile

Can you change your post to put your reply in code tag (put [code ] and [/code ] at the begging and end without the spaces), formats it nicely. https://forum.pilight.org/announcements.php?aid=2

Lets start with the obvious one... are you using a raspberrypi3? and if you start in debug mode

sudo service pilight stop
sudo pilight-daemon -D &

Do you get any errors? Have you also checked if you have any loose connections or have you can you put your old SD card in to make sure that it is working?
 
Reply
#5
please find the log
Code:
$ [Jan 09 12:32:22:270634] pilight-daemon: INFO: version v8.0.4
[Jan 09 12:32:22:275189] pilight-daemon: DEBUG: ssdp sent search
[Jan 09 12:32:22:378203] pilight-daemon: NOTICE: a pilight daemon was found @192.168.2.36, clientizing
[Jan 09 12:32:22:497882] pilight-daemon: DEBUG: new thread node, 1 thread running
[Jan 09 12:32:22:509221] pilight-daemon: DEBUG: new thread sender, 2 threads running
[Jan 09 12:32:22:517467] pilight-daemon: DEBUG: new thread broadcaster, 3 threads running
[Jan 09 12:32:22:524671] pilight-daemon: DEBUG: ssdp sent search
[Jan 09 12:32:22:537805] pilight-daemon: DEBUG: new thread 433gpio, 4 threads running
[Jan 09 12:32:22:542444] pilight-daemon: DEBUG: new thread receive parser, 5 threads running
[Jan 09 12:32:22:629775] pilight-daemon: DEBUG: socket write succeeded: {"action":"identify","uuid":"0000-b8-27-eb-051aa3","options":{"receiver":1,"forward":1,"config":1}}

[Jan 09 12:32:22:634603] pilight-daemon: DEBUG: socket recv: {"status":"success"}
[Jan 09 12:32:22:636265] pilight-daemon: DEBUG: socket write succeeded: {"action":"request config"}

[Jan 09 12:32:22:641761] pilight-daemon: DEBUG: socket recv: {"message":"config","config":{"devices":{"arbeit":{"protocol":["kaku_switch"],"id":[{"id":21992446,"unit":1}],"state":"off"}},"rules":{},"gui":{"arbeit":{"name":"Arbeitszimmer","group":["Funkschalter"],"media":["all"],"readonly":0}},"settings":{"log-level":6,"pid-file":"/var/run/pilight.pid","log-file":"/var/log/pilight.log","webserver-enable":1,"webserver-root":"/usr/local/share/pilight/webgui","webserver-http-port":5001,"webserver-https-port":5002,"gpio-platform":"raspberrypi3"},"hardware":{"433gpio":{"sender":0,"receiver":1}},"registry":{"webserver":{"ssl":{"certificate":{"secure":0,"location":"/etc/pilight/pilight.pem"}}},"pilight":{"version":{"current":"8.0.4"}}}}}
[Jan 09 12:32:22:644771] pilight-daemon: DEBUG: garbage collected config gui library
[Jan 09 12:32:22:649811] pilight-daemon: DEBUG: garbage collected config devices library
[Jan 09 12:32:22:653061] pilight-daemon: DEBUG: garbage collected config rules library
[Jan 09 12:32:22:653848] pilight-daemon: DEBUG: garbage collected config registry library
[Jan 09 12:32:22:657937] pilight-daemon: DEBUG: loaded master configuration
[ Jan 09 12:32:23:61366] pilight-daemon: DEBUG: cpu: 0.000000%
[ Jan 09 12:32:23:64141] pilight-daemon: DEBUG: socket write succeeded: {"values":{"cpu":0.0000000247974079},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-051aa3","action":"update"}

[ Jan 09 12:32:23:66067] pilight-daemon: DEBUG: broadcasted: {"values":{"cpu":0.0000000247974079},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-051aa3"}
[ Jan 09 12:32:26:64882] pilight-daemon: DEBUG: cpu: 35.012910%
[ Jan 09 12:32:26:66134] pilight-daemon: DEBUG: socket write succeeded: {"values":{"cpu":35.0129102169299173},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-051aa3","action":"update"}

[ Jan 09 12:32:26:66341] pilight-daemon: DEBUG: broadcasted: {"values":{"cpu":35.0129102169299173},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-051aa3"}
[ Jan 09 12:32:29:67489] pilight-daemon: DEBUG: cpu: 34.527157%
[ Jan 09 12:32:29:68945] pilight-daemon: DEBUG: socket write succeeded: {"values":{"cpu":34.5271568716300123},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-051aa3","action":"update"}

[ Jan 09 12:32:29:69184] pilight-daemon: DEBUG: broadcasted: {"values":{"cpu":34.5271568716300123},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-051aa3"}
[ Jan 09 12:32:32:68229] pilight-daemon: DEBUG: cpu: 34.642749%
[ Jan 09 12:32:32:69517] pilight-daemon: DEBUG: socket write succeeded: {"values":{"cpu":34.6427491741335487},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-051aa3","action":"update"}

[ Jan 09 12:32:32:69687] pilight-daemon: DEBUG: broadcasted: {"values":{"cpu":34.6427491741335487},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-051aa3"}
[ Jan 09 12:32:35:71962] pilight-daemon: DEBUG: cpu: 34.728872%
[ Jan 09 12:32:35:73053] pilight-daemon: DEBUG: socket write succeeded: {"values":{"cpu":34.7288723965985042},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-051aa3","action":"update"}

[ Jan 09 12:32:35:73214] pilight-daemon: DEBUG: broadcasted: {"values":{"cpu":34.7288723965985042},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-051aa3"}

I can access the webinterface.
And yes, if I put back the old SD card everything is working fine.
But with pilight-receive, I have no results in the version v8.

Update:
It is not the Raspberry PI 3
I got as information:


raspberrypi1b+ 

Let me investigate if I can solve it Wink
 
Reply
#6
Hello Josh,

you can close the topic.
Thank you for your support. 

For all the others, if you do not know exactly which PI you have, just use:

Code:
cat /sys/firmware/devicetree/base/model;echo

This helped me, Angel 

Thank you for the great Tool and Development.
 
Reply
#7
I will bookmark this post this thread as inspiration for a quick start guide.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
Tongue pilight 8.1.5-1-gc0a175e0 Chrashes fleisch 4 98 08-17-2019, 01:04 PM
Last Post: curlymo
  pilight for Raspbian Buster (raspberry pi 4) ? starob 29 1,530 07-15-2019, 08:45 PM
Last Post: curlymo
  pilight-receive Filteroption not working Alex 2 341 07-14-2019, 08:35 AM
Last Post: Alex
  pilight usb nano format conversion ettman8 2 236 07-14-2019, 08:32 AM
Last Post: curlymo
  pilight 8.1.4 crashes after some hours Ulrich.Arnold 47 2,008 06-29-2019, 08:58 PM
Last Post: curlymo
  Raspberry PI, gpio-ir-tx and pilight not starting lordslash 5 531 06-11-2019, 05:19 PM
Last Post: curlymo
  pilight fails starting on boot Alex 5 466 06-09-2019, 06:02 PM
Last Post: curlymo
  Google Assistant coupled to pilight hansrijn2 4 905 05-29-2019, 06:54 PM
Last Post: curlymo
  pilight-send does not stop (terminate) va13 3 460 05-15-2019, 06:06 PM
Last Post: curlymo
  oom_reaper: reaped process pilight-daemon va13 4 520 05-15-2019, 08:03 AM
Last Post: va13

Forum Jump:


Browsing: 1 Guest(s)