ClimateDataCalculation

Questions and comments specific to a particular plugin should go here.

Re: ClimateDataCalculation

Postby krambriw » Mon Feb 13, 2017 12:00 pm

And did you see this difference?

max-width
My latest plugins
http://plugins.krambriw.net/index.html

Two men in front of a huge excavator...
- that beast steels work from 100 men with shovels
- well, a 1000 men could do the same using teaspoons
krambriw
Plugin Developer
 
Posts: 2544
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden

Re: ClimateDataCalculation

Postby Mastiff » Mon Feb 13, 2017 12:15 pm

Smart, thanks! Didn't think of that! Which is probably why I'm asking the questions and you are answering them! :mrgreen:
Mastiff
Experienced User
 
Posts: 739
Joined: Thu May 03, 2012 10:43 am

Re: ClimateDataCalculation

Postby Mastiff » Mon Feb 13, 2017 7:25 pm

I have found something that works, but the graphs are getting a bit small. But I think the solution (at least for me) would be to be able to run a negative margin on the upper div (the rose), so that moves to the top, without removing the back button. The problem is that I only know how to do that in CSS, and not in regular HTML style, and I'm working in Notepad++. I tried marginheight: -400px, but it doesn't take. Would it be possible to add a reference to a CSS in the code? Then I could use my own CSS to style both the div called container and the dive called Wind_gust. That could be useful for other graphs too, so I can have humidity and temp on the same page and use a CSS file that doesn't change to size them. Would that possibility be much work to add? And then just have an empty CSS file distributed with the plug-in, so nothing fails looking for the file. Please? :mrgreen:
Mastiff
Experienced User
 
Posts: 739
Joined: Thu May 03, 2012 10:43 am

Re: ClimateDataCalculation

Postby krambriw » Mon Feb 13, 2017 7:40 pm

Well, anything is possible for vikings...

You could try to edit a created report html in Notepad++ until you think it looks ok (I mean add the css stuf as you like and try it out) Once you have it, I can add an empty stub in the "official code"
My latest plugins
http://plugins.krambriw.net/index.html

Two men in front of a huge excavator...
- that beast steels work from 100 men with shovels
- well, a 1000 men could do the same using teaspoons
krambriw
Plugin Developer
 
Posts: 2544
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden

Re: ClimateDataCalculation

Postby Mastiff » Tue Feb 14, 2017 9:08 am

Of course! Vikings never stops for anything! :mrgreen: Thanks a lot! So now I have a CSS, but I have also made a few changes to the actual page, if you don't mind. :mrgreen:

Code: Select all
Wind report:
Added line feed after meta tag
Added this line below meta tag: <link rel="stylesheet" type="text/css" href="CDC.css">
Changes: Removed styles (unnecessary)
Changed single quote to double quote around div names (single quotes made my css fail)
Made heading and back button into divs
Changed div names to title case (for consistency)
Changed the name of the rose container (I guess that would be a vase on this Valentine's day...) and script from "container" to "Wind_rose" for clarity

Combo report:
Added line feed after meta tag
added line below meta tag: <link rel="stylesheet" type="text/css" href="CDC.css">
Removed styles (unnecessary when using a CSS, I don't know if it's possible to say "use these if no CSS is present), except for under the Wind_rose, where div style="display:none" was kept
changed single quote to double quote around div names (made the css fail)
Made heading and back button into divs
Changed div names to title case (for consistency)


is that OK by you? I don't know if it's possible to make code that adds a CSS file with the standard stuff if no CSS file is found? As for my CSS for this, here's what I have so far:

Code: Select all
#Temperature {
margin: auto;
width: 1700px;
height: 400px;
margin-top: 10px;
border: 6px double rgb(201, 0, 1);
}

#Wind_gust {
margin: auto;
width: 1700px;
height: 400px;
margin-top: 10px;
border: 6px double rgb(201, 0, 1);
}

#Wind_rose {
margin: auto;
border: 0px none;
height: 470px;
width: 500px;
margin-top: -40px;
border: 6px double rgb(201, 0, 1);
}
   
#Heading {
text-align: center;
margin-top: -10px;
}

#Button {
width: 310px;
margin-left: 10;
margin-top: -60px;
}


That looks pretty good in my system.
Mastiff
Experienced User
 
Posts: 739
Joined: Thu May 03, 2012 10:43 am

Re: ClimateDataCalculation

Postby krambriw » Tue Feb 14, 2017 11:24 am

Haven't tried yet but if it looks fine, why not make it "The Standard", I would not mind, everything that makes it better is fine I think!

So Thank You!

BR Walter
My latest plugins
http://plugins.krambriw.net/index.html

Two men in front of a huge excavator...
- that beast steels work from 100 men with shovels
- well, a 1000 men could do the same using teaspoons
krambriw
Plugin Developer
 
Posts: 2544
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden

Re: ClimateDataCalculation

Postby krambriw » Tue Feb 14, 2017 11:27 am

You could make it easy for me to adopt, mail me your py files
My latest plugins
http://plugins.krambriw.net/index.html

Two men in front of a huge excavator...
- that beast steels work from 100 men with shovels
- well, a 1000 men could do the same using teaspoons
krambriw
Plugin Developer
 
Posts: 2544
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden

Re: ClimateDataCalculation

Postby Mastiff » Tue Feb 14, 2017 11:29 am

Great! :mrgreen: But I have to admit I misunderstood... :oops: I modified the HTML files directly, and not the py files... :oops:
Mastiff
Experienced User
 
Posts: 739
Joined: Thu May 03, 2012 10:43 am

Re: ClimateDataCalculation

Postby krambriw » Tue Feb 14, 2017 11:41 am

Then send me the html files, they will help partly
My latest plugins
http://plugins.krambriw.net/index.html

Two men in front of a huge excavator...
- that beast steels work from 100 men with shovels
- well, a 1000 men could do the same using teaspoons
krambriw
Plugin Developer
 
Posts: 2544
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden

Re: ClimateDataCalculation

Postby Mastiff » Tue Feb 14, 2017 11:52 am

Ding! You've got mail. :mrgreen:
Mastiff
Experienced User
 
Posts: 739
Joined: Thu May 03, 2012 10:43 am

Re: ClimateDataCalculation

Postby krambriw » Tue Feb 21, 2017 4:36 pm

Latest release 0.5.0 now available for download

- Added support for Barometric pressure data capturing & reporting (requires a RFXtrx and sensor type BTHR918, BTHGN129)
- Added support for a new type of report allowing you to create reports with a daily wind rose (WindMiniRoseReport)
- Further improvements of report layouts using css (thanks Mastiff)
- Modified layout of Wind Rose report
My latest plugins
http://plugins.krambriw.net/index.html

Two men in front of a huge excavator...
- that beast steels work from 100 men with shovels
- well, a 1000 men could do the same using teaspoons
krambriw
Plugin Developer
 
Posts: 2544
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden

Re: ClimateDataCalculation

Postby Mastiff » Tue Feb 21, 2017 4:44 pm

Great, man! :mrgreen: This plug-in is so cool, nice to follow the temperature in both rooms and outside, and it always impresses visitors too!
Mastiff
Experienced User
 
Posts: 739
Joined: Thu May 03, 2012 10:43 am

Previous

Return to Plugin Support

Who is online

Users browsing this forum: No registered users and 8 guests