Dashticz - General Discussions
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 667
- Joined: Wednesday 08 March 2017 9:42
- Target OS: Linux
- Domoticz version: 3.8993
- Location: Amsterdam
- Contact:
Re: Dashticz v2.0, custom positioning and multiple screens
In last update the NEWS RSS Feed doesn't work here. Others have same issues? if not can someone send me a config so i can check if i do it correct in new update.
On OSX i can see a whole list of news, but not a small line with scrolling news items. On Android Tablet no news at all... Using chrome and firefox to test it.. nothing work
On OSX i can see a whole list of news, but not a small line with scrolling news items. On Android Tablet no news at all... Using chrome and firefox to test it.. nothing work
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
- gielie
- Posts: 290
- Joined: Tuesday 12 January 2016 11:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest β
- Location: The Netherlands (Alkmaar)
- Contact:
Re: Dashticz v2.0, custom positioning and multiple screens
oh crap, just did a git pull and now my CONFIG.js is overwritten, i never had this before. Allright start from scratch again.
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
-
- Posts: 278
- Joined: Sunday 14 December 2014 12:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.11375
- Contact:
Re: Dashticz v2.0, custom positioning and multiple screens
I noticed that my graph isn't working after i put in the config 'graph_29'. It is only showing
This is the output
Code: Select all
{
"ActTime" : 1493040354,
"ServerTime" : "2017-04-24 15:25:54",
"Sunrise" : "06:25",
"Sunset" : "20:50",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CounterToday" : "4.253 kWh",
"CustomImage" : 0,
"Data" : "5842.296 kWh",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 11,
"HardwareName" : "MySensor gateway begane grond",
"HardwareType" : "MySensors Gateway USB",
"HardwareTypeVal" : 41,
"HaveTimeout" : false,
"ID" : "00000101",
"LastUpdate" : "2017-04-24 15:25:46",
"Name" : "Huidig verbruik",
"Notifications" : "false",
"Options" : "",
"PlanID" : "13",
"PlanIDs" : [ 13 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "kWh",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "General",
"TypeImg" : "current",
"Unit" : 1,
"Usage" : "198.0 Watt",
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "29"
}
],
"status" : "OK",
"title" : "Devices"
}
Code: Select all
{
"ValueQuantity" : "",
"ValueUnits" : "",
"method" : 0,
"result" : [
{
"d" : "2017-04-23 15:00",
"v" : "200.000"
},
{
"d" : "2017-04-23 16:00",
"v" : "1202.000"
},
{
"d" : "2017-04-23 17:00",
"v" : "2130.000"
},
{
"d" : "2017-04-23 18:00",
"v" : "1574.000"
},
{
"d" : "2017-04-23 19:00",
"v" : "342.000"
},
{
"d" : "2017-04-23 20:00",
"v" : "382.000"
},
{
"d" : "2017-04-23 21:00",
"v" : "512.000"
},
{
"d" : "2017-04-23 22:00",
"v" : "807.000"
},
{
"d" : "2017-04-23 23:00",
"v" : "322.000"
},
{
"d" : "2017-04-24 00:00",
"v" : "558.000"
},
{
"d" : "2017-04-24 01:00",
"v" : "190.000"
},
{
"d" : "2017-04-24 02:00",
"v" : "171.000"
},
{
"d" : "2017-04-24 03:00",
"v" : "172.000"
},
{
"d" : "2017-04-24 04:00",
"v" : "168.000"
},
{
"d" : "2017-04-24 05:00",
"v" : "164.000"
},
{
"d" : "2017-04-24 06:00",
"v" : "197.000"
},
{
"d" : "2017-04-24 07:00",
"v" : "462.000"
},
{
"d" : "2017-04-24 08:00",
"v" : "356.000"
},
{
"d" : "2017-04-24 09:00",
"v" : "221.000"
},
{
"d" : "2017-04-24 10:00",
"v" : "205.000"
},
{
"d" : "2017-04-24 11:00",
"v" : "207.000"
},
{
"d" : "2017-04-24 12:00",
"v" : "255.000"
},
{
"d" : "2017-04-24 13:00",
"v" : "260.000"
},
{
"d" : "2017-04-24 14:00",
"v" : "244.000"
}
],
"status" : "OK",
"title" : "Graph counter day"
}
-
- Posts: 278
- Joined: Sunday 14 December 2014 12:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.11375
- Contact:
Re: Dashticz v2.0, custom positioning and multiple screens
Edit:SwordFish wrote:I noticed that my graph isn't working after i put in the config 'graph_29'. It is only showing
Knipsel.JPG
This is the outputCode: Select all
{ "ActTime" : 1493040354, "ServerTime" : "2017-04-24 15:25:54", "Sunrise" : "06:25", "Sunset" : "20:50", "result" : [ { "AddjMulti" : 1.0, "AddjMulti2" : 1.0, "AddjValue" : 0.0, "AddjValue2" : 0.0, "BatteryLevel" : 255, "CounterToday" : "4.253 kWh", "CustomImage" : 0, "Data" : "5842.296 kWh", "Description" : "", "Favorite" : 0, "HardwareID" : 11, "HardwareName" : "MySensor gateway begane grond", "HardwareType" : "MySensors Gateway USB", "HardwareTypeVal" : 41, "HaveTimeout" : false, "ID" : "00000101", "LastUpdate" : "2017-04-24 15:25:46", "Name" : "Huidig verbruik", "Notifications" : "false", "Options" : "", "PlanID" : "13", "PlanIDs" : [ 13 ], "Protected" : false, "ShowNotifications" : true, "SignalLevel" : "-", "SubType" : "kWh", "SwitchTypeVal" : 0, "Timers" : "false", "Type" : "General", "TypeImg" : "current", "Unit" : 1, "Usage" : "198.0 Watt", "Used" : 1, "XOffset" : "0", "YOffset" : "0", "idx" : "29" } ], "status" : "OK", "title" : "Devices" }
Code: Select all
{ "ValueQuantity" : "", "ValueUnits" : "", "method" : 0, "result" : [ { "d" : "2017-04-23 15:00", "v" : "200.000" }, { "d" : "2017-04-23 16:00", "v" : "1202.000" }, { "d" : "2017-04-23 17:00", "v" : "2130.000" }, { "d" : "2017-04-23 18:00", "v" : "1574.000" }, { "d" : "2017-04-23 19:00", "v" : "342.000" }, { "d" : "2017-04-23 20:00", "v" : "382.000" }, { "d" : "2017-04-23 21:00", "v" : "512.000" }, { "d" : "2017-04-23 22:00", "v" : "807.000" }, { "d" : "2017-04-23 23:00", "v" : "322.000" }, { "d" : "2017-04-24 00:00", "v" : "558.000" }, { "d" : "2017-04-24 01:00", "v" : "190.000" }, { "d" : "2017-04-24 02:00", "v" : "171.000" }, { "d" : "2017-04-24 03:00", "v" : "172.000" }, { "d" : "2017-04-24 04:00", "v" : "168.000" }, { "d" : "2017-04-24 05:00", "v" : "164.000" }, { "d" : "2017-04-24 06:00", "v" : "197.000" }, { "d" : "2017-04-24 07:00", "v" : "462.000" }, { "d" : "2017-04-24 08:00", "v" : "356.000" }, { "d" : "2017-04-24 09:00", "v" : "221.000" }, { "d" : "2017-04-24 10:00", "v" : "205.000" }, { "d" : "2017-04-24 11:00", "v" : "207.000" }, { "d" : "2017-04-24 12:00", "v" : "255.000" }, { "d" : "2017-04-24 13:00", "v" : "260.000" }, { "d" : "2017-04-24 14:00", "v" : "244.000" } ], "status" : "OK", "title" : "Graph counter day" }
nevermind, its working
-
- Posts: 278
- Joined: Sunday 14 December 2014 12:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.11375
- Contact:
Re: Dashticz v2.0, custom positioning and multiple screens
[quote="SwordFish"][quote="SwordFish"]I noticed that my graph isn't working after i put in the config 'graph_29'. It is only showing
Knipsel.JPG
This is the output
Knipsel.JPG
This is the output
Code: Select all
{
"ActTime" : 1493040354,
"ServerTime" : "2017-04-24 15:25:54",
"Sunrise" : "06:25",
"Sunset" : "20:50",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CounterToday" : "4.253 kWh",
"CustomImage" : 0,
"Data" : "5842.296 kWh",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 11,
"HardwareName" : "MySensor gateway begane grond",
"HardwareType" : "MySensors Gateway USB",
"HardwareTypeVal" : 41,
"HaveTimeout" : false,
"ID" : "00000101",
"LastUpdate" : "2017-04-24 15:25:46",
"Name" : "Huidig verbruik",
"Notifications" : "false",
"Options" : "",
"PlanID" : "13",
"PlanIDs" : [ 13 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "kWh",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "General",
"TypeImg" : "current",
"Unit" : 1,
"Usage" : "198.0 Watt",
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "29"
}
],
"status" : "OK",
"title" : "Devices"
}
Code: Select all
{
"ValueQuantity" : "",
"ValueUnits" : "",
"method" : 0,
"result" : [
{
"d" : "2017-04-23 15:00",
"v" : "200.000"
},
{
"d" : "2017-04-23 16:00",
"v" : "1202.000"
},
{
"d" : "2017-04-23 17:00",
"v" : "2130.000"
},
{
"d" : "2017-04-23 18:00",
"v" : "1574.000"
},
{
"d" : "2017-04-23 19:00",
"v" : "342.000"
},
{
"d" : "2017-04-23 20:00",
"v" : "382.000"
},
{
"d" : "2017-04-23 21:00",
"v" : "512.000"
},
{
"d" : "2017-04-23 22:00",
"v" : "807.000"
},
{
"d" : "2017-04-23 23:00",
"v" : "322.000"
},
{
"d" : "2017-04-24 00:00",
"v" : "558.000"
},
{
"d" : "2017-04-24 01:00",
"v" : "190.000"
},
{
"d" : "2017-04-24 02:00",
"v" : "171.000"
},
{
"d" : "2017-04-24 03:00",
"v" : "172.000"
},
{
"d" : "2017-04-24 04:00",
"v" : "168.000"
},
{
"d" : "2017-04-24 05:00",
"v" : "164.000"
},
{
"d" : "2017-04-24 06:00",
"v" : "197.000"
},
{
"d" : "2017-04-24 07:00",
"v" : "462.000"
},
{
"d" : "2017-04-24 08:00",
"v" : "356.000"
},
{
"d" : "2017-04-24 09:00",
"v" : "221.000"
},
{
"d" : "2017-04-24 10:00",
"v" : "205.000"
},
{
"d" : "2017-04-24 11:00",
"v" : "207.000"
},
{
"d" : "2017-04-24 12:00",
"v" : "255.000"
},
{
"d" : "2017-04-24 13:00",
"v" : "260.000"
},
{
"d" : "2017-04-24 14:00",
"v" : "244.000"
}
],
"status" : "OK",
"title" : "Graph counter day"
}
Last edited by SwordFish on Monday 24 April 2017 16:02, edited 1 time in total.
-
- Posts: 278
- Joined: Sunday 14 December 2014 12:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.11375
- Contact:
Re: Dashticz v2.0, custom positioning and multiple screens
I noticed that my graph isn't working after i put in the config 'graph_29'. It is only showing
This is the output
Code: Select all
{
"ActTime" : 1493040354,
"ServerTime" : "2017-04-24 15:25:54",
"Sunrise" : "06:25",
"Sunset" : "20:50",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CounterToday" : "4.253 kWh",
"CustomImage" : 0,
"Data" : "5842.296 kWh",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 11,
"HardwareName" : "MySensor gateway begane grond",
"HardwareType" : "MySensors Gateway USB",
"HardwareTypeVal" : 41,
"HaveTimeout" : false,
"ID" : "00000101",
"LastUpdate" : "2017-04-24 15:25:46",
"Name" : "Huidig verbruik",
"Notifications" : "false",
"Options" : "",
"PlanID" : "13",
"PlanIDs" : [ 13 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "kWh",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "General",
"TypeImg" : "current",
"Unit" : 1,
"Usage" : "198.0 Watt",
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "29"
}
],
"status" : "OK",
"title" : "Devices"
}
Code: Select all
{
"ValueQuantity" : "",
"ValueUnits" : "",
"method" : 0,
"result" : [
{
"d" : "2017-04-23 15:00",
"v" : "200.000"
},
{
"d" : "2017-04-23 16:00",
"v" : "1202.000"
},
{
"d" : "2017-04-23 17:00",
"v" : "2130.000"
},
{
"d" : "2017-04-23 18:00",
"v" : "1574.000"
},
{
"d" : "2017-04-23 19:00",
"v" : "342.000"
},
{
"d" : "2017-04-23 20:00",
"v" : "382.000"
},
{
"d" : "2017-04-23 21:00",
"v" : "512.000"
},
{
"d" : "2017-04-23 22:00",
"v" : "807.000"
},
{
"d" : "2017-04-23 23:00",
"v" : "322.000"
},
{
"d" : "2017-04-24 00:00",
"v" : "558.000"
},
{
"d" : "2017-04-24 01:00",
"v" : "190.000"
},
{
"d" : "2017-04-24 02:00",
"v" : "171.000"
},
{
"d" : "2017-04-24 03:00",
"v" : "172.000"
},
{
"d" : "2017-04-24 04:00",
"v" : "168.000"
},
{
"d" : "2017-04-24 05:00",
"v" : "164.000"
},
{
"d" : "2017-04-24 06:00",
"v" : "197.000"
},
{
"d" : "2017-04-24 07:00",
"v" : "462.000"
},
{
"d" : "2017-04-24 08:00",
"v" : "356.000"
},
{
"d" : "2017-04-24 09:00",
"v" : "221.000"
},
{
"d" : "2017-04-24 10:00",
"v" : "205.000"
},
{
"d" : "2017-04-24 11:00",
"v" : "207.000"
},
{
"d" : "2017-04-24 12:00",
"v" : "255.000"
},
{
"d" : "2017-04-24 13:00",
"v" : "260.000"
},
{
"d" : "2017-04-24 14:00",
"v" : "244.000"
}
],
"status" : "OK",
"title" : "Graph counter day"
}
-
- Posts: 278
- Joined: Sunday 14 December 2014 12:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.11375
- Contact:
Re: Dashticz v2.0, custom positioning and multiple screens
Sorry something went really wrong
But it is still not working
But it is still not working
- HansieNL
- Posts: 957
- Joined: Monday 28 September 2015 15:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz v2.0, custom positioning and multiple screens
I've several backup scipts. This is one for example...gielie wrote:oh crap, just did a git pull and now my CONFIG.js is overwritten, i never had this before. Allright start from scratch again.
Code: Select all
#!/bin/bash
### PLACE THIS SCRIPT IN:/home/pi/domoticz/scripts as Dashticz_backup.sh
echo -e "\n\e[1;33mCopying Dashticz customized files. Please standby...\e[0m\n"
cp /home/pi/domoticz/www/dashboard/CONFIG.js /backupz/dashticz
mkdir -p /backupz/dashticz/css
cp /home/pi/domoticz/www/dashboard/css/custom.css /backupz/dashticz/css
mkdir -p /backupz/dashticz/js
cp /home/pi/domoticz/www/dashboard/js/custom.js /backupz/dashticz/js
mkdir -p /backupz/dashticz/img
cp /home/pi/domoticz/www/dashboard/img/bg0.jpg /backupz/dashticz/img
cp /home/pi/domoticz/www/dashboard/img/bg9.jpg /backupz/dashticz/img
cp /home/pi/domoticz/www/dashboard/img/desktop.png /backupz/dashticz/img
cp /home/pi/domoticz/www/dashboard/img/duffy.png /backupz/dashticz/img
cp /home/pi/domoticz/www/dashboard/img/emergency.png /backupz/dashticz/img
cp /home/pi/domoticz/www/dashboard/img/f1_logo.png /backupz/dashticz/img
cp /home/pi/domoticz/www/dashboard/img/homey.jpg /backupz/dashticz/img
cp /home/pi/domoticz/www/dashboard/img/notebook.png /backupz/dashticz/img
cp /home/pi/domoticz/www/dashboard/img/sleep.png /backupz/dashticz/img
cp /home/pi/domoticz/www/dashboard/img/sleep2.png /backupz/dashticz/img
cp /home/pi/domoticz/www/dashboard/img/switch.png /backupz/dashticz/img
cp /home/pi/domoticz/www/dashboard/img/switch_off.png /backupz/dashticz/img
cp /home/pi/domoticz/www/dashboard/img/switch_on.png /backupz/dashticz/img
cp /home/pi/domoticz/www/dashboard/img/toon.png /backupz/dashticz/img
cp /home/pi/domoticz/www/dashboard/img/tv.png /backupz/dashticz/img
echo -e "\n\e[1;33mCopying Dashticz customized files finished!\e[0m\n"
Code: Select all
cd ~/domoticz/www/dashboard
git pull
cp -R /backupz/dashticz/* /home/pi/domoticz/www/dashboard
Blah blah blah
-
- Posts: 278
- Joined: Sunday 14 December 2014 12:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.11375
- Contact:
Re: Dashticz v2.0, custom positioning and multiple screens
The graph is working, i noticed that it takes some time to load on my tablet.
-
- Posts: 89
- Joined: Friday 09 October 2015 17:40
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Dashticz v2.0, custom positioning and multiple screens
I was thinking about a code for showing the traffic layer on top of Google Maps.
It's probably as simple as this
And then do some formatting to show it
Anybody who's more experienced in javascript to help me here?
It's probably as simple as this
Code: Select all
$.ajax('https://crossorigin.me/https://maps.googleapis.com/maps/api/js?sensor=false', {
success:function(data) {
RefreshSwitchData();
var map = new google.maps.Map(document.getElementById('map'), {
mapTypeId: google.maps.MapTypeId.TERRAIN,
zoom: $.ZoomLevel
});
var trafficLayer = new google.maps.TrafficLayer();
trafficLayer.setMap(map);
var geocoder = new google.maps.Geocoder();
geocoder.geocode({
'address': $.Address
},
function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
new google.maps.Marker({
position: results[0].geometry.location,
map: map
});
map.setCenter(results[0].geometry.location);
} else {}
});
Anybody who's more experienced in javascript to help me here?
-
- Posts: 278
- Joined: Sunday 14 December 2014 12:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.11375
- Contact:
Re: Dashticz v2.0, custom positioning and multiple screens
Is it possible to change the color of the graph line?
-
- Posts: 105
- Joined: Sunday 02 February 2014 23:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Portugal
- Contact:
Re: Dashticz v2.0, custom positioning and multiple screens
and what about a clikable sound when we click on blinds? or a popup.
- mvveelen
- Posts: 678
- Joined: Friday 31 October 2014 10:22
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Hoorn, The Netherlands
- Contact:
Re: Dashticz v2.0, custom positioning and multiple screens
If someone could post a working config or a step-by-step how-to to get news from Telegraaf.nl or Nu.nl working, that would be great. Somehow it won't work on my setup.poudenes wrote:In last update the NEWS RSS Feed doesn't work here. Others have same issues? if not can someone send me a config so i can check if i do it correct in new update.
On OSX i can see a whole list of news, but not a small line with scrolling news items. On Android Tablet no news at all... Using chrome and firefox to test it.. nothing work
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
Re: Dashticz v2.0, custom positioning and multiple screens
I am thinking on a prev/next (play?) button for RSS feed + it should stop the scrolling if you click on any of these buttons.
If you find it useful, maybe Rob should write on their Trello.
If you find it useful, maybe Rob should write on their Trello.
-
- Posts: 26
- Joined: Saturday 15 April 2017 12:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: Dashticz v2.0, custom positioning and multiple screens
Is it possible to make the blocks bigger like:
And put the temp and humi in one box like:
Code: Select all
blocks[139]['height'] = ?
- Attachments
-
- s.jpg (3.4 KiB) Viewed 1755 times
Re: Dashticz v2.0, custom positioning and multiple screens
Google has a script for that - you need to register and get an api key.Ierlandfan wrote:I was thinking about a code for showing the traffic layer on top of Google Maps.
It's probably as simple as thisAnd then do some formatting to show itCode: Select all
$.ajax('https://crossorigin.me/https://maps.googleapis.com/maps/api/js?sensor=false', { success:function(data) { RefreshSwitchData(); var map = new google.maps.Map(document.getElementById('map'), { mapTypeId: google.maps.MapTypeId.TERRAIN, zoom: $.ZoomLevel }); var trafficLayer = new google.maps.TrafficLayer(); trafficLayer.setMap(map); var geocoder = new google.maps.Geocoder(); geocoder.geocode({ 'address': $.Address }, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { new google.maps.Marker({ position: results[0].geometry.location, map: map }); map.setCenter(results[0].geometry.location); } else {} });
Anybody who's more experienced in javascript to help me here?
See the script below and the link. It should not be to hard to implement. Will give it a try and come back to you.
By the way I really love this Dashboard - found it about two weeks ago and this was exactly what I was looking for.
@Rob: thank you for all the good work!
Code: Select all
https://developers.google.com/maps/documentation/javascript/examples/layer-traffic
Code: Select all
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Traffic layer</title>
<style>
/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
#map {
height: 100%;
}
/* Optional: Makes the sample page fill the window. */
html, body {
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 13,
center: {lat: 34.04924594193164, lng: -118.24104309082031}
});
var trafficLayer = new google.maps.TrafficLayer();
trafficLayer.setMap(map);
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap">
</script>
</body>
</html>
-
- Posts: 6
- Joined: Monday 24 April 2017 21:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.5877
- Contact:
Re: Dashticz v2.0, custom positioning and multiple screens
is it somehow possible to show more infos for moon phase?
Actually i have the following visible:
And this code in custom.js:
But whatever i try to add for showing correct values for "Mondaufgang" and "Monduntergang" i see only switches.
Same Problem is actually that order is not changed, it shows always first <Data> then <Name>
Switch is set to true in config.js.
Actually i have the following visible:
And this code in custom.js:
Code: Select all
function getExtendedBlockTypes(blocktypes){
blocktypes.Name['Download'] = { icon: 'fa fa-download', title: '<Name>', value: '<Data>' }
blocktypes.Name['Mondphase'] = { icon: 'fa fa-moon-o', title: '<Name>', value: '<Data>' }
blocktypes.Name['Mondaufgang'] = { icon: 'fa fa-moon-o', title: '<Data>', value: '<Name>' }
return blocktypes;
}
Same Problem is actually that order is not changed, it shows always first <Data> then <Name>
Switch is set to true in config.js.
Code: Select all
//Mondphase
blocks[192] = {}
blocks[192]['width'] = 6;
blocks[192]['switch'] = true;
-
- Posts: 1273
- Joined: Saturday 24 January 2015 22:12
- Target OS: NAS (Synology & others)
- Domoticz version: 3.7067
- Location: NL
- Contact:
Re: Dashticz v2.0, custom positioning and multiple screens
Giving back some time to my clients so I'm not answering every hour but I read all your posts and will update again tomorrow or wednesday. Although, good to see that most of your questions are answered by others and users come up with great ideas!
- HansieNL
- Posts: 957
- Joined: Monday 28 September 2015 15:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz v2.0, custom positioning and multiple screens
I had same problem with Dutch texts. Can you try these settings? Don't forget to change the idx to yours.mkscity wrote:is it somehow possible to show more infos for moon phase?
blocks[idx] = {} //Mondaufgang
blocks[idx]['switch'] = true;
blocks[idx]['icon'] = 'fa-moon-o';
blocks[idx] = {} //Monduntergang
blocks[idx]['switch'] = true;
blocks[idx]['icon'] = 'fa-moon-o';
blocktypes.Name['Mondaufgang'] = { icon: 'fa-moon-o', title: '<Name>', value: '<Data>' }
blocktypes.Name['Monduntergang'] = { icon: 'fa-moon-o', title: '<Name>', value: '<Data>' }
Blah blah blah
-
- Posts: 15
- Joined: Sunday 18 September 2016 23:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.7196
- Location: Hellevoetsluis
- Contact:
Re: Dashticz v2.0, custom positioning and multiple screens
I can not find it. What do you need to fill in the config file at the follow line?HansieNL wrote:Have you both installed latest Dashticz version?Maartenkr wrote:I have the same problemDvD wrote:Moon LUA script working but in Dashboard no Picture is displayed. I can see the picture frame but there is no moon in it.
What am I doing wrong ?
The moon.XX.png pictures should be installed in subfolder of image folder. If you don't have this folder there are no pictures to load.
@Maartenkr: I don't see a picture frame on your image. There must be something else wrong.
Code: Select all
var _IDXmoonpicture = 12; //index of the uservariabele MoonPicture
Who is online
Users browsing this forum: No registered users and 1 guest