Comments (13)
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.
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.
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.
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.
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.
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.
Can you test a url with & in the description? does it come through ok?
from domoticz-aurora-theme.
In description or data field? โบ
from domoticz-aurora-theme.
Oh sorry. Desc.
from domoticz-aurora-theme.
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.
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.
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.
so closing this
from domoticz-aurora-theme.
Related Issues (20)
- Buttons don't work to jump to graphicz HOT 2
- RGB lamp page alignment incorrect
- Alignment of icon HOT 3
- Missing visualizations of data HOT 2
- Dashboard selector switch alignment HOT 10
- Html files are changed HOT 3
- Wrong alignments on grouped items (and invisible icons) HOT 3
- Wrong alignment of Selectors (in the last beta) HOT 2
- Dashboard icon issue with Blinds that support Stop buttons HOT 5
- New Dialog on Room plan (Adding devices to a room) HOT 2
- Uservariable theme-aurora-styling does not exis HOT 1
- Camera Preview in the new domoticz v2020.1 HOT 3
- Theme manager HOT 2
- Thermostat SetPoint dialog not themed
- Dataviz on dashboard HOT 7
- items with double icon need rearrangement
- Aurora broken on the latest beta of Domoticz? HOT 10
- Dashboard incorrectly displayed if a room with more than 3 elements is selected HOT 1
- Page refresh not working HOT 1
- Favorite icon does not show up with Domoticz 2023.2 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from domoticz-aurora-theme.