Author Topic: Get unhashed scene code  (Read 356 times)

Offline jlind

  • Full Member
  • ***
  • Posts: 200
  • Karma: +7/-6
Get unhashed scene code
« on: March 07, 2017, 11:16:51 am »
Anyone know how to get a unhashed version of scene code?  I currently use wget(url) to get my startup code and scene code emailed to me, but recently the code is being hashed so that it's unreadable.  Heres my current code:
Code: [Select]
local strURL = tostring("http://"..tostring(gtblVeraControllers[tonumber(tostring(luup.pk_accesspoint))]["IP"])..":3480/data_request?id=user_data2")
    local _,strX = luup.inet.wget(strURL)
local objJSON = require "dkjson"

local tblJ = objJSON.decode (strX)

local strEmailSubject = "Vera Source Code"
local strEmailBody = ""
    local strLineChar = "*"   
    strEmailBody = strEmailBody..MyUtilityCode.fCreateBanner("Startup Lua:", 100, strLineChar).."\n\n"
strEmailBody = strEmailBody..tostring(tblJ.StartupCode).."\n\n"

strEmailBody = strEmailBody..MyUtilityCode.fCreateBanner("Scene Lua:", 100, strLineChar).."\n\n"   
for Index, Value in pairs(tblJ.scenes) do
  if Value.lua then
if (tostring(Value.lua) ~= "") then
strEmailBody = strEmailBody.."\n\n"..MyUtilityCode.fCreateBanner(tostring(, 50, strLineChar).."\n"
strEmailBody = strEmailBody..tostring(Value.lua)..'\n'

VeraLite/VeraPlus with UI7, Multiple GE switches, GE Outlets, Aeon Smart Switches, Minimote, GE Portable outlets  Apps: (Pentair Autelis Plugin, Weather Underground, Honeywell WiFi Thermo, System Monitor, AlternateUI)