8 thoughts on “Block Update – Current Conditions 10.0”
Sorry, changed it later into zero decimals:
$current[‘H’] = number_format($apiData[‘S’],0,”.”,””);
I see what you mean. I don´t want to update the same block twice in one day, this is not urgent so I will do it tomorrow. Just check you didnt use “H”, that would erase your real solar and use solar as humidity.
Originally S was shown with three decimals.
In updater.php I changed line 47:
$current[‘S’] = $apiData[‘S’];
into:
$current[‘H’] = number_format($apiData[‘S’],1,”.”,””);
This change should be done for the other update sections too.
Cheers, Luc
Careful… if you did that you overwrote your humidity!
Yes, I’m a programmer. I changed the code myself!
Im just not sure what you mean though, when I look at the script, it rounds to value to 0 d.p. so you did not need to change anything or?
Work like a charm, Jachym. I now have 3-seconds live update.
A small request: could you round Solar radiation to 1 (or better: zero) decimals?
Luc, it is rounded to a whole number already, when I look at your site I see “290”
Sorry, changed it later into zero decimals:
$current[‘H’] = number_format($apiData[‘S’],0,”.”,””);
I see what you mean. I don´t want to update the same block twice in one day, this is not urgent so I will do it tomorrow. Just check you didnt use “H”, that would erase your real solar and use solar as humidity.
Originally S was shown with three decimals.
In updater.php I changed line 47:
$current[‘S’] = $apiData[‘S’];
into:
$current[‘H’] = number_format($apiData[‘S’],1,”.”,””);
This change should be done for the other update sections too.
Cheers, Luc
Careful… if you did that you overwrote your humidity!
Yes, I’m a programmer. I changed the code myself!
Im just not sure what you mean though, when I look at the script, it rounds to value to 0 d.p. so you did not need to change anything or?
Work like a charm, Jachym. I now have 3-seconds live update.
A small request: could you round Solar radiation to 1 (or better: zero) decimals?
Luc, it is rounded to a whole number already, when I look at your site I see “290”