Author Topic: Home Weather Station Meteobridge: Version and upgrading  (Read 371 times)

0 Members and 1 Guest are viewing this topic.

Offline lobsterman

  • Contributor
  • ***
  • Posts: 111
    • Cape Small Harbor Weather
Home Weather Station Meteobridge: Version and upgrading
« on: March 27, 2019, 12:03:35 PM »
Is there a way to check the version of the HWS now used only for Meteobridge: https://github.com/weather34/Meteobridge-Weather34-Template

And I could find no instructions about how to upgrade to newer versions.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 7149
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Home Weather Station Meteobridge: Version and upgrading
« Reply #1 on: March 27, 2019, 01:19:20 PM »
If you'd set up the website using git like
Code: [Select]
git clone https://github.com/weather34/Meteobridge-Weather34-Template.git ./while using the git bash command in your document root, then a simple
Code: [Select]
git pull would bring in all the changed files to your site.
Depending on how Brian set up the .gitignore, that may clobber your settings1.php when you do that, but running easyweathersetup.php again and recustomizing will fix it.

For my Cumulus distribution, I did provide protection to prevent clobbering the settings1.php when git pull is done.
(BTW, the various HWS distributions are NOT INTERCHANGABLE, so please do not port scripts from one distribution to another.. the results may cause the HWS site to stop working).
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline lobsterman

  • Contributor
  • ***
  • Posts: 111
    • Cape Small Harbor Weather
Re: Home Weather Station Meteobridge: Version and upgrading
« Reply #2 on: March 27, 2019, 02:43:59 PM »
Hmnn, thanks Ken. Tried cloning it into a new folder which works fine, then copied settings1 from the previous install, moved the new folder to the server with a slightly different name for a test (same position on the server so paths are preserved), and things went a little haywire (Admin sidebar popping up all across the web page). So for the moment I'm guessing that settings1 can't be re-used that way?

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1158
    • Texas Weather
Re: Home Weather Station Meteobridge: Version and upgrading
« Reply #3 on: March 27, 2019, 03:00:42 PM »
For my Cumulus distribution, I did provide protection to prevent clobbering the settings1.php when git pull is done.

Please note that Brian is not doing that so it will clobber your file.
The best way till that is fix is to do a separate git and sync your changes as the pull comes in.

----
Davis Vantage Vue|Meteohub 5.0l (Build 7293) Running on Debian 7.9 x86 (oVirt)|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095

Offline weather34

  • its just my hobby
  • Forecaster
  • *****
  • Posts: 833
    • Weather34 meteobridge template
Re: Home Weather Station Meteobridge: Version and upgrading
« Reply #4 on: March 27, 2019, 04:39:06 PM »
sorry missed this request seems a lot of noise on forum about wu today .

i happy to add it on , personally im still getting to grips with github so every idea is a learning curve for me .

think it would be something like this ?

 [ You are not allowed to view attachments ]

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1158
    • Texas Weather
Re: Home Weather Station Meteobridge: Version and upgrading
« Reply #5 on: March 27, 2019, 05:00:24 PM »
That looks about right.... But dont quote me as I am new just as you are :P
This can also help:

https://www.atlassian.com/git/tutorials/saving-changes/gitignore

----
Davis Vantage Vue|Meteohub 5.0l (Build 7293) Running on Debian 7.9 x86 (oVirt)|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095

Offline weather34

  • its just my hobby
  • Forecaster
  • *****
  • Posts: 833
    • Weather34 meteobridge template
Re: Home Weather Station Meteobridge: Version and upgrading
« Reply #6 on: March 28, 2019, 01:42:20 AM »
good morning all done

just beware if you are using a version prior to March 2019 then its imperative to do a fresh install and setup via the easyweathersetup screen. when you use an old
settings1.php this is when you get a broken view simply new settings cant be found . this is also critical for the menu.php as that I often see users using old 2018 menu.php and it basically is not compatible with 2019 versions.

it should look something like this depending which modules you select to use.