Ankündigung

Einklappen
Keine Ankündigung bisher.

How do you guys do debugging?

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    How do you guys do debugging?

    Hello Guys.
    I was wondering - how do you do debugging when working with the SH.py logics/plugins?

    #2
    logger.info()

    Kommentar


      #3
      ... or logger.debug()

      Gruß, Waldemar
      OpenKNX www.openknx.de

      Kommentar


        #4
        Hi,

        just searching the forum or the smarthome wiki would lead to

        https://github.com/mknx/smarthome/wi...f-Smarthome.py

        :-)

        Michel

        Kommentar


          #5
          Yes, i also try using the Eclipse - but with no success... there must be something i've done wrong

          Kommentar


            #6
            Hi,

            attached another description, I've documented for myself. I didn't check the difference to the wiki, but that's my working setup. Hope this helps.

            Michel

            Angehängte Dateien

            Kommentar


              #7
              Wow Orion - Thanks a lot... Exactly what I needed.... Gonna try it and report back

              Kommentar


                #8
                Goodmorning Orion - i can't download the file you uploaded?

                Kommentar


                  #9
                  I'll try it a second time this evening.

                  Kommentar


                    #10
                    Thanks a lot

                    Kommentar


                      #11
                      In dropbox, file is too big.
                      Link: https://www.dropbox.com/sh/n8qbmogmw...7BP1VMvXa?dl=0

                      Kommentar


                        #12
                        Orion :
                        Cool - got the file Thanks....
                        Just to be sure...
                        You are using your setup as developping on a Mac with Eclipse, then you update your git account from your mac - and when pressing the "reload" button the Pi (Qnap) pulls updates from git and then doing a restart of smarthome and also smartvisu?
                        So you are controlling everything with the GIT function between your Mac <-> Qnap?

                        My installation is based on a traditionally install (ubuntu) and not the Pi image.... Do you know how to get the SmartControl function in that installation?

                        Kommentar


                          #13
                          Yes, you're right. I'm using the GIT at QNAP (meanwhile GIT an ubuntu server running in a VM on QNAP) as the central Point for the Repo. I develop against this repo and I'm doing the deployment from this Repo.
                          SmartControl should be explained as well, I'm still using the SnartControl in that environment (with an extension that you can update only the smartvisu -> then a restart of smarthome is not needed !)

                          Kommentar


                            #14
                            Could you please explain the git a bit more in the Ubuntu server? Then your setup is almost same as mine
                            you say you deploy from this repo? ... Sorry a bit n00b to git

                            okay you you are referencing to the smart control in the pdf- but are you setting it all up, or did you steal something from the pi image?
                            The config page should be somewhere?
                            Thanks

                            Kommentar


                              #15
                              I used ubuntu server 14.04 (headless ubuntu - without graphical interface to be small). On that install git. There are many descriptions out there. I don't remember, which one I used. This ubuntu runs in a virtual machine.

                              The git instance on that VM ist used as the REMOTE repo for your local develop machine and as remote for your target. With that setup you can push you development to the REMOTE and I'm using smartControl to fetch the configuration from that VM.

                              Sounds a little bit complicated (because you could just use a samba share between your develop matching and your target to copy your configuration). But I tried to learn GIT. So if you plan so, please take a look more to GIT descriptions ans so on. Simple for start is the atlassian website. Just use Mr. Google to find it.

                              Kommentar

                              Lädt...
                              X