Page 30 of 89

Re: Weather34 MB-SMART NANOSD TEMPLATE

Posted: Thu Feb 27, 2020 8:04 am
by weatherist34
merry Christmas better late than never...:-)
1.jpg
1.jpg (121.59 KiB) Viewed 4878 times

Re: Weather34 MB-SMART NANOSD TEMPLATE

Posted: Thu Feb 27, 2020 10:01 am
by ToTo
Thanks to Santa, this is perfect. :mrgreen:

Re: Weather34 MB-SMART NANOSD TEMPLATE

Posted: Fri Feb 28, 2020 10:12 am
by alexeysailman
Hi, Brian!
This forum thread is dedicated to the MB-SMART NANOSD TEMPLATE, but lately everything is spinning around the "console" version. I have a question about the "desktop" version: how do I change the pressure measurement unit (to mmHg) in the desktop version in "Barometer Charts"? Here is the address of my site: https://xn--10-6kcwaznenhomt1p.xn--p1ai/ see what I did by entering the coefficient 0.75006157584566 in the livedata file.php and changing the barometer file.php (according to your advice on www.wxforum.net), in this version, the file structure has changed and your tips (for the old version) do not work for it.
Thanks.

Re: Weather34 MB-SMART NANOSD TEMPLATE

Posted: Sat Feb 29, 2020 8:05 pm
by ToTo
I just realized this and I don't know if it's a mistake? I always leave the weather console open and when I unlock my iPad, all values are updated but not every time for the webcam and the sunmod module. I must use the reload button.

Re: Weather34 MB-SMART NANOSD TEMPLATE

Posted: Sun Mar 01, 2020 6:54 pm
by Ed_Heaton
For some reason the Weather 34 is NOT showing my forecast data. It looks like it's trying to read a WU apiKey but I can't find where to install it. Any suggestions? Also my moon set time is incorrect. I'm not sure where to adjust that either...

https://www.atglenweather.com/console/index.php

Thanks...

Re: Weather34 MB-SMART NANOSD TEMPLATE

Posted: Mon Mar 02, 2020 12:06 am
by rzelle-K1TTC
Hi,

There is a section in the main template setup page for the WU API key. You need to obtain the key from the WU site. See the section screen shot below.

..Ron
Main Template WU Setup Section2.PNG
Main Template WU Setup Section2.PNG (27.41 KiB) Viewed 4765 times

Re: Weather34 MB-SMART NANOSD TEMPLATE

Posted: Mon Mar 02, 2020 8:15 am
by weatherist34
good morning sorry for delay in responding very little time to focus on these until this morning.

alexeysailman added mmHG option module in setup screen to use a file called barometer mod-mmHG.php
..todo add same mmHG formula to charts for pressure.

Image

Image

toto..adjusted refresh module rates might solve what your seeing not able to replicate locally . file console/updater2.php

Ed_Heaton . thank you for bringing this up your doing nothing wrong I hadn't realized I had a backlog of files not pushed to the GITHUB repo via the APP
I use so this morning I have updated many files to the standalone console version there were 24 files awaiting :-( . took me a while to realize has I couldn't fathom out why the forecast would not display.

please update * note these files are for the console standalone version that supports NANOSD/Pro/TP Link(types)
all language files in the languages folder
console-setup.php (this adds the options for wu api key your not seeing + purple air ID + mmHg option)
stationcron.php which resides in the folder mbdbfiles folder (this is critical for forecast display)

worth mentioning for forecast .
Get forecast data
Select the Services Tab in Meteobridge

1. Goto Select new service

2. Select from the drop down menu HTTP Request

3. Select periodically in the next menu

4. Click Save at the bottom of the screen

5. Now look for new HTTP request

6. select 30 minutes

7. NOW INSERT THE URL example

8. https://yourdomain.com/console/mbdbfile ... oncron.php

9. now click save .

*the path can be in the root if the template was uploaded to the root directory https://yourdomain.com/mbdbfiles/stationcron.php

10. * Make sure you have entered the WU API Key in the setup up screen for the console

11. * Purple Air is optional make sure you entered your ID in the setup up screen for the console

sorry for the inconvenience...Brian

Re: Weather34 MB-SMART NANOSD TEMPLATE

Posted: Mon Mar 02, 2020 1:43 pm
by weatherist34
@ Ed_Heaton

I can see you updated some files but the critical as per your original post the forecast you need to update that file stationcron.php which resides in the mbdbfiles folder ..

perhaps Ron or Chuck can help you out as I think there in your timezone , Im afraid I fall asleep very early these days locally 9pm ...

monitor updates via https://github.com/weather34/Weather34-MB-SMART-Console

or

full download via https://weather34.com/homeweatherstatio ... alone.html

think if you update that file your good ... as for moontimes its derived from meteobridge itself however do make sure your lat lon are correct in the setup screen for the template this also a part of the forecast .

Re: Weather34 MB-SMART NANOSD TEMPLATE

Posted: Mon Mar 02, 2020 2:26 pm
by Ed_Heaton
Thanks everyone and the new update allowed me to input my WU key. A forecast has shown up although it is incorrect and does not update... I also noticed upon checking the error.log I have the following:

[02-Mar-2020 05:52:31 America/Chicago] PHP Warning: include(settings.php): failed to open stream: No such file or directory in /public_html/console/mbdbfiles/stationcron.php on line 1
[02-Mar-2020 05:52:31 America/Chicago] PHP Warning: include(settings.php): failed to open stream: No such file or directory in /public_html/console/mbdbfiles/stationcron.php on line 1
[02-Mar-2020 05:52:31 America/Chicago] PHP Warning: include(): Failed opening 'settings.php' for inclusion (include_path='.:/opt/php71/lib/php') in /public_html/console/mbdbfiles/stationcron.php on line 1
[02-Mar-2020 05:52:31 America/Chicago] PHP Warning: fopen(jsondata/wuforecast.txt): failed to open stream: No such file or directory in /public_html/console/mbdbfiles/stationcron.php on line 8
[02-Mar-2020 05:52:31 America/Chicago] PHP Warning: curl_setopt(): supplied argument is not a valid File-Handle resource in /public_html/console/mbdbfiles/stationcron.php on line 9
[02-Mar-2020 05:52:32 America/Chicago] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /public_html/console/mbdbfiles/stationcron.php on line 14

Re: Weather34 MB-SMART NANOSD TEMPLATE

Posted: Mon Mar 02, 2020 2:51 pm
by weatherist34
i cant attach the file please get the stationcron.php from the download i updated this morning should fix your error your seeing logged basically its looking for the settings.php which had the wrong path and jsondata folder.. this was my mistake as it was carried over from the main version of the template.. confused it goes like this when multiple versions are maintained 99% my oversight each time..im not perfect unfortunately too many side distractions at times..

API key ??? must have a valid API key from WU its not 123456789 thats just a dummy API figure..


example of using updated stationcron file https://www.ilfracombeweather.net/console/

Re: Weather34 MB-SMART NANOSD TEMPLATE

Posted: Mon Mar 02, 2020 3:12 pm
by Ed_Heaton
Ok, SO I must have had a corrupt file. I deleted the files on the server and reloaded everything and it now is working! Awesome work guys THANKS!!!

On a side note the "sunrise and sunset" times are in 24 hour format and I don't know why... I did change the format in the setup to 12 hr... Certainly not a deal breaker :-)

Any thoughts?

Re: Weather34 MB-SMART NANOSD TEMPLATE

Posted: Mon Mar 02, 2020 3:39 pm
by weatherist34
ok no worries thats a pretty easy one I updated the file weather34-sunmod.php just replace that file it just displays 12 hour with am/pm or 24 hour

the gist of it

https://github.com/weather34/Weather34- ... 8403da6ed1


ignore the times just my local demo
Screenshot at Mar 02 16-37-28.png
Screenshot at Mar 02 16-37-28.png (18.32 KiB) Viewed 4709 times

Re: Weather34 MB-SMART NANOSD TEMPLATE

Posted: Mon Mar 02, 2020 4:17 pm
by Ed_Heaton
Awesome and thank you!!!

Re: Weather34 MB-SMART NANOSD TEMPLATE

Posted: Mon Mar 02, 2020 4:25 pm
by weatherist34
no problem and thanks for highlighting the issues its good to talk and help each other best we can.. have a great day...

Re: Weather34 MB-SMART NANOSD TEMPLATE

Posted: Wed Mar 04, 2020 9:24 am
by ToTo
Could it be that the moon phase is wrong?

https://www.spaceweatherlive.com/en/moo ... s-calendar