This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.

Help with data (temp) extraction homey to txt file

Hi All,

I'm new to homey. Since 2 days i have my homey, and before i had Domoticz. I wanted to start something new with new protocols.

Now i have a question.
With domoticz i could read out a device with a Json command:



it gives me the following information:

{
   "ActTime" : 1511258958,
   "ServerTime" : "2017-11-21 11:09:18",
   "Sunrise" : "08:04",
   "Sunset" : "16:41",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 100,
         "CustomImage" : 0,
         "Data" : "18.3 C, 62 %",
         "Description" : "",
         "DewPoint" : "10.89",
         "Favorite" : 0,
         "HardwareID" : 2,
         "HardwareName" : "Domoticz",
         "HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
         "HardwareTypeVal" : 1,
         "HaveTimeout" : false,
         "Humidity" : 62,
         "HumidityStatus" : "Comfortable",
         "ID" : "770E",
         "LastUpdate" : "2017-11-21 11:08:53",
         "Name" : "Temp Slaapkamer",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : 7,
         "SubType" : "Cresta, TFA TS34C",
         "Temp" : 18.300000000000001,
         "Timers" : "false",
         "Type" : "Temp + Humidity",
         "TypeImg" : "temperature",
         "Unit" : 3,
         "Used" : 1,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "923"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}

With another script (php) i take the temperature and Humidity and put it in a TXT file so i can push the that data to my camera app. The camera app (blueiris) can display that data in the camera stream.


Is there a way in homey to do this ?
(list devices, get the ID of the device, get temperature and humidity and push it to a txt file)


Comments

  • You could create an app but if you simply want to read out these values you'd better install
    https://apps.athom.com/app/com.internet
  • tnx bvdbos, i dont have that programmer knowledge :P i can take some scripts and adjust it but writing it from 0 its a pain in the ass :P haha..

    I have take a look at the http, but its something new. Do i have to make a flow with it ?
Sign In or Register to comment.