-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No datavisualisation for certain weather sensors. #14
Comments
As the manual states, not all items currently have dataviz. Feel free to add this though. Look at the dataviz.js code. At the top you will see all the commands. Try adding one for yours, and then share the code with us? |
I will! i saw that after i filed this. :) |
listed stuff through json api instead. i guess the item-types should be from there but with small caps? |
// listed stuff through json api instead. i guess the item-types should be from there but with small caps? Spot on! I did it like this:
|
I've added some code that will give items with the icecube icon an 'ice' class, and items with a rain icon a 'rain' class. That may help you target your sensors. |
sweet i'll have another try :) |
The aurora theme looks at the image that the element had, and uses that to give the element a CSS class. So a temperature icon -> "temp" class. Icecube icon -> "ice" class. The URL you posted tells us something important: Namely, that dDomoticz can show the dataviz in the same what that it does for temperature sensors. So that has to go here: Now for the last part of that call. Open this link in a new browser window: So for example: There you will see the raw data that Domoticz usually sends to its dataviz function. There you will be able to find the last piece of the puzzle. You will see something like "te" or "v" or "any" as the name for the data that is not the timestamp data. take that as the second part of the call. So put that here: So now that I think about it, all that CSS classname stuff is not relevant :-D |
Ah that last piece was what i got stuck on. Since there is allready a temp post i tought that should be enough and started looking for other clues. I'll try tonight. |
Ah! Think i fond whats wrong! Negtive values don't give you a viz! |
have another temp/hum sensor outside(same model that gives viz) but this one is in negative temp range and viola no viz! |
added wind and rain atleast in pull request. |
more mockups values and imgtype taken from dummy sensors. i get no graph for dummy sensors so not sure this works.
|
Could the ice icon mess with neg values viz? |
I've added air, speaker, moisture and leaf classes. (See line 1358 in custom.js) |
thanks. added some more in custom.js. gas and leaf moisture i can't get to work. leaf wetness don't seem to have a graph. gas i have no idea. should work. uncommentet those |
visibility, speaker, moist don't show month on viz. something missing for those |
no "any" does not work it takes every value. min,max,avg so you get a sawtooth pattern. hm. some other solution is needed Kind of stuck on this. creating new issue for month display on averaging sensors Issue: #27 |
I think this should be the last sensors. so close after pull and verify |
Thank you so much for your great work, I really appreciate it! |
I see you added a call to make dataviz on items with a "Waterflow" class. But that class is not yet added to the html. If two sensortypes types use the same image, but require different dataviz calls (percent vs counter, for example), then the theme cannot currently handle that. Adding the classes based on the image is a bit of a hack after all. So I suspect in these cases we have to make a choice which of the two sensor types is the one that gets the dataviz. Waterflow vs ....? (Also, I try to keep classes all lowercase). |
Waterflow i found in the item class already for that item. used that to separate items seem to work. get graph on both items. i commented that ugly sollution at least :D |
could use SoilMoisture instead of generated moisture to really separate them |
This seem to work so i think we can close this? month bug in other issue |
Wind chill and temp/hum from composite weather sensor(accurite 5in1 via RfLink) don't show any graphs.
also rain and windspeed (from same sensor) don't seem to show any graph
The text was updated successfully, but these errors were encountered: