Rain gauge not updatetd in a sub-menu
-
adelrosso
- Observer

- Posts: 13
- Joined: Sat Oct 14, 2017 10:33 pm
- Location: Sarzana, Italy
- Station model: Netatmo
- Software: Netatmo API
- Contact:
Rain gauge not updatetd in a sub-menu
In menu weather -> outlook -> current conditions the precipitation value is never updated and always 0. Is this just my problem? (i use Netatmo plugin). In all other parts of the template, the value is updated correctly. In the screenshot below, first row is METAR station, second raw is mine.
- Jachym
- Site Admin

- Posts: 1686
- Joined: Fri Aug 18, 2017 10:12 pm
- Location: Brno, Czech Republic
- Station model: WH1080
- Software: Meteobridge
- Contact:
Re: Rain gauge not updatetd in a sub-menu
This is rain rate, not precipitation and I know that NetAtmo not always reports this correctly
- Jachym
- Site Admin

- Posts: 1686
- Joined: Fri Aug 18, 2017 10:12 pm
- Location: Brno, Czech Republic
- Station model: WH1080
- Software: Meteobridge
- Contact:
Re: Rain gauge not updatetd in a sub-menu
When you see mm/h or in/h it is always rain rate
-
adelrosso
- Observer

- Posts: 13
- Joined: Sat Oct 14, 2017 10:33 pm
- Location: Sarzana, Italy
- Station model: Netatmo
- Software: Netatmo API
- Contact:
Re: Rain gauge not updatetd in a sub-menu
Another remark. In the "current conditions" block, also when this is displayed at 100% width, the rain rate "mm/h" appear wrapped ("h" slip to the bottom line). Can you do something? I think would be really good if it looks good at least up to two full digits.
- Reinhard
- Advisor

- Posts: 84
- Joined: Fri Aug 25, 2017 9:42 am
- Location: Prägraten am Großvenediger
- Station model: Davis VP2 Pro wireless
- Software: WeatherCat
- Contact:
Re: Rain gauge not updatetd in a sub-menu
The workaround: Open currentBlock.php in a text editor, go to line 302 and edit this string to the font size you want (for me it suits 0.6em):adelrosso wrote: ↑Fri Nov 03, 2017 11:52 am Another remark. In the "current conditions" block, also when this is displayed at 100% width, the rain rate "mm/h" appear wrapped ("h" slip to the bottom line). Can you do something? I think would be really good if it looks good at least up to two full digits.
Code: Select all
<span style="font-size:0.6em"> <?php echo $displayRainUnits."/".lang('hAbbr','l')?></span>- Attachments
-
- Bildschirmfoto 2017-11-03 um 17.39.25.png (53.41 KiB) Viewed 11065 times
- Jachym
- Site Admin

- Posts: 1686
- Joined: Fri Aug 18, 2017 10:12 pm
- Location: Brno, Czech Republic
- Station model: WH1080
- Software: Meteobridge
- Contact:
Re: Rain gauge not updatetd in a sub-menu
The block does not have a fixed width, it will wrap to a new line depending on how wide your column is. If you want all on one line you need to make the column wider.adelrosso wrote: ↑Fri Nov 03, 2017 11:52 am Another remark. In the "current conditions" block, also when this is displayed at 100% width, the rain rate "mm/h" appear wrapped ("h" slip to the bottom line). Can you do something? I think would be really good if it looks good at least up to two full digits.
Clipboard01.png
-
adelrosso
- Observer

- Posts: 13
- Joined: Sat Oct 14, 2017 10:33 pm
- Location: Sarzana, Italy
- Station model: Netatmo
- Software: Netatmo API
- Contact:
Re: Rain gauge not updatetd in a sub-menu
Thanks Reinhard, I'll try this trick 
Reinhard wrote: ↑Fri Nov 03, 2017 4:50 pmThe workaround: Open currentBlock.php in a text editor, go to line 302 and edit this string to the font size you want (for me it suits 0.6em):adelrosso wrote: ↑Fri Nov 03, 2017 11:52 am Another remark. In the "current conditions" block, also when this is displayed at 100% width, the rain rate "mm/h" appear wrapped ("h" slip to the bottom line). Can you do something? I think would be really good if it looks good at least up to two full digits.Be aware if the block gets an update - all your changes are gone.Code: Select all
<span style="font-size:0.6em"> <?php echo $displayRainUnits."/".lang('hAbbr','l')?></span>
-
adelrosso
- Observer

- Posts: 13
- Joined: Sat Oct 14, 2017 10:33 pm
- Location: Sarzana, Italy
- Station model: Netatmo
- Software: Netatmo API
- Contact:
Re: Rain gauge not updatetd in a sub-menu
Ok, but this block is in my header, so it would spans to the full width of the page... Instead it does not even fill the entire width of the column (my page width is 1920px and central column is set to 50%).
Jachym wrote: ↑Fri Nov 03, 2017 5:02 pmThe block does not have a fixed width, it will wrap to a new line depending on how wide your column is. If you want all on one line you need to make the column wider.adelrosso wrote: ↑Fri Nov 03, 2017 11:52 am Another remark. In the "current conditions" block, also when this is displayed at 100% width, the rain rate "mm/h" appear wrapped ("h" slip to the bottom line). Can you do something? I think would be really good if it looks good at least up to two full digits.
Clipboard01.png
