Re: webRemote/Housebot WebServer - March Release
Posted: Tue May 22, 2012 10:29 am
Hi Steve,
I scrapped it about a month ago. There's a post in the general forum.
I should not have used the the project as learning for JS and a (re)learning for C++.
In nutshell, two things happened... 1) Making it cross-browser compatible was turning out to be a huge headache. and 2) I clued in the architecture was completely wrong. Instead of trying to work with existing themes, I should have leveraged an existing html theme editor. The "design once, view anywhere" approach was not going to work. And would have been perpetually flaky... unstable.
Re refresh rate, 36s was purely arbitrary. It will depend on how many different properties you have in your theme. The theme will pull all properties in the theme on every request, so if you have lots, it will take longer. With my simple testing theme, I could run it at about .5s refresh rate no problems. It will also depend on your network speed. Local box, <2s is probably ok, on your local network, <5s is probably very safe, on a wan/internet/mobile, >5s. CPU power will make a difference too... ie: How fast your box can execute the javascript. There are too many variables to give a recommended time.
I am kicking the tires on another architecture, another approach... pure html5, cross browser compatible out of the box... But I don't know if anything will come of it.
Tim
I scrapped it about a month ago. There's a post in the general forum.
I should not have used the the project as learning for JS and a (re)learning for C++.
In nutshell, two things happened... 1) Making it cross-browser compatible was turning out to be a huge headache. and 2) I clued in the architecture was completely wrong. Instead of trying to work with existing themes, I should have leveraged an existing html theme editor. The "design once, view anywhere" approach was not going to work. And would have been perpetually flaky... unstable.
Re refresh rate, 36s was purely arbitrary. It will depend on how many different properties you have in your theme. The theme will pull all properties in the theme on every request, so if you have lots, it will take longer. With my simple testing theme, I could run it at about .5s refresh rate no problems. It will also depend on your network speed. Local box, <2s is probably ok, on your local network, <5s is probably very safe, on a wan/internet/mobile, >5s. CPU power will make a difference too... ie: How fast your box can execute the javascript. There are too many variables to give a recommended time.
I am kicking the tires on another architecture, another approach... pure html5, cross browser compatible out of the box... But I don't know if anything will come of it.
Tim