I'm buiding a weathersensor with a MySensors node. This node does some forecast calculations itselfs and sends them in as value 0 to 5.
This is according to the MySensors API. When I look at this sensor in Domoticz there is forecast info available but not the data from my node.
See screenshot below. I did a test with the node acting as a barometer only and then the forecast info from the node is shown. This is I would like to see on the combined sensor also. Where is this forecast info for the combined sensor comming from ? And can I change it to the data
from my own node ?
You need pressure and a timespan to calculate a value between 0 and 7 for the prediction and send it into a 'virtual' sensor. Look at the forecast-io temp-hum-baro and the wiki json-api.
Together you'll get a forecast in your widget. Buildin into Domoticz.
Thanks for your reply. I did some more testing and found out that when I omit the humididy the sensors show up as two separate sensors, one for temp end one for barometer. This barometer does show the forecast as calculated by my own sensor.
So Domiticz creates a combined weather sensor when three values come from the same node (temp, humidity and pressure) and the Domiticz own forecast kicks in.
So if I do want humidity and no combined weather sensor I have to build a second node for humidity alone.
Will work but takes twice a much hardware on the sensor side.
I'm not sure about how your sensor node is build with hardware and software.
Isn't it possible to build one script/sketch that updates 2 virtual sensors like temp/hum and barometer? That way you can select which favorit to show on your Dashboard.
Will save you to duplicate the hardware.
I wanted it the other way around, 1 sensor with all (thats why i have the BME280 with a script)
Yes, I'm going to use one node and split the data in domoticz using scripts, I found some examples that will get me going.
The node will have a BMP280 for temperature and pressure and a HTU21D for temperature and Humidity.
Still would like to know more details about where domiticz gets the weather information for the combined sensor.
If this is based on a weather site ? Is it using some (or all) my local sensors data to make the forcast ?
Domoticz has some buildin supported sensors, with logic that calculate the forecast. However i'm not 100% sure of that.
Through json you feed your 'home-made'/'unsupported' virtual device with the data.
It doesn't make a difference which barometer sensor you use.
You need to feed it a value for forecast between 1-7 or 0 as undetermined/unknown.
This value simply said is the ascending/descending of the barometric pressure in a specific timeframe. There are some sites which explain how this works.
When you have that knowledge you can embed the forecast in your script by sending the corresponding value to the virtual sensor.