FlatZ Frontpage

Moderator: leecollings

User avatar
bizziebis
Posts: 182
Joined: Saturday 19 October 2013 14:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8805
Location: The Netherlands
Contact:

Re: FlatZ Frontpage

Post by bizziebis »

You can use the "Inspect element' feature of your browser (right mouseclick on screen). That way you can find out which Json command is being send when you use the slider, and what the result is. This will help solving your problem.
User avatar
mvveelen
Posts: 678
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: FlatZ Frontpage

Post by mvveelen »

This is the json:

Code: Select all

http://192.168.0.124:8084/json.htm?type=command&param=setcolbrightnessvalue&hue=undefined&idx=90&brightness=0&iswhite=false
So I guess it thinks I have colored LED lights...? But they are just regular lights with a dimmer.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
User avatar
galadril
Posts: 824
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: FlatZ Frontpage

Post by galadril »

mvveelen wrote:So I guess it thinks I have colored LED lights...? But they are just regular lights with a dimmer.
If you call that json url in a browser, the lights also doesn;t dim?
Can je else remove the '&hue=undefined' part of the url, and try again.. does that work?

PS, my lights are all philips hue lichts, so i haven't test alot without hue..
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
User avatar
bizziebis
Posts: 182
Joined: Saturday 19 October 2013 14:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8805
Location: The Netherlands
Contact:

Re: FlatZ Frontpage

Post by bizziebis »

@mvveelen
You can also use the domoticz dash and use the slider of the specific light. Then post the json here to see what's possible.
User avatar
mvveelen
Posts: 678
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: FlatZ Frontpage

Post by mvveelen »

This is the json that works for the regular lights with dimmer:

Code: Select all

http://192.168.0.124:8084/json.htm?type=command&param=switchlight&idx=90&switchcmd=Set%20Level&level=8
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: FlatZ Frontpage

Post by pvm »

:oops:
Can you put some more help in the settings file?
Like how to set the cell values, what parameters to use for a dimmer, a switch, energy, etc. etc.?
(I am struggling to put a dimmer value on the frontpage)
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
User avatar
galadril
Posts: 824
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: FlatZ Frontpage

Post by galadril »

mvveelen wrote:This is the json that works for the regular lights with dimmer:
I've changed the method.js.
You can now specify two types of lights in the settings.js ('Hue' (color lamp) or 'Dimmer'):

// Graph screen User settings >>> (max 3 on screen)
['11', 'Hue', 'cell7', 'Tafel 1'] >> works with colored JSON call
['11', 'Dimmer', 'cell7', 'Tafel 1'] >> works with the switch dimmer JSON call

I couldn't test it myself, can you try?
https://github.com/galadril/FlatZ-Frontpage
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
User avatar
galadril
Posts: 824
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: FlatZ Frontpage

Post by galadril »

I'm adding a weather tab
Attachments
weather.png
weather.png (31.77 KiB) Viewed 3102 times
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
User avatar
Minglarn
Posts: 214
Joined: Friday 21 August 2015 19:27
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Stockholm / Sweden
Contact:

Re: FlatZ Frontpage

Post by Minglarn »

Been watching this front page for a while now .. and I really like what I see. =)
How do I add this frontpage without deleting the original page?
As I understand, you have to overwrite the default files with this or am I wrong?
When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
User avatar
galadril
Posts: 824
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: FlatZ Frontpage

Post by galadril »

Minglarn wrote:How do I add this frontpage without deleting the original page?
You put all the files under 'www' directory.
It doesn't overwrite the default domoticz site, just the custom frontpage (if you have one..)
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
User avatar
bizziebis
Posts: 182
Joined: Saturday 19 October 2013 14:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8805
Location: The Netherlands
Contact:

Re: FlatZ Frontpage

Post by bizziebis »

Is it also possible to append the log? That would make the filter option really great.
User avatar
mvveelen
Posts: 678
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: FlatZ Frontpage

Post by mvveelen »

Krommenie? That's not too far from where I live :)

I've tried the new version (am I right that the settings file isn't changed?), and the slider doesn't work as expected. When I move it to the right, the light is brighter, but the % (top of the cell) doesn't change and also when I move the slider to the left, the light stays bright (100%).
I haven't looked at the code yet, because I'm facing some other challenges, but maybe I can try to find out where it goes wrong. What parts do I have to look at exactly?

Oh, and great work on the weather tab. Are you using the Skycons ? Or are those static images ?
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
User avatar
Minglarn
Posts: 214
Joined: Friday 21 August 2015 19:27
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Stockholm / Sweden
Contact:

FlatZ Frontpage

Post by Minglarn »

galadril wrote:
Minglarn wrote:How do I add this frontpage without deleting the original page?
You put all the files under 'www' directory.
It doesn't overwrite the default domoticz site, just the custom frontpage (if you have one..)
Thanks. Will try to add this to mine and check how it works on my iPad :)

Again, great job with this!
When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
User avatar
galadril
Posts: 824
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: FlatZ Frontpage

Post by galadril »

mvveelen wrote:I haven't looked at the code yet, because I'm facing some other challenges, but maybe I can try to find out where it goes wrong. What parts do I have to look at exactly?
Krommenie yes ;) (Assendelft)..

But please check the methods.js, it happens in this function:
function setLightDimmer(idx, bright)

If you compare the json calls with the json calls of Domoticz itself, maybe you can find the problem..
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
User avatar
galadril
Posts: 824
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: FlatZ Frontpage

Post by galadril »

Minglarn wrote:Again, great job with this!
Thanks, hope you like it!
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
Heisenberg
Posts: 135
Joined: Monday 27 January 2014 14:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: FlatZ Frontpage

Post by Heisenberg »

Nice improvements!

Is it possible to add a live feed of Buienradar like e.g. http://www.scheveningenlive.nl/buienradar/
And how can I implement live feed of my IP camera's? I think there are more members who have ip cameras for surveillance purposes too
Raspberry Pi Type B
Raspberry Pi Type B2
RFXCOMtrx433e
User avatar
galadril
Posts: 824
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: FlatZ Frontpage

Post by galadril »

Heisenberg wrote:Is it possible to add a live feed of Buienradar like e.g. http://www.scheveningenlive.nl/buienradar/
I'll put it on my list ;)
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
User avatar
galadril
Posts: 824
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: FlatZ Frontpage

Post by galadril »

Adding some custom theme support :)
Attachments
theme_purple.png
theme_purple.png (54.53 KiB) Viewed 3002 times
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
misev
Posts: 1
Joined: Wednesday 23 September 2015 19:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: FlatZ Frontpage

Post by misev »

Really Nice! I will follow this topic :)
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: FlatZ Frontpage

Post by G3rard »

Great frontpage indeed!
Used your log and changed it a bit and am now using it as my Domoticz log (as a Custom page). The search function is also very handy and I like it that the newest item shows on top.
domoticz_log.png
domoticz_log.png (215.43 KiB) Viewed 3084 times
Last edited by G3rard on Wednesday 23 September 2015 20:41, edited 1 time in total.
Not using Domoticz anymore
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests