Ankündigung

Einklappen
Keine Ankündigung bisher.

How to get external data into sh.py?

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

    How to get external data into sh.py?

    hello guys....
    i was wondering how to get external data inside the smart home system?
    I'm planning to do a little code to measure water consumption based on the little wheel at the water meter, and a small webcam... But how do I get that data in to the smart home?
    I am thinking creating kind of app running in background or something....

    #2
    a) Look at Arduino and KNX Thread and create yourself a small KNX device to send the water meter info directly on KNX.
    b) Webcam? What kind of data from webcam would be needed in smarthome.py? The image can be incorporated into smartvisu. Other data can be polled from a logic within smarthome.py...

    Regards,
    Bernd

    Kommentar


      #3
      Yea that could be a solution with the arduino - but my sh is running on a Intel nuc,where I wanna do the data collection.... The plan is to use Python as a kind of Vision system, where the system detects every time the water meter changes status...

      Something like:
      http://forum.mysensors.org/topic/159...-with-a-webcam

      yes agree - the script could be implemented directly as a logic and triggered pretty often

      But some of the "applications" out there are all not written in Python - maybe there was a way to exchange data between etc. C++ and Python
      Zuletzt geändert von Rasmus7700; 09.11.2015, 07:09.

      Kommentar


        #4
        Take a look at the network plugin. This seems a pretty clean approach: http://mknx.github.io/smarthome/plugins/network.html

        Kommentar


          #5
          The idea with the network plugin is a good approach IMHO. You can send a packet via UDP from your application to the localhost and listen with the plugin. That way you won't need an IPC or a thread safe file or something like that.

          Kommentar


            #6
            Awesome... Gonna take a look at that

            Kommentar

            Lädt...
            X