Page 1 of 1
[Implemented] Add the ability to remove "Current Conditions"
Posted: Sun 28 Feb 2021 9:37 am
by The Dalek Hunter
Is it possible to add a toggle in the Admin Interface to enable/disable "Current Conditions" on the main web page for those of us who don't want to manually add data when the conditions change - otherwise leaving a blank line.
Re: Add the ability to remove "Current Conditions"
Posted: Sun 28 Feb 2021 2:21 pm
by ConligWX
The Dalek Hunter wrote: ↑Sun 28 Feb 2021 9:37 am
Is it possible to add a toggle in the Admin Interface to enable/disable "Current Conditions" on the main web page for those of us who don't want to manually add data when the conditions change - otherwise leaving a blank line.
the answer is simply no not at the moment, as the current conditions name is built into the web page template code, not any config in the admin console.
index.htm rem out the line 88-90:
Code: Select all
<tr>
<td colspan="7"><strong>Current conditions</strong>: <span data-cmxdata="currcond"></span></td>
</tr>
to:
Code: Select all
<!-- tr>
<td colspan="7"><strong>Current conditions</strong>: <span data-cmxdata="currcond"></span></td>
</tr -->
Re: Add the ability to remove "Current Conditions"
Posted: Sun 28 Feb 2021 5:51 pm
by mcrossley
Noted, I'll add to the enhancements list
Re: Add the ability to remove "Current Conditions"
Posted: Mon 01 Mar 2021 7:27 am
by The Dalek Hunter
mcrossley wrote: ↑Sun 28 Feb 2021 5:51 pm
Noted, I'll add to the enhancements list
Thanks
Re: Add the ability to remove "Current Conditions"
Posted: Mon 01 Mar 2021 3:03 pm
by ConligWX
mcrossley wrote: ↑Sun 28 Feb 2021 5:51 pm
Noted, I'll add to the enhancements list
Perhaps adding something like JennyLeez script to automate the Current Conditions would be a good feature to add in the future
viewtopic.php?f=14&t=12831
Still works

Re: Add the ability to remove "Current Conditions"
Posted: Mon 01 Mar 2021 4:55 pm
by mcrossley
The Dalek Hunter wrote: ↑Mon 01 Mar 2021 7:27 am
mcrossley wrote: ↑Sun 28 Feb 2021 5:51 pm
Noted, I'll add to the enhancements list
Thanks
A simple change for the next release, if the value for current conditions is blank, the element will be hidden, if not it will be shown.
Re: Add the ability to remove "Current Conditions"
Posted: Mon 01 Mar 2021 9:58 pm
by beteljuice
... but what if a 3rd party wants to provide the info ?
There will be no 'place holder' for it.
... although I suppose if they just have any char entered (eg. 1) the line would be displayed ?
Re: Add the ability to remove "Current Conditions"
Posted: Mon 01 Mar 2021 10:33 pm
by mcrossley
beteljuice wrote: ↑Mon 01 Mar 2021 9:58 pm
... but what if a 3rd party wants to provide the info ?
There will be no 'place holder' for it.
... although I suppose if they just have any char entered (eg. 1) the line would be displayed ?
Not sure what you mean, isn't the normal third party way of adding the text to create the currentconditions.txt file? If that file is present and has some text in it, it will be displayed on the web site.
Or are you talking about a third party app directly manipulating the index.htm HTML? In which case it can also remove the w3-hidden class itself.
Re: Add the ability to remove "Current Conditions"
Posted: Mon 01 Mar 2021 11:07 pm
by beteljuice
I was thinking "... directly manipulating the index.htm HTML" ie. using JS to repopulate the existing var.
Although if Neil thinks to make getPageData() a timed loop

The var name would have to be changed anyway.
" In which case it can also remove the w3-hidden class itself." - come on, the beteljuice has enough problems keeping up with things

Re: Add the ability to remove "Current Conditions"
Posted: Mon 01 Mar 2021 11:14 pm
by mcrossley
beteljuice wrote: ↑Mon 01 Mar 2021 11:07 pm
Although if Neil thinks to make getPageData() a timed loop
Stay tooned...