Code Monkey home page Code Monkey logo

Comments (13)

xztraz avatar xztraz commented on July 18, 2024 1

i don't want to make external calls for an internal server for security.. so basicly try to get data lenght in domotics longer to solve this. i'll make a request there if so is the case

from domoticz-aurora-theme.

xztraz avatar xztraz commented on July 18, 2024

There is possible to replace & with %26. but the text data is limited in length. thereby truncating the adress. well that must be a domoticz specific issue. not the theme.

from domoticz-aurora-theme.

xztraz avatar xztraz commented on July 18, 2024

Could you use the description field instead? i don't think logging of what adress is entered is necessary and description field have a lot more space for addresses.

from domoticz-aurora-theme.

xztraz avatar xztraz commented on July 18, 2024

also scaling and offsett would be interesting in the iframe. say a weather radar. they are always cluttered with buttons and stuff.

from domoticz-aurora-theme.

flatsiedatsie avatar flatsiedatsie commented on July 18, 2024

I wanted to use description originally, but javascript doesn't have easy access to the description on the dashboard.

How about using a url shortener?

from domoticz-aurora-theme.

xztraz avatar xztraz commented on July 18, 2024

hm json gets you the description for the sensor otherwise

test
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "https://192.168.1.197/cgi-bin-zm/nph-zms?scale=50&mode=jpeg&mon",
"Description" : "Descriptintext in description. it can be alot longer than anything else ans seem to handle chars as !"#ยค%&/()=?`^**'<>| Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123Test123-should be anough",
"Favorite" : 1,
"HardwareID" : 8,
"HardwareName" : "Dummy",
"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal" : 15,
"HaveTimeout" : false,
"ID" : "00082897",
"LastUpdate" : "2018-02-25 22:52:14",
"Name" : "Iframe",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : false,
"SignalLevel" : "-",
"SubType" : "Text",
"Timers" : "false",
"Type" : "General",
"TypeImg" : "text",
"Unit" : 1,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "897"
}

from domoticz-aurora-theme.

flatsiedatsie avatar flatsiedatsie commented on July 18, 2024

Can you test a url with & in the description? does it come through ok?

from domoticz-aurora-theme.

xztraz avatar xztraz commented on July 18, 2024

In description or data field? โ˜บ

from domoticz-aurora-theme.

xztraz avatar xztraz commented on July 18, 2024

Oh sorry. Desc.

from domoticz-aurora-theme.

flatsiedatsie avatar flatsiedatsie commented on July 18, 2024

Just thinking out loud: an advantage of using the data field is that you could create all kinds of fun things, like sending a URL to Domoticz which then gets displayed in the interface. That could be useful for, for example, administrators that want to show some news or alert to users. Or you could have a url that needs to be programmatically updated (changing a value in it to the current date for example), and always show up to date content that way. Or send an sms/message with a url of a picture, so that the people back home can see pictures from the people out and about.

Perhaps we could ask for the allowed length of text values to be changed in Domoticz, and add some code that lets & work.

from domoticz-aurora-theme.

xztraz avatar xztraz commented on July 18, 2024

The description field can take & as seen in all the text i entered in the example. But as you say if you can write to it from outside that would be a nice feature. I guess you cant change description field via json?

from domoticz-aurora-theme.

xztraz avatar xztraz commented on July 18, 2024

tried a bit more. if you replace all signs with urlencoded ones it works. but you cant edit the text on the button again since it will be encoded as the right signs like &? and then if saving it gets truncated. so this is a domoticz bug but you can work around it as is. long adress seem to work now if replacing?& and such

from domoticz-aurora-theme.

xztraz avatar xztraz commented on July 18, 2024

so closing this

from domoticz-aurora-theme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.