Page 1 of 1
Wordpress frontend
Posted: Wednesday 21 March 2018 14:08
by snellejellep
I have a question and i am not sure if my idea is just stupid or that i am just doing it wrong.
I want to create a custom dashboard for each of my rooms so you do not have a load of buttons for another room displayed on your dashboard, i wanted to use wordpress for that because i have experience with that and it works really well for me. now i have the html json calls and they work fine but every time i use that html link underneath a button, so i press the button on the wordpress page and my light turns on, but it also opens a response page from domoticz and that is the thing i do not want.
so is there anybody out there who has a suggestion for what i am doing wrong?
thanks in advance for all the help!
Re: Wordpress frontend
Posted: Wednesday 21 March 2018 15:28
by skybehind
snellejellep wrote:I have a question and i am not sure if my idea is just stupid or that i am just doing it wrong.
I want to create a custom dashboard for each of my rooms so you do not have a load of buttons for another room displayed on your dashboard, i wanted to use wordpress for that because i have experience with that and it works really well for me. now i have the html json calls and they work fine but every time i use that html link underneath a button, so i press the button on the wordpress page and my light turns on, but it also opens a response page from domoticz and that is the thing i do not want.
so is there anybody out there who has a suggestion for what i am doing wrong?
thanks in advance for all the help!
I've actually wanted a WordPress dashboard for a while, can you share pics when you finish yours.
I don't have the link right now, but there's a guy who went completely through json calls on buttons and such. His blog is "fabulous home automation", if you search for that you should find it, if not, let me know and I'll get a link.
Sent from my Nexus 6 using Tapatalk
Re: Wordpress frontend
Posted: Wednesday 21 March 2018 15:35
by snellejellep
skybehind wrote: ↑Wednesday 21 March 2018 15:28
snellejellep wrote:I have a question and i am not sure if my idea is just stupid or that i am just doing it wrong.
I want to create a custom dashboard for each of my rooms so you do not have a load of buttons for another room displayed on your dashboard, i wanted to use wordpress for that because i have experience with that and it works really well for me. now i have the html json calls and they work fine but every time i use that html link underneath a button, so i press the button on the wordpress page and my light turns on, but it also opens a response page from domoticz and that is the thing i do not want.
so is there anybody out there who has a suggestion for what i am doing wrong?
thanks in advance for all the help!
I've actually wanted a WordPress dashboard for a while, can you share pics when you finish yours.
I don't have the link right now, but there's a guy who went completely through json calls on buttons and such. His blog is "fabulous home automation", if you search for that you should find it, if not, let me know and I'll get a link.
Sent from my Nexus 6 using Tapatalk
i can share pictures but for now it is just a basic thing i wanted to try and i noticed that it worked fine but ony i got the json response page when i pushed the button, clearly i am doing something wrong but i have no idea what
Re: Wordpress frontend
Posted: Wednesday 21 March 2018 17:40
by Egregius
Why would you use WordPress for that?
Why not just PHP?
What you want should be fairly easy with my php floorplan.
Re: Wordpress frontend
Posted: Wednesday 21 March 2018 18:37
by Hobbybob
Egregius wrote: ↑Wednesday 21 March 2018 17:40
Why would you use WordPress for that?
Why not just PHP?
What you want should be fairly easy with my php floorplan.
Agreed, Wordpress is overkill in this situation. I can understand that it is easy if you are used to working with it however, so each to his own.
Personally, I would just create a page with divs with the appropiate buttons in them, and then switch the css-display on the divs between none and block with javascript. Then you can just create buttons anyway you want (be it PHP or any other way you want)
Re: Wordpress frontend
Posted: Tuesday 27 March 2018 17:53
by DeBaat
Interesting idea.
I'm also a huge fan of WordPress.
Would it be possible to have WordPress plugin for handling Domoticz stuff?
I would be willing to help as I do have some experience in building a plugin myself.