Its Update Time If you haven't recently, be sure to reboot your MB to make sure you're using the latest version of the API. A simple and quick reboot is all it takes.
This is a fairly big update that basically rewrites notifications and then some. Just gonna copy/paste my change log from
GitHubMove notifications (Notify) from barometer.php to its own file.
Added a red Alert color to the css and shared.php
Added notification for if the console and/or station batteries are low.
Expanded the Wind notifications to include Extreme (>100knots), High (>50knots gusts or >34knots sustained), and Wind Advisory (>40knots gusts or >22 knots sustained)
Added option to enable/disable Earthquake and Wind notifications, as well as a working minimum Magnitude limit.
Add new language strings for Notify
Update language files to all match the master
Remove Canadian and US language files since they were identical to English. Can and US now use the lang.en.php file instead
Added Norwegian language file (thanks Torjan)
Fixed a bug with menu.php that left some <div> tags open that could effect notifications if the language options were shown in menu.
Update refresh times for most modules so they refresh closer to realtime (probably add a customizable setting for these later)
Modules 12 and 13 will now refresh faster as long as they aren't the weather camera module.
Weather camera module now has its own refresh rate, defaults to every 60 seconds
Fixed bug where settings notifyRefresh to 0 would bug out the clock and could crash the site
Fixed a bug with webcam online/offline where it would show as offline if it was a local file.
Updated menu links to new GitHub url.
Added Earthquake scale to notify
stationcron.php will no longer stop updating everything if MySQL settings are messed up. Metar, Forecasts, etc will continue to update regardless.
Added some status messages to stationcron.php, if something doesn't seem right, go to http://YourURL/mbdbfiles/stationcron.php to see what's wrong.
Big takeaways from that changelog is that notify (notification popups) is now in its own file, so barometer can be refreshed more often. Previously, if you made barometer refresh faster, you'd start getting spammed with the notify popup. Not a huge issue on desktop, but on mobile it would be constantly covering the top of the screen and you could never see the temperature. Temporary disadvantage is that notify won't repeatedly popup now. You'll still see it every time you load the page, though. I am working on a new way to make it refresh automatically like the rest of the modules do.
Another change is the warnings in notify about wind speed. It will let you know about Extreme Wind (>100 knots), High Winds (>50knots for gusts or >34knots for the 30 minute average wind), and Wind Advisory (>40knots gusts or >22knots for the 30 minute average). These are based on the NOAA wind advisories for non-hurricane and non-thunderstorm related winds.
Earthquake notifications will currently show the most recent Earthquake that is greater than or equal to the amount you set in the easyweathersetup.php page. It will also tell you which category the Earthquake is based on the
Richter Magnitude Scale. I am planning to further enhance this with some more features like setting a limit so it only alerts you of earthquakes closer than say 1000 miles.
Stationcron.php will now let you know what's wrong if you visit it in your browser, like if you forgot to set your WU or DarkSky API and you're using a module that requires it. It will also no long stop Metar and Forecasts from updating if your MySQL settings are messed up or the database is wrong. In this case, opening stationcron.php in your browser will give you an error message about MySQL being messed up, but everything after it in the php file will continue to run.
And yes, the Canadian and US language files are supposed to be deleted, even if you are in one of those 2 countries. Common.php has been updated so that Canada and US now use the same language file as English. You don't have to change your language selection in the settings or anything, just be sure to update common.php and remove lang.can.php and lang.us.php.
How to UpdateAnyway, onto the exceedingly long list of files that need to be changed. To those of you using git,
git pull like always.
Those manually changing files, have fun, lol:
Copy over these modified/new files: (right click => Save link as... to download)Delete these existing files:- languages/lang.can.php
- languages/lang.sk.php
- languages/lang.sv.php
- languages/lang.us.php